Message349356
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. |
|
Date |
User |
Action |
Args |
2019-08-10 20:29:31 | akhramov | set | recipients:
+ akhramov |
2019-08-10 20:29:31 | akhramov | set | messageid: <1565468971.21.0.481323607597.issue37811@roundup.psfhosted.org> |
2019-08-10 20:29:31 | akhramov | link | issue37811 messages |
2019-08-10 20:29:30 | akhramov | create | |
|