aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-03 13:57:12 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-03 13:57:12 +1200
commit6943d7e3977a53df83267c1bbe58f60b9867a2a6 (patch)
treea1e74086702060e234482cebfd6eec9108228e17 /netlib
parent0d4a9303977a9556feb037ec277678f11c983a39 (diff)
downloadmitmproxy-6943d7e3977a53df83267c1bbe58f60b9867a2a6.tar.gz
mitmproxy-6943d7e3977a53df83267c1bbe58f60b9867a2a6.tar.bz2
mitmproxy-6943d7e3977a53df83267c1bbe58f60b9867a2a6.zip
More explicit name for the tcp.Server handler counter
Diffstat (limited to 'netlib')
-rw-r--r--netlib/tcp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 61209d64..de12102e 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -872,10 +872,10 @@ class TCPServer(object):
self.socket.bind(self.address())
self.address = Address.wrap(self.socket.getsockname())
self.socket.listen(self.request_queue_size)
- self.counter = Counter()
+ self.handler_counter = Counter()
def connection_thread(self, connection, client_address):
- with self.counter:
+ with self.handler_counter:
client_address = Address(client_address)
try:
self.handle_client_connection(connection, client_address)