New submission from Alexander Shigin <[EMAIL PROTECTED]>: Unix select returns socket in read fd set and write fd set if nonblocking socket attempts to connect to unaviable address.
asyncore should check this case by calling getsockopt with SO_ERROR optname. If return value is 0 it should call handle_connect_event, otherwise if should call handle_expt_event. Attached file prints "get exception" if asyncore can't connect to remote side, not "uncaptured python exception" Patches from Issue1736190 do not fix this case. ---------- components: Library (Lib) files: test_async_connect.py messages: 67188 nosy: shigin severity: normal status: open title: asyncore doesn't handle connection refused correctly type: behavior versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file10400/test_async_connect.py __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2944> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com