Re: Time out a connect() call
Re: Time out a connect() call
- Subject: Re: Time out a connect() call
- From: Nathan Sims <email@hidden>
- Date: Tue, 01 Mar 2011 10:32:51 -0800
On Feb 28, 2011, at 3:28 PM, Vincent Lubet wrote:
>
> On Feb 28, 2011, at 3:18 PM, Nathan Sims wrote:
>>
>> On Feb 28, 2011, at 1:19 PM, Josh Graessley wrote:
>>
>>> There is a socket option that will let you adjust the TCP connection timeout. Changing the timeout does not address the issue that 5 seconds can feel like an eternity, and any timeout short enough to not feel like an eternity is unlikely to be long enough to satisfy every situation.
>>
>> Do you mean socket option SO_RCVTIMEO or is there one specifically for connect()? The reason I'm wanting to set it down so low is because it's for use on a dedicated intranet, and the destination is either there or it's not, so 5 to 10 seconds is generous in this case.
>
> No, Josh was referring to TCP_CONNECTIONTIMEOUT from <netinet/tcp.h>
Got it working! Thanks Josh, Quinn, Vincent, and Peter!
- Nate
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden