(self, request)
Called to shutdown and close an individual request.
Called to shutdown and close an individual request.
Called to shutdown and close an individual request .
def shutdown_request(self, request):
        """Called to shutdown and close an individual request."""
        try:
            #explicitly shutdown.  socket.close() merely releases
            #the socket and waits for GC to perform the actual close.
            request.shutdown(socket.SHUT_WR)
        except OSError:
            pass #some platforms may raise ENOTCONN here
        self.close_request(request)
def shutdown_request ( self , request ) : try : #explicitly shutdown.  socket.close() merely releases #the socket and waits for GC to perform the actual close. request . shutdown ( socket . SHUT_WR ) except OSError : pass #some platforms may raise ENOTCONN here self . close_request ( request )