Skip to content
Snippets Groups Projects
Commit ee1c6a3d authored by Roy de Goei's avatar Roy de Goei
Browse files

Update util.py adding comment

parent cf7e07f3
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