Handle more connections after a client disconnects
This commit is contained in:
parent
99cc052f6f
commit
fbdf2a6ef1
1 changed files with 8 additions and 7 deletions
|
@ -33,6 +33,7 @@ def bind_socket(family, type_, proto, canonname, sockaddr):
|
|||
except OSError as msg:
|
||||
sock.close()
|
||||
return
|
||||
while True:
|
||||
conn, addr = sock.accept()
|
||||
with conn:
|
||||
LOGGER.info("Connected by %s", addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue