##// END OF EJS Templates
keepalive: switch from thread to threading module...
Pulkit Goyal -
r29456:e61d384e default
parent child Browse files
Show More
@@ -113,7 +113,7 b' import errno'
113 import hashlib
113 import hashlib
114 import socket
114 import socket
115 import sys
115 import sys
116 import thread
116 import threading
117
117
118 from . import (
118 from . import (
119 util,
119 util,
@@ -135,7 +135,7 b' class ConnectionManager(object):'
135 * keep track of all existing
135 * keep track of all existing
136 """
136 """
137 def __init__(self):
137 def __init__(self):
138 self._lock = thread.allocate_lock()
138 self._lock = threading.Lock()
139 self._hostmap = {} # map hosts to a list of connections
139 self._hostmap = {} # map hosts to a list of connections
140 self._connmap = {} # map connections to host
140 self._connmap = {} # map connections to host
141 self._readymap = {} # map connection to ready state
141 self._readymap = {} # map connection to ready state
General Comments 0
You need to be logged in to leave comments. Login now