mirror of
https://github.com/nghttp2/nghttp2.git
synced 2026-03-29 01:09:17 +08:00
nghttpx: Deal with ECONNRESET for IPC socket on worker process side
This commit is contained in:
@@ -165,6 +165,13 @@ void ipc_readcb(struct ev_loop *loop, ev_io *w, int revents) {
|
|||||||
if (nread == -1) {
|
if (nread == -1) {
|
||||||
auto error = errno;
|
auto error = errno;
|
||||||
LOG(ERROR) << "Failed to read data from ipc channel: errno=" << error;
|
LOG(ERROR) << "Failed to read data from ipc channel: errno=" << error;
|
||||||
|
|
||||||
|
if (error == ECONNRESET) {
|
||||||
|
LOG(FATAL)
|
||||||
|
<< "IPC socket connection was reset. Perform immediate shutdown.";
|
||||||
|
nghttp2_Exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user