Scenario :
Problem :
How to detect browser closed in between the request and response cycle, at the server side ?
Though the problem can be solved by using another request from the UI, I was wondering whether we could get the information from the communication protocol itself ? As HTTP is using TCP/IP as the base protocol, shouldn't we be able to detect this as a connection closed from the connection initiator side.
I went through the servlet apis and also the api used for configuring jetty server but couldn't find anything closely related.
Also went through these stackoverflow questions
Any insights ?
You'll get an exception when you attempt to write to the servlet output stream / writer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With