This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 214

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: 63534

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Browser closed related issue
It's not a secret anymore!