We are using REST infrastructure of Spring MVC over Tomcat 7. We have requests that may last couple of seconds. Do we have a way to get notified when the client of the HTTP request was disconnected and not listening to the response anymore?
Asked
Active
Viewed 344 times
0
-
From this ticket, it seems that you cannot do that. http://stackoverflow.com/questions/7606366/javas-httpservletresponse-doesnt-have-isclientconnected-method. – Surasin Tancharoen Feb 26 '13 at 16:15
1 Answers
0
Are you using any javascript component to make REST request? grid or dropdown?
Possibly you need to check response code from the call. If you get response code, it means client has disconnected.

Siva
- 1