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 5b21b95 commit 13e0e0eCopy full SHA for 13e0e0e
src/smartinspect/protocols/tcp_protocol.py
@@ -143,7 +143,10 @@ def _internal_connect(self):
143
def _internal_initialize_socket(self) -> socket.socket:
144
socket_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
145
socket_.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
146
- socket_.settimeout(self._timeout)
+ # settimeout argument is in seconds, smartinspect timeout option is milliseconds
147
+ # convert ms to s by dividing by 1000
148
+ # https://docs.python.org/3/library/socket.html#socket.socket.settimeout
149
+ socket_.settimeout(self._timeout / 1000)
150
socket_.connect((self._hostname, self._port))
151
152
return socket_
0 commit comments