1135
1135
fds[pollfd_count].fd= ip_sock;
1136
1136
fds[pollfd_count].events= POLLIN | POLLERR;
1143
(void) setsockopt(ip_sock, SOL_SOCKET, SO_REUSEADDR, (char*)&flags, sizeof(flags));
1144
(void) setsockopt(ip_sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&flags, sizeof(flags));
1145
(void) setsockopt(ip_sock, SOL_SOCKET, SO_LINGER, (void *)&ling, sizeof(ling));
1146
(void) setsockopt(ip_sock, IPPROTO_TCP, TCP_NODELAY, (void *)&flags, sizeof(flags));
1140
1151
Sometimes the port is not released fast enough when stopping and