2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-27 13:40:25 +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 6e0186947f
commit a560dc1974

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):