O_NONBLOCK & connect() not blocking
O_NONBLOCK & connect() not blocking
- Subject: O_NONBLOCK & connect() not blocking
- From: Mark Thomas <email@hidden>
- Date: Wed, 12 Jul 2006 11:35:44 +0100
- Organization: Coderus Ltd
Hi,
Is there any reason why connect() always seems to block for about 30-40
seconds regardless if you are setting the O_NONBLOCK flag via fcntl &
F_SETFL and using select() to detect the connection has happened. Most
documentation I have googled seems to imply this should work ?
As I'm wanting to attach to server, but only to wait around 5 seconds for
it respond which I know it will respond in that time. The tool is only for
use within LAN so not WAN based.
Thanks
Mark.
_______________________________________________
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