_accept_connection() — requests Function Reference
Architecture documentation for the _accept_connection() function in server.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 597ead60_fb07_4fe0_6952_0c013fcb435d["_accept_connection()"] b9ecf8db_ec54_4dfb_626c_b3769674f676["Server"] 597ead60_fb07_4fe0_6952_0c013fcb435d -->|defined in| b9ecf8db_ec54_4dfb_626c_b3769674f676 30970975_142a_647d_c257_2b44a920d005["_handle_requests()"] 30970975_142a_647d_c257_2b44a920d005 -->|calls| 597ead60_fb07_4fe0_6952_0c013fcb435d style 597ead60_fb07_4fe0_6952_0c013fcb435d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/testserver/server.py lines 105–115
def _accept_connection(self):
try:
ready, _, _ = select.select(
[self.server_sock], [], [], self.WAIT_EVENT_TIMEOUT
)
if not ready:
return None
return self.server_sock.accept()[0]
except OSError:
return None
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _accept_connection() do?
_accept_connection() is a function in the requests codebase, defined in tests/testserver/server.py.
Where is _accept_connection() defined?
_accept_connection() is defined in tests/testserver/server.py at line 105.
What calls _accept_connection()?
_accept_connection() is called by 1 function(s): _handle_requests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free