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 <>
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 (see, attached). On GNU/Linux, the example runs as expected.
Date User Action Args
2019-08-10 20:29:31akhramovsetrecipients: + akhramov
2019-08-10 20:29:31akhramovsetmessageid: <>
2019-08-10 20:29:31akhramovlinkissue37811 messages
2019-08-10 20:29:30akhramovcreate