2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Correct setsockopt call argument to correct protocol

This commit is contained in:
Jarrod Johnson 2014-02-22 14:12:39 -05:00
parent d8619e76b9
commit 499377271c

View File

@ -133,7 +133,7 @@ def process_request(connection, request, cfm, authdata):
def _tlshandler():
plainsocket = socket.socket()
plainsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
plainsocket.setsockopt(socket.SOL_SOCKET, socket.TCP_NODELAY, 1)
plainsocket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
srv = ssl.wrap_socket(plainsocket, keyfile="/etc/confluent/privkey.pem",
certfile="/etc/confluent/srvcert.pem",
ssl_version=ssl.PROTOCOL_TLSv1,