Commit 13b14561 authored by Jan Včelák's avatar Jan Včelák 🚀

reuseport: make sure we don't exceed UDP fd set

parent ed1fc401
......@@ -462,7 +462,7 @@ static int track_ifaces(ifacelist_t *ifaces, fd_set *set, int *maxfd, int *minfd
iface_t *iface = NULL;
WALK_LIST(iface, ifaces->l) {
#ifdef ENABLE_REUSEPORT
int fd = iface->fd_udp[thrid];
int fd = iface->fd_udp[thrid % iface->fd_udp_count];
#else
int fd = iface->fd_udp[0];
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment