Skip to content

Commit

Permalink
Reuse ports
Browse files Browse the repository at this point in the history
  • Loading branch information
codedecde committed Oct 19, 2016
1 parent f977f86 commit f0092e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def BuildServer(self,port_no,num_clients):
None
"""
s = socket.socket()
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.settimeout(self.NETWORK_TIMER)
host = "0.0.0.0"
self.port = port_no
Expand Down

0 comments on commit f0092e9

Please sign in to comment.