We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd95809 commit cc28cf2Copy full SHA for cc28cf2
easyecs/helpers/common.py
@@ -59,6 +59,7 @@ def convert_containers_to_dict(containers):
59
60
def is_port_in_use(port: int) -> bool:
61
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
62
+ s.settimeout(0.5)
63
try:
64
s.connect(("127.0.0.1", int(port)))
65
s.shutdown(2)
0 commit comments