Skip to content
Snippets Groups Projects
Commit a9b9a86c authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files
parents ecd702f6 ee1c6a3d
No related branches found
No related tags found
1 merge request!96Resolve TMSS-139
......@@ -204,6 +204,7 @@ def find_free_port(preferred_port: int=0):
s.bind(('', preferred_port))
except OSError as e:
if e.errno==98: # OSError: [Errno 98] Address already in use
# OS will find a available port with bind option 0
s.bind(('', 0))
else:
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment