2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Reduce long poll console to 25 seconds

A common proxy timeout is 30 seconds.  Adjust the
polling length to accomodate such a limitation.
This commit is contained in:
Jarrod Johnson 2016-02-23 10:35:58 -05:00
parent 18280ccd8a
commit 76ff9fd759

View File

@ -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