[svn] commit: r437 - /branches/parkinglot/src/bin/msgq/msgq.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 8 12:43:58 UTC 2010
Author: jelte
Date: Fri Jan 8 12:43:58 2010
New Revision: 437
Log:
move reuseaddr directive before bind()
Modified:
branches/parkinglot/src/bin/msgq/msgq.py
Modified: branches/parkinglot/src/bin/msgq/msgq.py
==============================================================================
--- branches/parkinglot/src/bin/msgq/msgq.py (original)
+++ branches/parkinglot/src/bin/msgq/msgq.py Fri Jan 8 12:43:58 2010
@@ -96,9 +96,9 @@
def setup_listener(self):
"""Set up the listener socket. Internal function."""
self.listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ self.listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.listen_socket.bind(("127.0.0.1", self.c_channel_port))
self.listen_socket.listen(1024)
- self.listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.poller.register(self.listen_socket, select.POLLIN)
More information about the bind10-changes
mailing list