TCP Keep Alive on idHttpServer (server) and wininet (client)
问题 I have a webserver application developed using idHttpServer. When a client connects do my webserver and, for some unknown reason, got disconnect (not a gracefully disconnect) my webserver does not get notified. I know this is the normal behavior but I need to know when the client dies. There are a few ways of doing this. I know 2 good ways: 1 - Implement a heart beat mechanism. The client socket notifies the server that it is still alive (need some work and some code to make it works) 2 - TCP