2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-19 20:16:04 +00:00

Merge branch 'master' of github.com:jjohnson42/confluent

This commit is contained in:
Jarrod Johnson 2019-01-14 09:17:01 -05:00
commit 74355bd6f9
2 changed files with 4 additions and 0 deletions

View File

@ -789,6 +789,8 @@ def serve(bind_host, bind_port):
'Failed to open HTTP due to busy port, trying again in'
' a second\n')
eventlet.sleep(1)
# TCP_FASTOPEN
sock.setsockopt(socket.SOL_TCP, 23, 5)
eventlet.wsgi.server(sock, resourcehandler, log=False, log_output=False,
debug=False, socket_timeout=60)

View File

@ -329,6 +329,8 @@ def _tlshandler(bind_host, bind_port):
raise
sys.stderr.write('TLS Socket in use, retrying in 1 second\n')
eventlet.sleep(1)
# Enable TCP_FASTOPEN
plainsocket.setsockopt(socket.SOL_TCP, 23, 5)
plainsocket.listen(5)
while (1): # TODO: exithook
cnn, addr = plainsocket.accept()