Handle more connections after a client disconnects

This commit is contained in:
Eli Ribble 2024-08-01 14:39:04 -07:00
parent 99cc052f6f
commit fbdf2a6ef1
1 changed files with 8 additions and 7 deletions

View File

@ -33,6 +33,7 @@ def bind_socket(family, type_, proto, canonname, sockaddr):
except OSError as msg: except OSError as msg:
sock.close() sock.close()
return return
while True:
conn, addr = sock.accept() conn, addr = sock.accept()
with conn: with conn:
LOGGER.info("Connected by %s", addr) LOGGER.info("Connected by %s", addr)