This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Browser closed related issue

 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends. Usually, the dropped connection will be detected when the response buffer is being flushed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic