Message10475

Author zyasoft
Recipients dhable, zyasoft
Date 2015-11-14.14:18:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447510715.04.0.197447400834.issue2428@psf.upfronthosting.co.za>
In-reply-to
Content
Calls to connect_ex on nonblocking sockets should report the sequence:

errno.EINPROGRES (if not immediately connected), errno.EALREADY (for subsequent calls until connected), E.ISCONN (once connected); or the corresponding error. Additionally, code written against the CPython behavior assumes that each poll takes some modest amount of time (this is what accounts for the original bug title, "Jython connect takes significantly longer than CPython socket connect"), or busy waiting loops will fail. Empirically this is about 1-2 milliseconds on my laptop. In the bug fix, I chose 1.25 milliseconds.

See http://www.gnu.org/software/libc/manual/html_node/Connecting.html for more details on connect_ex, which exposes the underlying connect behavior, especially for nonblocking connects.

Fixed as of https://hg.python.org/jython/rev/962002f7d96b
History
Date User Action Args
2015-11-14 14:18:35zyasoftsetmessageid: <1447510715.04.0.197447400834.issue2428@psf.upfronthosting.co.za>
2015-11-14 14:18:35zyasoftsetrecipients: + zyasoft, dhable
2015-11-14 14:18:34zyasoftlinkissue2428 messages
2015-11-14 14:18:34zyasoftcreate