return a list of connected hosts and the number of connections to each. [('foo.com:80', 2), ('bar.org', 1)]
(self)
| 189 | |
| 190 | #### Connection Management |
| 191 | def open_connections(self): |
| 192 | """return a list of connected hosts and the number of connections |
| 193 | to each. [('foo.com:80', 2), ('bar.org', 1)]""" |
| 194 | return [(host, len(li)) for (host, li) in self._cm.get_all().items()] |
| 195 | |
| 196 | def close_connection(self, host): |
| 197 | """close connection(s) to <host> |
no test coverage detected