Re: TCP connection timeout
Re: TCP connection timeout
- Subject: Re: TCP connection timeout
- From: Justin Walker <email@hidden>
- Date: Mon, 19 Jan 2004 07:53:33 -0800
On Monday, January 19, 2004, at 03:48 AM, Igor garnov wrote:
Hello,
I experience the following problem in my Carbon CFM application using
Open Transport.
I try to establish connection to the remote host in my LAN.
Apparently, because this is 100 MBits networking environment, if the
host is online, the connection is established in no time. If the host
is down, Open Transport waits for about 1 minute or even longer before
returning error stating that the host is unreachable.
I would like to change this behavior so that OT does not wait so long
before reporting that the host is unreachable, because I know, that if
I cannot connect a host in a few milliseconds, there is hardly a
chance that I will connect it in a minute or two.
So how can I set an endpoint's options so that this timeout would be,
say, 5 seconds? Is there some sample code?
I believe that this is possible on Mac OS 9 (but I'm not the expert).
On Mac OS X, it is not, because Open Transport is implemented as a shim
to BSD networking. The latter does not provide a way to modify the TCP
timeouts.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.