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

Method conn_closed

pymongo/asynchronous/pool.py:579–584  ·  view source on GitHub ↗

Return True if we know socket has been closed, False otherwise.

(self)

Source from the content-addressed store, hash-verified

577 pass
578
579 def conn_closed(self) -> bool:
580 """Return True if we know socket has been closed, False otherwise."""
581 if _IS_SYNC:
582 return self.socket_checker.socket_closed(self.conn.get_conn)
583 else:
584 return self.conn.is_closing()
585
586 def send_cluster_time(
587 self,

Callers 1

_perishedMethod · 0.45

Calls 2

socket_closedMethod · 0.80
is_closingMethod · 0.45

Tested by

no test coverage detected