If the client is waiting on recv() and the connection times out due to keepalive timeout , what will be the return value of recv() and is there any specific error code set for connection termination due to keepalive timeout ?
I can see we have a specific error code for keepalive on windows. WSAENETRESET For a connection-oriented socket, this error indicates that the connection has been broken due to keep-alive activity that detected a failure while the operation was in progress. For a datagram socket, this error indicates that the time to live has expired.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740121(v=vs.85).aspx
Please let me know.