parameters: (self)
docstring: Close the socket underlying this connection.
docstring_summary: Close the socket underlying this connection.
docstring_tokens: Close the socket underlying this connection .
function: def close(self):
          """Close the socket underlying this connection."""
          self.rfile.close()
  
          if not self.linger:
              self._close_kernel_socket()
              self.socket.close()
          else:
              # On the other hand, sometimes we want to hang around for a bit
              # to make sure the client has a chance to read our entire
              # response. Skipping the close() calls here delays the FIN
              # packet until the socket object is garbage-collected later.
              # Someday, perhaps, we'll do the full lingering_close that
              # Apache does, but not today.
              pass
function_tokens: def close ( self ) : self . rfile . close ( ) if not self . linger : self . _close_kernel_socket ( ) self . socket . close ( ) else : # On the other hand, sometimes we want to hang around for a bit # to make sure the client has a chance to read our entire # response. Skipping the close() calls here delays the FIN # packet until the socket object is garbage-collected later. # Someday, perhaps, we'll do the full lingering_close that # Apache does, but not today. pass