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

ServerSocket doesn't ignore SIGPIPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • C++ - Library
    • None

    Description

      TServerSocket sets up many socket options, but unlike TSocket, it doesn't disable SIGPIPE.

      One example for how this can be triggered is the server receives a request, but takes too long to process it. The sender then times out, and potentially closes its sockets. The server then completes the request, and then attempts to write back the result. Since the socket is now closed, a SIGPIPE signal is sent to the process, and if that signal isn't ignored, the process would crash, with a potential -13 exit code.

      Attachments

        Issue Links

          Activity

            People

              kwojniak_box Kevin Wojniak
              kwojniak_box Kevin Wojniak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h