• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

sending a small amount of data to keep webserver connection alive.


In the current system that i am using there is a jsp page that processes more than 10,000 items in a while loop from a result set.

I need to send some 'dummy data' to an html page in a hidden field

so that the apache server does not time out within its speficied time.

 

or is there a way to increase the Apache webserver default time out.

 

 

 

0
imrama
Asked:
imrama
1 Solution
 
petmagdyCommented:
try this, in ur jsp every 100 item run this:

<%

out.flush();

%>
0
 
imramaAuthor Commented:
the apache bridge is every 4 mins, i.e. the  timeout is set to that,  is it possible
to create a thread that will sleep for 4 minutes or something and every 4 minutes it awakes to send something to the server?
0
 
imramaAuthor Commented:
in order to keep the bridge open
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
petmagdyCommented:
suppose that every item u proccess u diplay a row in the page, if u every while sent to the user the finished rows to be displayed it will not disconnect
0
 
Ryan ChongCommented:
Maybe you can try create a separte page and simply add a meta tag to refresh the page on a certain interval?

<meta http-equiv="refresh" content="60">

60 = 60 seconds

Will this works for your condition?
0
 
pronaneCommented:
what you need to do is, it appears that your jsp is waiting for something to happen in between is that
correct?  if so break up your code into blocks and after each block just send a blank
post request or get request to the server and that should keep the connection open with the
apache server.

hope this helps
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now