diff options
| author | wangchen <wangchen41@xiaomi.com> | 2025-02-13 19:24:24 +0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-03-15 11:29:29 -0700 |
| commit | 7cc29a0b7a9e45e8bf3e70ec7ddab119b3380c02 (patch) | |
| tree | 43acd03708d76392ab146e300dd016a439b68430 /src/platform | |
| parent | 313e37495ce6f0e84c3ef3602f92ff4e9012b42e (diff) | |
| download | nng-7cc29a0b7a9e45e8bf3e70ec7ddab119b3380c02.tar.gz nng-7cc29a0b7a9e45e8bf3e70ec7ddab119b3380c02.tar.bz2 nng-7cc29a0b7a9e45e8bf3e70ec7ddab119b3380c02.zip | |
posix_pollq_epoll.c:add EPOLLHUP flag to aovid code error continues executing in tcp_cb
the reason of the modification refers to https://github.com/nanomsg/nng/issues/2100
Signed-off-by: wangchen <wangchen41@xiaomi.com>
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/posix/posix_pollq_epoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/posix/posix_pollq_epoll.c b/src/platform/posix/posix_pollq_epoll.c index 49c93627..447b2a67 100644 --- a/src/platform/posix/posix_pollq_epoll.c +++ b/src/platform/posix/posix_pollq_epoll.c @@ -225,7 +225,7 @@ nni_epoll_thr(void *arg) mask = ev->events & ((unsigned) (EPOLLIN | EPOLLOUT | - EPOLLERR)); + EPOLLERR | EPOLLHUP)); nni_atomic_and(&pfd->events, (int) ~mask); |
