This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akhramov
Recipients akhramov
Date 2019-08-10.20:29:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565468971.21.0.481323607597.issue37811@roundup.psfhosted.org>
In-reply-to
Content
FreeBSD implementation of poll(2) restricts timeout argument to be either zero, or positive, or equal to INFTIM (-1).

Unless otherwise overridden, socket timeout defaults to -1. This value is then converted to milliseconds (-1000) and used as argument to the poll syscall.

poll returns EINVAL (22), and the connection fails.

I have discovered this bug during the EINTR handling testing, and have naturally found a repro code in https://bugs.python.org/issue23618 (see connect_eintr.py, attached). On GNU/Linux, the example runs as expected.
History
Date User Action Args
2019-08-10 20:29:31akhramovsetrecipients: + akhramov
2019-08-10 20:29:31akhramovsetmessageid: <1565468971.21.0.481323607597.issue37811@roundup.psfhosted.org>
2019-08-10 20:29:31akhramovlinkissue37811 messages
2019-08-10 20:29:30akhramovcreate