Lines Matching refs:close
55 connection-close behavior for certain requests. For example, it
56 is impossible to tell whether the server will close the connection
276 self.will_close = _UNKNOWN # conn will close at end of response
351 # will the connection close at the end of the response?
377 # WILL close.
388 if conn and "close" in conn.lower():
409 # otherwise, assume it will close
415 fp.close()
417 def close(self):
419 super().close() # set "closed" flag
442 # NOTE: it is possible that we will not ever call self.close(). This
446 # IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be
535 # close the connection as protocol synchronisation is
556 # chunk_left == 0: at the end of the current chunk, need to close it
572 # we read everything; close the "file"
925 self.close()
940 response.close()
957 def close(self):
964 sock.close() # close it manually... there may be other refs
969 response.close()
1106 # to close the connection upon completion.
1353 # cannot read this response's header to determine the connection-close
1356 # note: if a prior response existed, but was connection-close, then the
1380 self.close()
1387 self.close()
1394 response.close()