blob: 1b3d0c8270b5a7f390bac693e888d5885b49a2e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- a/src/core/lib/iomgr/tcp_server_posix.cc
+++ b/src/core/lib/iomgr/tcp_server_posix.cc
@@ -38,5 +38,6 @@
#include <util/generic/string.h>
#include <util/string/cast.h>
+#include <util/system/yassert.h>
#include "y_absl/strings/str_cat.h"
#include "y_absl/strings/str_format.h"
@@ -209,6 +209,8 @@
errno == EWOULDBLOCK) {
grpc_fd_notify_on_read(sp->emfd, &sp->read_closure);
return;
+ } else if (errno == EMFILE || errno == ENFILE) {
+ Y_ABORT("grpc failed accept4: %s", strerror(errno));
} else {
gpr_mu_lock(&sp->server->mu);
if (!sp->server->shutdown_listeners) {
|