delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/30/14:21:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs
Date: Sat, 30 Sep 2000 19:12:25 +0200 (CEST)
From: stefan <stefan AT lkcc DOT org>
X-Sender: stefan AT bono DOT reversers DOT net
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: blocking connect()
Message-ID: <Pine.LNX.4.10.10009301907240.523-101000@bono.reversers.net>
MIME-Version: 1.0

---1463680767-1097923225-970333945=:523
Content-Type: TEXT/PLAIN; charset=US-ASCII


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

---1463680767-1097923225-970333945=:523
Content-Type: APPLICATION/octet-stream; name="hanging.c.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT LNX DOT 4 DOT 10 DOT 10009301912250 DOT 523 AT bono DOT reversers DOT net>
Content-Description: blocking connect
Content-Disposition: attachment; filename="hanging.c.gz"

H4sICLBmwzkCA2hhbmdpbmcuYwClVNtu2kAQfY6/YkSUykYOlyS9KCSVSEIq
FIoRkLdKlrEXvIrZRbsLCY34986ubcDOrWr9YK/neubMzB5GZEoZAf9H/94f
effD6451SFmYLCMCF1JFlNfi70VRQidlmaBsVpQRIVjJdckoemvZvu9a1tV6
QWQpJIolDx+IKsoZUQhX1Sl7IY9KqAKxCOrauCiehkwlL5O9hoHOWPCK6WNA
TUyLMgUapB9yxkiowF4y7UQiSDibQcylcmErkzEXChb4clrG2ZoHlIGtwwRi
FroQxoGAahV/Vo71bAFo1YJGaI7nKdjFbLHiLAG722/f3Az9nucNrtrXd44L
WiHBPjl1HLi8hOOmg/4AgqilYPjbei9c46l5cnr2+cvXb/8b6W1gZ2+Gy+LZ
WDVcwpSLBzu1baSmz+YNUGQ6iCLRyjQ4jUsEocknSF9VH3a6QNEw41kQyZMV
0XkqU85rk0DUZnxVMSD0Y4Bod7SYEaVPkzUL5gTs3DfF1r/v9ZzMaQdRPwvc
DIVhKhGT58Ug53CEVBxJ5xeruGAdHBjouDdcgG3WBwnb5mlZqCdPFNltOq1t
hk2ONVU1MtUG3ySRxJRgqNyRncPbQtMkazAGRxnCNlfWo0aewNqLoJOjN9pu
0sH+t60wI5+1T0fQXfVxQyQRK2L6q/chTCj21U9vB9OrelVjqsKUCh06FCRQ
BAJITfQQQcjnc7x/Qmw/Z/BIVQwqJllk413PJ68QHzufHez2rd/td8YujLzr
O380HnbaP13oDgZDb+z53QGOwkV5SrcMpUH+muV0sTKa8/IkQUYjF+bBA0nR
p8gYZ8eTBM94CRdKMVcdFAty4dYfdca3PRc8v+/1r3pYzXvITZCPgYcJx3Er
5nq7KoC9ulRMBZalxBoUh3xq8PhKh9LfmqTMnwZzmqyxQVljWkW1Hp6aNB+0
yS+BPQM9cqjRn1YKSHO2HdoSa3ZpLqHqwKc0mqtXM71e6G/C9W1o5MU77gWx
WaaPqDUjsFu+jfUH+SBdJbMHAAA=

---1463680767-1097923225-970333945=:523
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
---1463680767-1097923225-970333945=:523--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019