Update
This commit is contained in:
@@ -37,7 +37,6 @@ class HTTPServer:
|
||||
|
||||
def __do_start(self):
|
||||
# Create socket
|
||||
|
||||
self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.server.bind((self.address, self.port))
|
||||
|
||||
@@ -56,6 +55,8 @@ class HTTPServer:
|
||||
continue
|
||||
|
||||
conn, addr = self.server.accept()
|
||||
conn.settimeout(5)
|
||||
|
||||
logging.info("New connection: %s", addr[0])
|
||||
self._dispatch_queue.put((conn, addr))
|
||||
logging.debug("Dispatched connection %s", addr)
|
||||
|
Reference in New Issue
Block a user