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) {
int fd = iface->fd_udp[thrid];
int fd = iface->fd_udp[thrid % iface->fd_udp_count];
int fd = iface->fd_udp[0];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment