diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-02-01 11:24:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 11:24:36 -0800 |
commit | ff17e924e8037e3b528ac93654ddc6be410b0e16 (patch) | |
tree | 078e16d0bb889c32d030c103e8efd1e99ae6204a | |
parent | 6155774f3d5274734e740c33e4154b0211103be4 (diff) | |
parent | d2503b44f3a30161d0fb2b37016e8331adc84c01 (diff) | |
download | redis-py-ff17e924e8037e3b528ac93654ddc6be410b0e16.tar.gz |
Merge pull request #1130 from Junnplus/socket-patch
Use IPPROTO_TCP constant instead of SOL_TCP constant
-rwxr-xr-x | redis/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index 1ecba61..f0fa43b 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -527,7 +527,7 @@ class Connection(object): if self.socket_keepalive: sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) for k, v in iteritems(self.socket_keepalive_options): - sock.setsockopt(socket.SOL_TCP, k, v) + sock.setsockopt(socket.IPPROTO_TCP, k, v) # set the socket_connect_timeout before we connect sock.settimeout(self.socket_connect_timeout) |