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
Post a Comment