Topic: RST on the client after socketclose on the server
Greetings, the Client and the server communicate on the simple protocol: - client sends request send () send () shutdown (SHUT_WR) - starts waiting for a reply read ()... - server accepts conn and reads request read ()... send (). - writes reply closesocket () - and immediately closes its socket Thus the client after closesocket () on the server periodically receives RST. In my understanding, it means that on the server in recv queue the unread data still lies. But: 1. If before socketclose () on the server to make recv () he reads 0 byte. 2. The problem transits, if before closesocket () on the server to cause shutdown (SHUT_BOTH). How it is possible to explain such behavior? Platform Win 7. SO_linger .