This is an automated email from the ASF dual-hosted git repository.

rbulter pushed a commit to branch hotfix/remove_EPOLOUT_event_to_reduce_cpu_load
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 4c40981dc7cdef9019ab56af3fafbbfa280e8602
Author: Roy Bulter <[email protected]>
AuthorDate: Sun Jun 28 08:10:59 2020 +0200

    remove EPOLLOUT
---
 bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c 
b/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
index 3bb31cd..d630e5c 100644
--- a/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
+++ b/bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
@@ -1223,7 +1223,7 @@ int pubsub_tcpHandler_acceptHandler(pubsub_tcpHandler_t 
*handle, psa_tcp_connect
 #else
         struct epoll_event event;
         bzero(&event, sizeof(event)); // zero the struct
-        event.events = EPOLLIN | EPOLLRDHUP | EPOLLERR | EPOLLOUT;
+        event.events = EPOLLIN | EPOLLRDHUP | EPOLLERR;
         event.data.fd = entry->fd;
         // Register Read to epoll
         rc = epoll_ctl(handle->efd, EPOLL_CTL_ADD, entry->fd, &event);

Reply via email to