mirror of
https://github.com/clearml/dropbear
synced 2025-03-05 11:38:53 +00:00
test: Set allow_reuse_addr
This avoids intermittent "Address already in use" failure
This commit is contained in:
parent
488ffce133
commit
ae8a0abc34
@ -72,6 +72,10 @@ def own_venv_command():
|
||||
return f"source {venv}/bin/activate"
|
||||
|
||||
class HandleTcp(socketserver.ThreadingMixIn, socketserver.TCPServer):
|
||||
|
||||
# override TCPServer's default, avoids TIME_WAIT
|
||||
allow_reuse_addr = True
|
||||
|
||||
""" Listens for a single incoming request, sends a response if given,
|
||||
and returns the inbound data.
|
||||
Reponse can be a queue object, in which case each item in the queue will
|
||||
|
Loading…
Reference in New Issue
Block a user