File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Browser closed related issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Servlets
Bookmark "Browser closed related issue" Watch "Browser closed related issue" New topic

Browser closed related issue

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213

I have a quick question on the servlet behaviour. If the browser is opened to access some information of a website, the servlet is called to retrieve something from the database. It could take long time to retrieve data from the database. If I close the browser at that moment, will the servlet be killed and stop retrieving data from the database?

Please advise

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62106

Depends. Usually, the dropped connection will be detected when the response buffer is being flushed.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Browser closed related issue