equal
deleted
inserted
replaced
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): |