Lines Matching refs:close
53 connection-close behavior for certain requests. For example, it
54 is impossible to tell whether the server will close the connection
361 self.will_close = _UNKNOWN # conn will close at end of response
386 self.close()
457 # will the connection close at the end of the response?
482 # WILL close.
494 if conn and "close" in conn.lower():
515 # otherwise, assume it will close
518 def close(self):
520 self.fp.close()
524 # NOTE: it is possible that we will not ever call self.close(). This
528 # IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be
539 self.close()
553 self.close()
556 self.close() # we read everything
571 self.close()
575 self.close()
594 # close the connection as protocol synchronisation is
596 self.close()
632 # we read everything; close the "file"
633 self.close()
755 self.close()
777 def close(self):
778 """Close the connection to the HTTP server."""
780 self.sock.close() # close it manually... there may be other refs
783 self.__response.close()
854 # to close the connection upon completion.
1018 # cannot read this response's header to determine the connection-close
1021 # note: if a prior response existed, but was connection-close, then the
1051 self.close()
1130 # close our socket -- we want to restart after any protocol error
1131 self.close()
1140 def close(self):
1141 self._conn.close()