Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.14.1
-
None
-
None
Description
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.
Attachments
Issue Links
- is related to
-
THRIFT-747 C++ TSocket->close calls shutdown breaking forked parent process
- Closed
-
THRIFT-748 C++ TSocket default linger setting breaks forked parent process
- Closed