Skip to content

Commit aca4a35

Browse files
committed
raise TimeoutError on recieve packet
1 parent be62aa1 commit aca4a35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firebirdsql/event_conduit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _recv_channel(self, nbytes, timeout):
4141
r = bytes([])
4242
while n:
4343
if (timeout is not None and select.select([self.sock._sock], [], [], timeout)[0] == []):
44-
break
44+
raise TimeoutError("Pakcet recv timeout error")
4545
b = self.sock.recv(n)
4646
if not b:
4747
break

firebirdsql/fbcore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def _recv_channel(self, nbytes, word_alignment=False):
577577
r = bytes([])
578578
while n:
579579
if (self.timeout is not None and select.select([self.sock._sock], [], [], self.timeout)[0] == []):
580-
break
580+
raise TimeoutError("Pakcet recv timeout error")
581581
b = self.sock.recv(n)
582582
if not b:
583583
break

0 commit comments

Comments
 (0)