MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / open_connections

Method open_connections

thirdparty/keepalive/keepalive.py:191–194  ·  view source on GitHub ↗

return a list of connected hosts and the number of connections to each. [('foo.com:80', 2), ('bar.org', 1)]

(self)

Source from the content-addressed store, hash-verified

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>

Callers 1

error_handlerFunction · 0.80

Calls 2

itemsMethod · 0.80
get_allMethod · 0.80

Tested by

no test coverage detected