Set SO_REUSEPORT on the listening socket
This commit is contained in:
parent
081898960b
commit
bd6a379837
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ def main():
|
|||
target_backend = args.backend
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
||||
sock.bind(('0.0.0.0', args.port))
|
||||
|
||||
# max queued connections
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue