This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Request Timeout / Keep - Alive  RSS feed

 
Puneet Agarwal
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a situation where environment has Webseal between the end user PC i.e. the client browser and web application. When user sends in a request, request goes thru Webseal to web app server. Webseal gives application 2 minute to send a response back to satisfy request. But in our application, for complex actions, it will frequently exceed 2 min to send response.

The requirement is to send a communication ping between end user and web application thru this connection to continually reset the clock that Webseal keeps ticking on the connection.

Has anybody ever faced such a situation or come across this before. Any suggestion will be helpful. This is highly critical for us.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a sample project on my site that handles this by kicking of the long running process in a new thread, and returning a response immediately.
The response page has a meta refresh tag in it that causes it to refresh every n seconds; checking the status of the long running process with each iteration. When the process is done, it forwards to the results page.

See: http://simple.souther.us/not-so-simple.html
Look for LongRunningProcess.

Also, for processes taking more than 15 or 30 seconds, you might want to consider implementing an email notification so the user doesn't have to sit and wait for the process to complete.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!