diff options
-rw-r--r-- | swift/common/wsgi.py | 1 | ||||
-rw-r--r-- | test/unit/common/test_wsgi.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/swift/common/wsgi.py b/swift/common/wsgi.py index cdf3e6795..986e86d64 100644 --- a/swift/common/wsgi.py +++ b/swift/common/wsgi.py @@ -199,7 +199,6 @@ def get_socket(conf): raise Exception(_('Could not bind to %s:%s ' 'after trying for %s seconds') % ( bind_addr[0], bind_addr[1], bind_timeout)) - sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # in my experience, sockets can hang around forever without keepalive sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) diff --git a/test/unit/common/test_wsgi.py b/test/unit/common/test_wsgi.py index e09f33926..9c16daf80 100644 --- a/test/unit/common/test_wsgi.py +++ b/test/unit/common/test_wsgi.py @@ -281,7 +281,6 @@ class TestWSGI(unittest.TestCase): self.assertTrue(isinstance(sock, MockSocket)) expected_socket_opts = { socket.SOL_SOCKET: { - socket.SO_REUSEADDR: 1, socket.SO_KEEPALIVE: 1, }, socket.IPPROTO_TCP: { |