Skip to content

Commit 9a0b18f

Browse files
Removed dead code.
1 parent 4d3f461 commit 9a0b18f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/oracledb/impl/thin/transport.pyx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,6 @@ cdef class Transport:
4444
bint _full_packet_size
4545
bint _is_async
4646

47-
cdef int _get_data(self, ReadBuffer buf, object obj,
48-
ssize_t bytes_requested, ssize_t *bytes_read) except -1:
49-
"""
50-
Simple function that performs a socket read while verifying that the
51-
server has not reset the connection. If it has, the dead connection
52-
error is raised instead.
53-
"""
54-
try:
55-
bytes_read[0] = self._transport.recv_into(obj, bytes_requested)
56-
except ConnectionResetError as e:
57-
errors._raise_err(errors.ERR_CONNECTION_CLOSED, str(e), cause=e)
58-
if bytes_read[0] == 0:
59-
self.disconnect()
60-
buf._transport = None
61-
errors._raise_err(errors.ERR_CONNECTION_CLOSED)
62-
6347
cdef str _get_debugging_header(self, str operation):
6448
"""
6549
Returns the header line used for debugging packets.

0 commit comments

Comments
 (0)