]> git.ipfire.org Git - thirdparty/tornado.git/commit
Errors from socket.connect() should be treated the same way as async failures.
authorBen Darnell <ben@bendarnell.com>
Tue, 4 Oct 2011 05:28:33 +0000 (22:28 -0700)
committerBen Darnell <ben@bendarnell.com>
Tue, 4 Oct 2011 05:28:33 +0000 (22:28 -0700)
commit420ad0869a6a964ab6a7d31401de8d8cf2fedd25
treea76f44c53bd5e0a692d9238bfd18d270efb75236
parent4b346bdde80c1e677ca0e235e04654f8d64b365c
Errors from socket.connect() should be treated the same way as async failures.

On freebsd non-blocking connect() may return certain errors (such as
ECONNREFUSED from localhost) immediately instead of returning EINPROGRESS
and then giving the error later.

Also improve the test for ipv6 compatibility, since freebsd returns a different
error than other platforms when ipv6 is not available.
tornado/iostream.py
tornado/test/simple_httpclient_test.py