SUMMARY: socket connect timeout adjustable?

From: Wigg, David <David.Wigg_at_wang.com>
Date: Tue, 26 Jan 1999 17:24:26 +0100

Hi Managers, thanks for the swift response. Thanks to everyone who took the
time to reply.

It seems there are two main options:

1) put the socket in non blocking mode, issue the connect and then call
   select with a timeout

2) set a timer and perform a blocking connect, it will be interrupted by
   a signal (SIGALRM) if the timer expires.

A third option of tweaking the kernel TCP contants was suggested, but I'm
not going to do that due to the knock on effects.

Option 2 works for me.

Thanks again guys

Best Regards,

Dave

David Wigg
Senior Consultant
Solutions Integration, Wang Global,
Phone: +44(0)161 848 4146
Email : david.wigg_at_wang.com

mailto:david.wigg_at_wang.com
Received on Tue Jan 26 1999 - 16:29:55 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT