[tor-commits] [flashproxy/master] Log the socket error when we fail to send a reg.
dcf at torproject.org
dcf at torproject.org
Sun Aug 21 09:40:32 UTC 2011
commit c3ea89cb2a2c1e5f8496ec526b9d1c7451e2d06d
Author: David Fifield <david at bamsoftware.com>
Date: Sun Aug 21 01:57:34 2011 -0700
Log the socket error when we fail to send a reg.
---
facilitator.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/facilitator.py b/facilitator.py
index 4e14408..86b924c 100755
--- a/facilitator.py
+++ b/facilitator.py
@@ -229,11 +229,11 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_client(reg)
log(u"proxy %s gets %s, relay %s (now %d)" %
(proxy_addr_s, unicode(reg), options.relay_spec, len(REGS)))
- except socket.error:
+ except socket.error, e:
# Something went wrong; likely the proxy disconnected without
# receiving a reg. Restore the reg to the front of the queue.
REGS.add_front(reg)
- log(u"proxy %s gets none" % proxy_addr_s)
+ log(u"proxy %s gets none (%s)" % (proxy_addr_s, str(e)))
def do_POST(self):
client_addr_s = format_addr(self.client_address)
More information about the tor-commits
mailing list