Skip to content

Commit

Permalink
Use SO_REUSEADDR in low-level socket tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Feb 16, 2011
1 parent 64d9c63 commit 05b6293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tornado/test/simple_httpclient_test.py
Expand Up @@ -138,6 +138,7 @@ def test_connect_timeout(self):
port = get_unused_port()

with closing(socket.socket()) as sock:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(('', port))
self.http_client.fetch("http://localhost:%d/" % port,
self.stop,
Expand Down

0 comments on commit 05b6293

Please sign in to comment.