tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: socket connect timeout adjustable?
@ 1999-01-26 16:24 Wigg, David
  0 siblings, 0 replies; only message in thread
From: Wigg, David @ 1999-01-26 16:24 UTC (permalink / raw)
  To: tru64-unix-managers

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@wang.com

mailto:david.wigg@wang.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-01-26 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-26 16:24 SUMMARY: socket connect timeout adjustable? Wigg, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox