blocking connect()

stefan stefan@lkcc.org
Sat Sep 30 11:21:00 GMT 2000


Hello CygWin'ers,

The example program within the attachment shows a problem with connect()
and non-blocking I/O. Normally a connect() with a socket set to
non-bocking mode via fcntl(O_NONBLOCKING) should not block, but it does
with the current (1.1.4) version of cygwin. Is this problem known to you ?

Usually the operarion should state something like "Operation now in
progress" and when select()ing in the write set afterwards you can
determine if the connect() has been failed or not via
getsockopt(SO_ERROR).

Thanks in advance,
	Stefan.

stefanlkcc.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hanging.c.gz
Type: application/x-gzip
Size: 785 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000930/461ac4ad/attachment.bin>


More information about the Cygwin mailing list