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 2af8299 commit 3e45d72Copy full SHA for 3e45d72
pymongo/network_layer.py
@@ -294,7 +294,7 @@ async def _async_socket_receive(
294
295
def wait_for_read(conn: Connection, deadline: Optional[float]) -> None:
296
"""Block until at least one byte is read, or a timeout, or a cancel."""
297
- sock = conn.conn
+ sock = conn.conn.sock
298
timed_out = False
299
# Check if the connection's socket has been manually closed
300
if sock.fileno() == -1:
@@ -461,9 +461,6 @@ def sock(self) -> Union[socket.socket, _sslConn]:
461
def fileno(self) -> int:
462
return self.conn.fileno()
463
464
- def pending(self) -> int:
465
- return self.conn.pending()
466
-
467
def recv_into(self, buffer: bytes) -> int:
468
return self.conn.recv_into(buffer)
469
0 commit comments