From: Vladimir T. <vtz...@gm...> - 2008-08-27 16:56:10
|
Hi, On Aug 27, 2008, at 7:40 PM, Raymond Toy (RT/EUS) wrote: > > I don't know exactly what socket-connect is supposed to do, but > when I telnet localhost 12345, I also get a connection refused > error. I guess the :timeout option is supposed to do something > different. > It tries to open connection to specified host:port using non-blocking socket (if FIONBIO (ioctl) and HAVE_SELECT are supported/configured). When the timeout is 0 - it should return immediately with success leaving the non-blocking operation in progress. If there is no FIONBIO or HAVE_SELECT defined (not supported or not configured) - blocking socket will be used and it is one of the possible reasons to get connection refused. Vladimir |