MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / add

Method add

thirdparty/keepalive/keepalive.py:137–145  ·  view source on GitHub ↗
(self, host, connection, ready)

Source from the content-addressed store, hash-verified

135 self._readymap = {} # map connection to ready state
136
137 def add(self, host, connection, ready):
138 self._lock.acquire()
139 try:
140 if host not in self._hostmap: self._hostmap[host] = []
141 self._hostmap[host].append(connection)
142 self._connmap[connection] = host
143 self._readymap[connection] = ready
144 finally:
145 self._lock.release()
146
147 def remove(self, connection):
148 self._lock.acquire()

Callers 1

do_openMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected