From 71f2cc11d2f282fde7ad81de804868a373f30ae5 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 12 Nov 2014 17:04:21 -0500 Subject: [PATCH] Fix for incorrect watchdog disabling --- .../airtime_analyzer/airtime_analyzer/status_reporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py index 63ddc704a..b86fa3e15 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py @@ -100,11 +100,11 @@ def send_http_request(picklable_request, retry_queue): raise TypeError("picklable_request must be a PicklableHttpRequest. Was of type " + type(picklable_request).__name__) try: #t = threading.Timer(60, alert_hung_request) - t.start() + #t.start() bare_request = picklable_request.create_request() s = requests.Session() prepared_request = s.prepare_request(bare_request) - #r = s.send(prepared_request, timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) + r = s.send(prepared_request, timeout=StatusReporter._HTTP_REQUEST_TIMEOUT) #t.cancel() # Watchdog no longer needed. r.raise_for_status() # Raise an exception if there was an http error code returned logging.info("HTTP request sent successfully.")