UDP: remove events from TCP socket

This commit is contained in:
ruti 2024-05-04 23:04:56 +03:00
parent 9429008264
commit 4c99442199

View File

@ -161,7 +161,7 @@ struct eval *next_event(struct poolhd *pool, int *offs, int *type)
int mod_etype(struct poolhd *pool, struct eval *val, int type) int mod_etype(struct poolhd *pool, struct eval *val, int type)
{ {
struct epoll_event ev = { struct epoll_event ev = {
.events = type, .data = {val} .events = EPOLLRDHUP | type, .data = {val}
}; };
return epoll_ctl(pool->efd, EPOLL_CTL_MOD, val->fd, &ev); return epoll_ctl(pool->efd, EPOLL_CTL_MOD, val->fd, &ev);
} }