[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] r24452: {check} Attempt to fix an issue where dns requests time out and apac (check/trunk/cgi-bin)
Author: sebastian
Date: 2011-03-27 01:20:31 +0000 (Sun, 27 Mar 2011)
New Revision: 24452
Modified:
check/trunk/cgi-bin/TorCheck.py
Log:
Attempt to fix an issue where dns requests time out and apache
overloads
Modified: check/trunk/cgi-bin/TorCheck.py
===================================================================
--- check/trunk/cgi-bin/TorCheck.py 2011-03-26 21:52:09 UTC (rev 24451)
+++ check/trunk/cgi-bin/TorCheck.py 2011-03-27 01:20:31 UTC (rev 24452)
@@ -67,7 +67,10 @@
request = DNS.DnsRequest(name=ELQuestion,qtype='A')
# Ask the question and load the data into our answer
- answer=request.req()
+ try:
+ answer=request.req()
+ except DNSError:
+ return 2
# Parse the answer and decide if it's allowing exits
# 127.0.0.2 is an exit and NXDOMAIN is not
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits