socket reusage

This commit is contained in:
DJ2LS 2020-12-28 14:32:21 +01:00 committed by GitHub
parent 18d0d4e947
commit d65192549c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,7 @@ audio_receiver_thread.start()
#--------------------------------------------START SERVER
logging.info("STARTING TCP/IP SOCKET ON PORT " + str(static.PORT))
try:
socketserver.TCPServer.allow_reuse_address = True #https://stackoverflow.com/a/16641793
server = socketserver.TCPServer((static.HOST, static.PORT), tnc.TCPRequestHandler)
server.serve_forever()
finally: