Returns True if the connection is dropped and should be closed. :param conn: :class:`urllib3.connection.HTTPConnection` object.
(conn: BaseHTTPConnection)
| 13 | |
| 14 | |
| 15 | def is_connection_dropped(conn: BaseHTTPConnection) -> bool: # Platform-specific |
| 16 | """ |
| 17 | Returns True if the connection is dropped and should be closed. |
| 18 | :param conn: :class:`urllib3.connection.HTTPConnection` object. |
| 19 | """ |
| 20 | return not conn.is_connected |
| 21 | |
| 22 | |
| 23 | # This function is copied from socket.py in the Python 2.7 standard |