equal
deleted
inserted
replaced
133 pass |
133 pass |
134 else: |
134 else: |
135 del self._connmap[connection] |
135 del self._connmap[connection] |
136 del self._readymap[connection] |
136 del self._readymap[connection] |
137 self._hostmap[host].remove(connection) |
137 self._hostmap[host].remove(connection) |
138 if not self._hostmap[host]: del self._hostmap[host] |
138 if not self._hostmap[host]: |
|
139 del self._hostmap[host] |
139 finally: |
140 finally: |
140 self._lock.release() |
141 self._lock.release() |
141 |
142 |
142 def set_ready(self, connection, ready): |
143 def set_ready(self, connection, ready): |
143 try: |
144 try: |
619 foo = '' |
620 foo = '' |
620 while True: |
621 while True: |
621 f = fo.readline() |
622 f = fo.readline() |
622 if f: |
623 if f: |
623 foo = foo + f |
624 foo = foo + f |
624 else: break |
625 else: |
|
626 break |
625 fo.close() |
627 fo.close() |
626 m = md5(foo) |
628 m = md5(foo) |
627 print(format % ('keepalive readline', m.hexdigest())) |
629 print(format % ('keepalive readline', m.hexdigest())) |
628 |
630 |
629 def comp(N, url): |
631 def comp(N, url): |