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 0e4c401 commit d49b766Copy full SHA for d49b766
pytest_mqtt/util.py
@@ -15,6 +15,7 @@ def probe_tcp_connect(host: str, port: int) -> bool:
15
https://github.com/lovelysystems/lovely.testlayers/blob/0.7.0/src/lovely/testlayers/util.py#L6-L13
16
"""
17
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
18
+ s.settimeout(0.1)
19
ex = s.connect_ex((host, port))
20
if ex == 0:
21
s.close()
0 commit comments