mercurial/keepalive.py
changeset 48924 dea766fca7e1
parent 48895 62baa61efe8f
child 48946 642e31cb55f0
equal deleted inserted replaced
48923:428177ad70b0 48924:dea766fca7e1
   191             self._cm.remove(h)
   191             self._cm.remove(h)
   192             h.close()
   192             h.close()
   193 
   193 
   194     def close_all(self):
   194     def close_all(self):
   195         """close all open connections"""
   195         """close all open connections"""
   196         for host, conns in pycompat.iteritems(self._cm.get_all()):
   196         for host, conns in self._cm.get_all().items():
   197             for h in conns:
   197             for h in conns:
   198                 self._cm.remove(h)
   198                 self._cm.remove(h)
   199                 h.close()
   199                 h.close()
   200 
   200 
   201     def _request_closed(self, request, host, connection):
   201     def _request_closed(self, request, host, connection):