Dear all,
I'm maintaining an application with CSS 2.20.0. A network server has been implemented. To check if the socket connection with the client is down or not, the option SO_KEEPALIVE is enabled in the socket:
int optval; optval = 1;
if (setsockopt(stcpactive, SOL_SOCKET, SO_KEEPALIVE, &optval, sizeof(optval)) < 0)
{
return -1;
}
However, if I unplug the Ethernet wire when a connection is established, no error is detected from network: the program doesn't exit the fdSelect call to read a byte from socket to detect that the connection is broken. Also I've check that the keepalive time interval is configured in _ipcfg.RtKeepAliveTime.
Is the SO_KEEPALIVE option implemented? How can I change the RtKeepAliveTime?
Thanks and Best Regards,
Joaquim Duran