You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nat Meo (Jira)" <ji...@apache.org> on 2021/03/18 17:25:00 UTC

[jira] [Created] (THRIFT-5374) SO_LINGER should not be set on AF_UNIX socket

Nat Meo created THRIFT-5374:
-------------------------------

             Summary: SO_LINGER should not be set on AF_UNIX socket
                 Key: THRIFT-5374
                 URL: https://issues.apache.org/jira/browse/THRIFT-5374
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 0.14.1
            Reporter: Nat Meo


For an AF_UNIX socket it appears that there should not be a call to set SO_LINGER done using setsockopt(). This code appears to be doing this in places like TServerSocket where a call to _setup_sockopts() is being made for domain sockets. While this does not actually cause problems under normal Linux, it does cause problems under WSL as reported in this issue:

https://github.com/microsoft/WSL/issues/3992

It would be nice to fix this to allow portability for WSL and maybe just taking an extra precaution as to what options should actually be passed to domain sockets.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)