nghttpx: Disable acceptor temporarily when process runs out of fd
This commit is contained in:
parent
8483225839
commit
6b714030dd
|
@ -81,6 +81,12 @@ void AcceptHandler::accept_connection() {
|
||||||
case EOPNOTSUPP:
|
case EOPNOTSUPP:
|
||||||
case ENETUNREACH:
|
case ENETUNREACH:
|
||||||
continue;
|
continue;
|
||||||
|
case EMFILE:
|
||||||
|
case ENFILE:
|
||||||
|
LOG(WARN) << "acceptor: running out file descriptor; disable acceptor "
|
||||||
|
"temporarily";
|
||||||
|
conn_hnr_->disable_acceptor_temporary(30.);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue