MCPcopy Index your code
hub / github.com/RustPython/RustPython / shutdown_request

Method shutdown_request

Lib/socketserver.py:513–521  ·  view source on GitHub ↗

Called to shutdown and close an individual request.

(self, request)

Source from the content-addressed store, hash-verified

511 return self.socket.accept()
512
513 def shutdown_request(self, request):
514 """Called to shutdown and close an individual request."""
515 try:
516 #explicitly shutdown. socket.close() merely releases
517 #the socket and waits for GC to perform the actual close.
518 request.shutdown(socket.SHUT_WR)
519 except OSError:
520 pass #some platforms may raise ENOTCONN here
521 self.close_request(request)
522
523 def close_request(self, request):
524 """Called to clean up an individual request."""

Callers 2

process_requestMethod · 0.45

Calls 2

close_requestMethod · 0.95
shutdownMethod · 0.45

Tested by

no test coverage detected