aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2017-07-24 18:45:09 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2017-07-24 18:45:09 -0700
commit107840ffecca5e31d8363595656b262f092b2b01 (patch)
treea84ff7307422240c2154b833d6d0ad1a8fb5b404
parent2c12d506fa8113bf3c4ce5949c762a5a8d9e8ee5 (diff)
Disable epoll1 unless explicitly requested
-rw-r--r--src/core/lib/iomgr/ev_epoll1_linux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/ev_epoll1_linux.c b/src/core/lib/iomgr/ev_epoll1_linux.c
index 8db4a92453..dc48d73df9 100644
--- a/src/core/lib/iomgr/ev_epoll1_linux.c
+++ b/src/core/lib/iomgr/ev_epoll1_linux.c
@@ -1030,6 +1030,12 @@ static const grpc_event_engine_vtable vtable = {
/* It is possible that GLIBC has epoll but the underlying kernel doesn't.
* Create a dummy epoll_fd to make sure epoll support is available */
const grpc_event_engine_vtable *grpc_init_epoll1_linux(bool explicit_request) {
+ /* TODO(sreek): Temporarily disable this poller unless explicitly requested
+ * via GRPC_POLL_STRATEGY */
+ if (!explicit_request) {
+ return NULL;
+ }
+
if (!grpc_has_wakeup_fd()) {
return NULL;
}