I\'m implementing a long poll http connection using java servlet.
How can I know that the http client is still active at any instance? Currently, what I do is to wri
Maybe you've taken the wrong approach? HTTP protocol is developed to be used in a request-response style, it is not suited to be used for a long polling. In fact, there should be lowest possible delay before client gets a server response.
The case you've described looks like a job for a good old Socket.