Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wsgi server: address family discovery is not quite right (#1006)
The code introduced to improve binding to an IPv6 address is based on similar code in Python itself, but is missing some critical arguments to the socket.getaddrinfo() call: in particular, the socket type must be set to SOCK_STREAM, because we want a TCP connection; the AI_PASSIVE flag should also be passed because we intend to use the result for binding a listen socket rather than making an outbound connection. Signed-off-by: Joshua M. Clulow <[email protected]>
- Loading branch information