java - detecting server crash during long-polling http request -


i have java client uses httpclient connect server , wait response. response may return after long time (the client waits event server).

other using timeouts, there way detect when server crashes?

considering server has "crashed" cannot relied upon send message indicating has crashed, no.

the solution use timeout, set upper limit on amount of time client willing wait request.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -