Skip to content

Commit

Permalink
[FIX] Fixed issue causing all TCP/TLS communications to isntantly tim…
Browse files Browse the repository at this point in the history
…eout.
  • Loading branch information
tayler6000 committed Dec 30, 2023
1 parent a215093 commit 72cf17f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyVoIP/sock/sock.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def recv(self, nbytes: int, timeout=0, peak=False) -> bytes:
return self._udp_recv(nbytes, timeout, peak)

def _tcp_tls_recv(self, nbytes: int, timeout=0, peak=False) -> bytes:
timeout = time.monotonic() + timeout if timeout else math.inf
# TODO: Timeout
msg = None
while not msg and not self.sock.SD:
Expand Down

0 comments on commit 72cf17f

Please sign in to comment.