Commit 6b714030 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Disable acceptor temporarily when process runs out of fd

parent 84832258
......@@ -81,6 +81,12 @@ void AcceptHandler::accept_connection() {
case EOPNOTSUPP:
case ENETUNREACH:
continue;
case EMFILE:
case ENFILE:
LOG(WARN) << "acceptor: running out file descriptor; disable acceptor "
"temporarily";
conn_hnr_->disable_acceptor_temporary(30.);
break;
}
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment