From 76ff9fd759345f2c200f0cd10f07f8d5962edbd7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 23 Feb 2016 10:35:58 -0500 Subject: [PATCH] Reduce long poll console to 25 seconds A common proxy timeout is 30 seconds. Adjust the polling length to accomodate such a limitation. --- confluent_server/confluent/httpapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 037fd1d4..3a7f0924 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -388,7 +388,7 @@ def resourcehandler_backend(env, start_response): return consolesessions[sessid]['expiry'] = time.time() + 90 outdata = consolesessions[sessid]['session'].get_next_output( - timeout=45) + timeout=25) bufferage = False if 'stampsent' not in consolesessions[sessid]: consolesessions[sessid]['stampsent'] = True