I still have a problem with closing a TCP session. The HTTP server does
this:
send(sess->ws_socket, hdrbuf, strlen(hdrbuf), 0);
/* Close
socket and mark session for deletion */
closesocket(sess->ws_socket);
sess->ws_socket = INVALID_SOCKET;
sess->ws_state = WI_ENDING;
return
0;
/* OK Return
*/
}
Attached is the Wireshark capture from this code. In this case the
message sent contains a "404 page not found" which is never
displayed by the browser from lwIP but works fine from Windows and Linux.
Does anyone know why it is not displayed? The socket is set for non
blocking IO.
Is it the same reason that the lwIP telet server can't close a
session?