Skip to content
Snippets Groups Projects
Commit b56abcbf authored by Marek Vavruša's avatar Marek Vavruša
Browse files

udp: nonblocking sockets for better distribution

parent 22fe8ca6
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ static int server_init_iface(iface_t *new_if, conf_iface_t *cfg_if)
return sock;
}
/* Set UDP as non-blocking. */
fcntl(sock, F_SETFL, O_NONBLOCK);
new_if->fd[IO_UDP] = sock;
/* Create bound TCP socket. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment