Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5374

SO_LINGER should not be set on AF_UNIX socket on WSL (portability issue)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.14.1
    • None
    • C++ - Library
    • 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

          Activity

            People

              Unassigned Unassigned
              nmeocisco Nat Meo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: