From 499377271c865fb4461a21945036377fee13ae9f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 22 Feb 2014 14:12:39 -0500 Subject: [PATCH] Correct setsockopt call argument to correct protocol --- confluent/sockapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent/sockapi.py b/confluent/sockapi.py index 97c9f099..8556d566 100644 --- a/confluent/sockapi.py +++ b/confluent/sockapi.py @@ -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,