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:03:00 UTC
[jira] [Created] (THRIFT-5456) [C++] TSocketServer doesn't ignore
SIGPIPE
Kevin Wojniak created THRIFT-5456:
-------------------------------------
Summary: [C++] TSocketServer 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
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)