mercurial/keepalive.py
changeset 16687 e34106fa0dc3
parent 16686 67964cda8701
child 16688 cfb6682961b8
equal deleted inserted replaced
16686:67964cda8701 16687:e34106fa0dc3
   532 
   532 
   533     if self.sock is None:
   533     if self.sock is None:
   534         if self.auto_open:
   534         if self.auto_open:
   535             self.connect()
   535             self.connect()
   536         else:
   536         else:
   537             raise httplib.NotConnected()
   537             raise httplib.NotConnected
   538 
   538 
   539     # send the data to the server. if we get a broken pipe, then close
   539     # send the data to the server. if we get a broken pipe, then close
   540     # the socket. we want to reconnect when somebody tries to send again.
   540     # the socket. we want to reconnect when somebody tries to send again.
   541     #
   541     #
   542     # NOTE: we DO propagate the error, though, because we cannot simply
   542     # NOTE: we DO propagate the error, though, because we cannot simply