Skip to content
Snippets Groups Projects
Commit da910d54 authored by Travis Glenn Hansen's avatar Travis Glenn Hansen
Browse files

more code to prevent infinite loop

parent bef9bf3b
No related branches found
No related tags found
No related merge requests found
......@@ -567,6 +567,10 @@ resetting counter\n");
&optval, optlen)) == -1)
fanout_error ("failed setting keepalive");
if ((setsockopt (client_i->fd, SOL_SOCKET, SO_LINGER,
&so_linger, sizeof so_linger)) == -1)
fanout_error ("failed setting linger");
//Shove current new connection in the front of the line
client_i->next = client_head;
if (client_head != NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment