Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix creating non-listening sockets in tests on some platforms
Fix the listen() invocation for the test server not to pass a backlog value of zero. The value of zero means no backlog which effectively means that the socket can not accept any connections. This does not matter for the majority of platforms since the value is only advisory and the platform tends to go with a bigger backlog anyway. However, a few platforms (e.g. alpha or riscv Linux) do take the value literally, and therefore the tests fail since they are unable to connect to the server. Let Python use a 'default reasonable value' instead.
- Loading branch information