Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Submitting Request  RSS feed

 
Radhakrishnan Ranjit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If say, I have a hyperlink in a Jsp, clicking on which an action will be called to fetch data from the database. Assume that the data is huge and the response will occur only after 10 secs. During this time if the user clicks on the browser stop button; then what is the state of the request? To me it looks like the request will be still processed by the server. What will be the state of the request and will the server try to respond.

Thanks
Ranjit
 
Ravi Challapalli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Until the server tries to respond back the server would not know that the browser has killed the HTTP channel, so it completes its huge data retrieval and when it tries to respond it finds the HTTP channel closed - won’t be able to respond - throws an exception.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you retrieving a huge amount of data in the first place? Is it to present to the user? If so, you can cut down on the size of the data sets considerably by offering filtering and paging to the user.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!