Shut down socket connections properly after testing...

This commit is contained in:
Sven Slootweg 2013-12-08 01:49:18 +01:00
parent 97290dbb1c
commit 20eaf50791

View file

@ -20,6 +20,7 @@ while True:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(0.5)
s.connect(("127.0.0.1", port))
s.shutdown(socket.SHUT_RDWR)
s.close()
up = True
except socket.error, e: