2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-15 17:49:34 +00:00

Add timeout on httpapi socket

Clients that fail to send any data, or keep a persistent socket
open without using it are killed off.
This commit is contained in:
Jarrod Johnson 2018-06-01 16:25:38 -04:00
parent 8fc29d1b46
commit e8cea66a85

View File

@ -785,7 +785,7 @@ def serve(bind_host, bind_port):
' a second\n')
eventlet.sleep(1)
eventlet.wsgi.server(sock, resourcehandler, log=False, log_output=False,
debug=False)
debug=False, socket_timeout=60)
class HttpApi(object):