Solved

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

Posted on 2004-11-01
221 Views
Last Modified: 2010-04-01

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
Question by:imrama
    6 Comments
     
    LVL 13

    Expert Comment

    by:petmagdy
    try this, in ur jsp every 100 item run this:

    <%

    out.flush();

    %>
    0
     

    Author Comment

    by:imrama
    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
     

    Author Comment

    by:imrama
    in order to keep the bridge open
    0
     
    LVL 13

    Expert Comment

    by:petmagdy
    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
     
    LVL 48

    Expert Comment

    by:Ryan Chong
    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
     
    LVL 1

    Accepted Solution

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

     Java Android Coding Bundle

    Whether you're an Apple user or Android addict, learning to code for the Android platform is an extremely valuable, in-demand skill. It all starts with Java, the language behind the apps and games that make Android the top platform it is today.

    Suggested Solutions

    Title # Comments Views Activity
    maven project import to eclipse problems 13 85
    unit test DAO layer 1 130
    parse example 13 80
    struts hibernate integration example 28 72
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
    Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now