You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kevin Wojniak (Jira)" <ji...@apache.org> on 2021/08/16 21:07:00 UTC

[jira] [Updated] (THRIFT-5456) [C++] TServerSocket doesn't ignore SIGPIPE

     [ https://issues.apache.org/jira/browse/THRIFT-5456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Wojniak updated THRIFT-5456:
----------------------------------
    Summary: [C++] TServerSocket doesn't ignore SIGPIPE  (was: [C++] TSocketServer doesn't ignore SIGPIPE)

> [C++] TServerSocket doesn't ignore SIGPIPE
> ------------------------------------------
>
>                 Key: THRIFT-5456
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5456
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>            Reporter: Kevin Wojniak
>            Assignee: Kevin Wojniak
>            Priority: Major
>
> TSocketServer 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.



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