Nick Withers created THRIFT-5617:
------------------------------------

             Summary: T(SSL)Socket TCP keep-alive incorrectly applies 
SO_KEEPALIVE to IPPROTO_TCP
                 Key: THRIFT-5617
                 URL: https://issues.apache.org/jira/browse/THRIFT-5617
             Project: Thrift
          Issue Type: Bug
          Components: Python - Library
            Reporter: Nick Withers


{{SO_KEEPALIVE}} is a {{SOL_SOCKET}}-level socket option.

At least on my (Linux-based) system, this causes {{IPPROTO_TCP}} 
{{TCP_DEFER_ACCEPT}} to be set to 1 when a {{T(SSL)Socket}} is created with 
{{socket_keepalive}} set and keep-alives are not enabled.

See also: https://man7.org/linux/man-pages/man7/socket.7.html , 
https://docs.microsoft.com/en-us/windows/win32/winsock/so-keepalive



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to