MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / update_is_writable

Method update_is_writable

pymongo/asynchronous/pool.py:900–907  ·  view source on GitHub ↗

Updates the is_writable attribute on all sockets currently in the Pool.

(self, is_writable: Optional[bool])

Source from the content-addressed store, hash-verified

898 await conn.close_conn(ConnectionClosedReason.STALE)
899
900 async def update_is_writable(self, is_writable: Optional[bool]) -> None:
901 """Updates the is_writable attribute on all sockets currently in the
902 Pool.
903 """
904 self.is_writable = is_writable
905 async with self.lock:
906 for _socket in self.conns:
907 _socket.update_is_writable(self.is_writable) # type: ignore[arg-type]
908
909 async def reset(
910 self, service_id: Optional[ObjectId] = None, interrupt_connections: bool = False

Callers 2

_update_serversMethod · 0.45
checkinMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected