]> git.ipfire.org Git - thirdparty/tornado.git/commit
change bind_unused_port to pass None as port 777/head
authorMauricio Souza Lima <mauricio.lima@corp.globo.com>
Tue, 7 May 2013 21:00:23 +0000 (18:00 -0300)
committerMauricio Souza Lima <mauricio.lima@corp.globo.com>
Tue, 7 May 2013 21:00:23 +0000 (18:00 -0300)
commitdceb544fb51b11fe6f97365cc036e9f3775cb00f
treed0b29d9c08a45a44b938e6d491c17cfba9804267
parent84bd64bd66a8ebe031184af7317fa7c3429e9787
change bind_unused_port to pass None as port

bind_unused_port was passing 0 as port number to the socket module.
This generated some exceptional behaviour on systems where nslookup of
localhost didn't returned the loopback interface.
tornado/testing.py