Firefox aborts its http request silently within 60 seconds

duplicate of [/questions/1047223]
*Summary
Firefox aborts its http request within almost 60 seconds(period till
timeout varies) and tells nothing to users. This happened with both of
Nginx and Apache.
*Environment
Client browser: Firefox 35.0.1
Client OS: Windows 7 Enterprise 32bit SP1
Web Server: Apache 2.2.3-91 & Nginx 1.6.2-1
Server OS: CentOS 5.11
PHP: 5.3.3
FastCGI: spawn-fcgi-1.6.3-1
*Description of the issue
I have noticed that nginx logs http response code 499 so often.
We use nginx almost only for two web applications, the one based on PHP
and others on ruby. We experiences this problem in both apps. The server and client PC belong to the same subnet.
Since last month, nginx logged 624 errors for Firefox and 16 for other
browsers(almost IE).
So for test, I wrote the simple PHP (see the bottom of this article) and tried to access it
through both of Apache & Nginx with Firefox 35.0.1 and IE 11. IE11
waited 120 seconds and returned html successfully through both of nginx
and Apache, but Firefox failed either.
Let me describe Firefox's behaviour.
1. Enter the test php url at location bar and press enter.
2. The message 'waiting server response' appears at status bar for a while.
3. Watching network conversation through Wireshark, 'Keep Alive' signals
are repeated some times between server and client, and after that,
4. The message dissappears. 'FIN' signal is sent to the server from the client just after that. Firebug logs 'Aborted' at the almost the same time.
5. The server responses 'FIN ACK.'
There is a bit difference with nginx and Apache in behaviour after 'FIN
ACK'.
A.Nginx
Nginx logs '499' error and finish conversation immediately.
B.Apache doesn't log anthying at this step. After 120 seconds(sleep timer
in PHP) from request it returns expected html. Of course Firefox don't render it but I could confirm both of request and response from Wireshark's 'Follow TCP Stream' function. Finally it is logged with http status code 200 at httpd log file.
I repeated this test several times. Actual timeout period varies from 22
to 70 seconds but results are same.
With my understanding, the browser is expected to show 'time out error'
after such situation but it doesn't show anything. So end user can't
know what happend.
*What I tried to solve the problem
*disabled all extentions other than firebug.
*set 'network.tcp.keepalive.enabled' to false at about:config.
*set 'network.http.spdy.enabled' to false, too.
*set 'network.http.response.timeout' to 0.
*disabled IPV6 and DNS prefetch seeing the following help.
https://support.mozilla.org/en-US/kb/websites-dont-load-troubleshoot-and-fix-errors
*changed Timeout to 0 at apche's http.conf.
My purpose is make our web apps to work properly in our working environment. I've recommended Firefox to our collegues because it was very cool application. Changing the default brawser is nightmare to me. Any suggestions are welcome.
<test php>
<?php sleep(120); ?>
<?php echo time(); ?>

duplicate of [/questions/1047223]
*Summary
Firefox aborts its http request within almost 60 seconds(period till
timeout varies) and tells nothing to users. This happened with both of
Nginx and Apache.
*Environment
Client browser: Firefox 35.0.1
Client OS: Windows 7 Enterprise 32bit SP1
Web Server: Apache 2.2.3-91 & Nginx 1.6.2-1
Server OS: CentOS 5.11
PHP: 5.3.3
FastCGI: spawn-fcgi-1.6.3-1
*Description of the issue
I have noticed that nginx logs http response code 499 so often.
We use nginx almost only for two web applications, the one based on PHP
and others on ruby. We experiences this problem in both apps. The server and client PC belong to the same subnet.
Since last month, nginx logged 624 errors for Firefox and 16 for other
browsers(almost IE).
So for test, I wrote the simple PHP (see the bottom of this article) and tried to access it
through both of Apache & Nginx with Firefox 35.0.1 and IE 11. IE11
waited 120 seconds and returned html successfully through both of nginx
and Apache, but Firefox failed either.
Let me describe Firefox's behaviour.
1. Enter the test php url at location bar and press enter.
2. The message 'waiting server response' appears at status bar for a while.
3. Watching network conversation through Wireshark, 'Keep Alive' signals
are repeated some times between server and client, and after that,
4. The message dissappears. 'FIN' signal is sent to the server from the client just after that. Firebug logs 'Aborted' at the almost the same time.
5. The server responses 'FIN ACK.'
There is a bit difference with nginx and Apache in behaviour after 'FIN
ACK'.
A.Nginx
Nginx logs '499' error and finish conversation immediately.
B.Apache doesn't log anthying at this step. After 120 seconds(sleep timer
in PHP) from request it returns expected html. Of course Firefox don't render it but I could confirm both of request and response from Wireshark's 'Follow TCP Stream' function. Finally it is logged with http status code 200 at httpd log file.
I repeated this test several times. Actual timeout period varies from 22
to 70 seconds but results are same.
With my understanding, the browser is expected to show 'time out error'
after such situation but it doesn't show anything. So end user can't
know what happend.
*What I tried to solve the problem
*disabled all extentions other than firebug.
*set 'network.tcp.keepalive.enabled' to false at about:config.
*set 'network.http.spdy.enabled' to false, too.
*set 'network.http.response.timeout' to 0.
*disabled IPV6 and DNS prefetch seeing the following help.
https://support.mozilla.org/en-US/kb/websites-dont-load-troubleshoot-and-fix-errors
*changed Timeout to 0 at apche's http.conf.
My purpose is make our web apps to work properly in our working environment. I've recommended Firefox to our collegues because it was very cool application. Changing the default brawser is nightmare to me. Any suggestions are welcome.
<test php>
<?php sleep(120); ?>
<?php echo time(); ?>

Similar Messages

  • Sign HTTP request in interactive PDF form

    I know that is possible to send HTTP request from PDF form. I know that is possible to sign whole PDF and submit it.
    But I want to sign some XML and send it from PDF as HTTP request. Is it possible?
    Thanks in advance
    Denis

    Hey Denis,
    "I know that is possible to send HTTP request from PDF form"
    Can you direct me to any examples of how to send a HTTP request from within a PDF file?
    Regards

  • Plugin login appears after initial weblogic everytime applet makes http request

    When I visit a page I get the initial login to the page via the realm followed
    by a java plugin loging (shown in attached pictures) every time the applet makes
    an http request. This stops the applet working, any idea how I can solve this?
    [pictures.doc]

    Any idea how to do thisn not really sure what you mean. I already inclued the session
    Id in the URL. Code we use to open connection is
    URL url = new URL(serverProtocol + "://" + serverName + ":" + serverPort + "/"
    + servlet + ((sessionId==null)?"":"?sessionid=" + sessionId));
    URLConnection uc = url.openConnection();
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    uc.setRequestProperty("Content-type", "java-internal/" + object.getClass().getName());
    Robert Patrick <[email protected]> wrote:
    If you are making HTTP requests from within an applet, you will need
    to provide the
    right HTTP headers to correctly identify that each subsequent request
    is from the
    previously logged-in user (e.g., the cookie that contains the WLS session
    ID
    attached to the response from logging in).
    andrea bates wrote:
    When I visit a page I get the initial login to the page via the realmfollowed
    by a java plugin loging (shown in attached pictures) every time theapplet makes
    an http request. This stops the applet working, any idea how I cansolve this?
    Name: pictures.doc
    pictures.doc Type: WINWORD File (application/msword)
    Encoding: base64

  • Firefox 4 freezes within seconds of starting. I had to uninstal it and instal an older version. Help?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/808469''
    I installed Firefox 4 and it behaved exactly as the Minefield beta did. It looked almost identical and froze within seconds. It flat out does not function. Is there a way to make it function or is this just a massive bug that will be fixed at some point?
    I run Windows XP

    Create a new profile exclusively for 4.0 and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • Firefox crashes on opening within seconds. started suddenly several weeks ago and i haven't been able to get on since. i reinstalled but updating didn't work. it won't even open in safe mode. HELP!

    firefox crashes on opening within seconds. this started suddenly a few weeks ago and despite several daily attempts, i still can't load firefox application. it crashes immediately upon startup every time no matter what and crash reporter arrives. i have researched all the articles and followed their suggestions. i installed the newest version of firefox and still get the same results. i can't even open firefox in safe mode.

    You do not want to remove the program directory with a Mac because Firefox is most likely installed in the system Applications directory which is where the system applications are stored.
    Have you tried removing the Firefox plist file from your user library? I have Mac OS 10.6.8 as well, and that file is at /Users/<user name>/Library/Preferences. Close Firefox and remove that file, then start Firefox again.

  • Firefox shuts down within seconds of opening

    Firefox shuts down within seconds of opening any web page.
    Same problem in Firefox safe mode.
    I have unchecked hardware acceleration.
    I have uninstalled, removed all data files, deleted all profiles and reinstalled Firefox.
    Internet Explorer works fine.

    I recently began to experience this same problem. There are many, many reports of this same trouble all over the web. Why is it that when so many people report having the same problem tech support asks each user to perform trouble shooting. The firefox team should instead look for the fault within the firefox program.

  • Every time i try to connect to firefox a message says the connection is untrusted, when i click get me out of here it goes to another firefox page and the it opens ok firefox opens as http first and then the second time it opens as https

    help every time i try to connect to firefox a message says the connection is untrusted, when i click get me out of here it goes to another firefox page and the it opens ok firefox opens as http first and then the second time it opens as https

    hello adzuki45, you already appear to run the latest version of firefox, so this shouldn't be a cause for concern, maybe your desktop shortcut is just misnamed).
    when there's a problem with installing flash, please see if it works with the full installer that is available at http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_header

  • Its urgent...How to implement functions in http request handler ?

    Hello experts,
    I have created http request handler class and  also created service in SICF.
    service and handler class are connected. please guide me how to implement “info”, “get”, “create”, “delete” functions in request handler.

    Hi,
    It seems you go on your way of http basic programming where you need handle the request of info, get, etc. But here you have WDA framework, so you don't need do as the basic ways of http programming. SICF can handle the activated WDA applications, maybe you can call them SERVICES.
    I suggest you go through WDA architecture, tutorials, ... and at last you can find a full demo 'LORD_MAINTAIN_COMP' by SE80.

  • HTTP request/response object not thread safe.

    According to the serlvet spec. Http Request/Response
    are not thread safe. Quoting from the Spec:
    " Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic."
    This has prompt me to ask the following question.
    For Example I have a servlet which does the following
    request.setAttribute("myVar","Hello");
    The request and response is dispatched(using RequestDispatch.include(request,response)) to another
    servlet which retrieve this attribute i.e request.getAttribute("myVar");
    Is this safe?
    The Spec only said "The Container Provider must ensure that the dispatch of the request to a target
    servlet occurs in the same thread of the same VM as the original request." I take this meaning that the targeting servlet does not have to run in the same thread(only dispatch), otherwise it would be safe.

    To put it another way, you can only have onle thing working on a request at a time. For instance, the ServletContext is available to all servlets running on a server. If you tried to save a particular request to the ServletContext, it would potentially be available to many concurrently running servlets. They could all change whatever in it at the same time. Each servlet is in its own running thread. Hope that helps some.

  • Invalid request for HTTP request from Java

    I've written the following code to retrieve data from HTTP url:
    byte [] buffer = new byte[1024];
                   URLConnection conn = src.openConnection();
                   //conn.setRequestProperty("Range", "bytes=" + (start + completed) + "-" + end);
                   //System.out.println("bytes=" + (start + completed) + "-" + end);
                   System.out.println("Response: " + ((HttpURLConnection)conn).getResponseCode());
                   BufferedInputStream bin = new BufferedInputStream(conn.getInputStream());
                   byte [] data = new byte[1024];
                   int readLen;
                   manager.addConnected();
                   while((readLen = bin.read(data)) != -1 && canContinue) {
                        dest.seek(start+completed);
                        dest.write(data, 0, readLen);
                        completed += readLen;
                        System.out.println(readLen + "\t" + completed);
                   dest.close();
                   System.out.println("Read: " + readLen);
              } catch(IOException e) {
                   manager.failConnection();
              }However, the response code printed is -1 and the following content is written to the file (dest is a random access file, you can ignore the seek(), it is needed when I start multi-threading).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The requested URL could not be retrieved</H2>
    <HR noshade size="1px">
    <P>
    While trying to process the request:
    <PRE>
    GET /ubuntu/pool/main/f/firefox/firefox_2.0.0.2+0dfsg-0ubuntu0.6.10_i386.deb HTTP/1.1
    User-Agent: Java/1.6.0
    Host: security.ubuntu.com
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    </PRE>
    <P>
    The following error was encountered:
    <UL>
    <LI>
    <STRONG>
    Invalid Request
    </STRONG>
    </UL>
    <P>
    Some aspect of the HTTP Request is invalid.  Possible problems:
    <UL>
    <LI>Missing or unknown request method
    <LI>Missing URL
    <LI>Missing HTTP Identifier (HTTP/1.0)
    <LI>Request is too large
    <LI>Content-Length missing for POST or PUT requests
    <LI>Illegal character in hostname; underscores are not allowed
    </UL>
    <P>Your cache administrator is <A HREF="mailto:root">root</A>.
    <BR clear="all">
    <HR noshade size="1px">
    <ADDRESS>
    Generated Fri, 16 Mar 2007 11:14:48 GMT by inet (squid/2.6.STABLE3)
    </ADDRESS>
    </BODY></HTML>Where does the problem lie? It failed for other URLs too. Can I establish more than one connection by invoking openURLConnection() on the same URL object?

    Ive run into this issue also. I need a way for a portlet to change to its maximized state for the purposes of user registration. Is there anyway this can be done? I know that sun jsp "Providers" which are shown on their example desktop, have some sort of maximized state that they can go into, but im not sure how to use this in a portlet.
    There seems to be very inconsistent support between the proprietary sun provider api, and the portlet api.

  • Load balancing HTTP requests for an OC4J instance w/multiple JVMs

    Hello everyone,
    I am using OAS 10.1.3.1 and wish to load balance HTTP requests across an OC4J group of one or more OC4J instances, where each like named OC4J instance may have multiple JVMs or it may just have one JVM.
    My mod_oc4j.conf file would contain the following directives :
    Oc4jSelectMethod roundrobin:local
    Oc4jRoutingMode Static
    Oc4JMount /xyz/* xyz
    In the degenerate case, I would like to have an OC4J group with a cluster size of one, and have that one OC4J instance have two or more JVMs. I would like to be able to receive a request within my web application, determine that the JVM that has been sent the request is the wrong JVM to process the request, and then call HttpServletResponse.sendRedirect("/xyz"). Then, when the browser receives the HTTP 302 response and issues the subsequent HTTP request, have that request sent to a different JVM than the previous JVM that issued the sendRedirect().
    What I have seen is that the subsequent request is sent back to the same JVM that issued the sendRedirect(). I also call invalidate() against the HttpSession prior to calling sendRedirect(), but that does not seem to affect the behavior that I see.
    In the full blown case, I would have an OC4J group with a cluster size > 1, and each of those OC4J instances would have at least one JVM. In that case, I wish the sendRedirect() call to allow the subsequent request to be sent to any one of the OC4J instances in the group, and any one of those JVMs within all of those OC4J instances.
    Can anyone verify that my mod_oc4j mount directive is appropriate given the select method and routing mode? What else might I need to do to have a chance to have a different JVM respond to the request that results from a sendRedirect()?
    Thank you,
    Doug

    I should clarify that in the full blown environment, the OC4J instances that form a group will each be housed within a separate OAS instance that resides on its own machine.
    So ideally, a request could be inbound to say OAS instance 1 on machine A, OC4J instance AA, JVM 2, and I need to force a redirect so that the request can actually be serviced by OAS instance 3 on machine C, OC4J instance AA, JVM 1, and I need to be able to call sendRedirect() against an HttpServletResponse from within a JVM until the subsequent request from the browser, Internet Explorer in my case, is serviced by that JVM.
    Thanks,
    Doug

  • Cookies do not get deleted / re-appear within seconds if I delete them manually and yes I've checked every single support page about this and it didn't help

    – I have the most recent version of Firefox.
    – I have my settings in Preferences -> Privacy on "Keep third party cookies until I close Firefox".
    – I've checked "Clear history when Firefox closes" and have ticked every single box under settings (except saved passwords).
    – But still, Cookies do not get deleted when I close Firefox – there are hundreds of cookies every time I open it.
    – If I go to Tools -> Clear recent history, choose "everything" and tick every single box, history etc. get deleted but the cookies remain.
    – If I go to Preferences -> Privacy and click "Show Cookies" and then click "Remove all cookies" twice, the cookies disappear, but they're back just seconds later.
    – I've even tried going to Preferences, clicking on Exceptions and manually adding some of the websites that showed up under "show cookies" and blocking them and then deleting the cookies, but still they re-appeared within seconds, and the exceptions were blank again.
    – I've checked all your support pages about this topic.
    – I've seen this https://support.mozilla.org/en-US/questions/740598?esab=a&as=aaq and tried it and it didn't help.
    – I've seen this https://support.mozilla.org/en-US/questions/936308?esab=a&as=aaq and this https://support.mozilla.org/en-US/questions/868910?esab=a&as=aaq, and yes I do use "Do Not Track Plus" and some of the Cookies seem to be Opt-Out-Cookies but most are not.
    Please help me. I used to be a big fan of Firefox but this is getting really scary.

    You can't remove opt-cookies that are added by an extension unless you disable or uninstall that extension, so you can disable the do not track extension as a test to see if that allows to remove the cookies.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If clearing cookies doesn't work then it is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookie files like <b>cookies.sqlite-journal</b> in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder

  • Session replication at every http request

    Hi everybody
    I'm trying to use ZKoss Framework (www.zkoss.org) to develop a
    web application and deploy it in a Clustered WebLogic Server.
    The main issue I'm facing is that the "state" of the visual interface
    is stored inside the http session, and so, when node that handle
    the http request changes, the state is resetted and then the page changes,
    even if there was no user intervention.
    So I need to replicate the whole session at every http request,
    to prevent strange behaviours when the request handler node's changes.
    Do you know some settings that will force WebLogic Server to replicate the whole
    session at every http request?
    Thanks in advance.
    bye.

    Hi Marco,
    Yes, You are right But You NEED NOT to put setAttribute("key","value")...code in all your JSPs. because if the Attribute data of Session is changed then Automatically it will be replicated (only the Changed Data and not the Data which is unchanged). Even we need not to worry about replicating the Unchanged Data Again...And WebLogic will take care of ChangedData by itself. There is no other alternate solution available in weblogic to do this...Even no such similar Element available in Deployment descriptors as well.
    Actual Link is Broken http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/cluster/failover.html
    Any way i am copy-pasting few Lines from E-Docs (the actual link i am not able to find ..but may be u can open the cached page:
    http://74.125.153.132/search?q=cache:bxTbqJEsQTsJ:download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/cluster/failover.html+setAttribute+Session+replication+weblogic&cd=6&hl=en&ct=clnk&gl=in
    ---------------------------If you are not able to open the link then please refer to the E-Docs copy-paste content below --------------------------
    Programming Considerations for Clustered Servlets and JSPs
    This section highlights key programming constraints and recommendations for servlets and JSPs that you will deploy in a clustered environment.
    Session Data Must Be Serializable
    To support in-memory replication of HTTP session states, all servlet and JSP session data must be serializable.
    Note:     Serialization is the process of converting a complex data structure, such as a parallel arrangement of data (in which a number of bits are transmitted at a time along parallel channels) into a serial form (in which one bit at a time is transmitted); a serial interface provides this conversion to enable data transmission.
    Every field in an object must be serializable or transient in order for the object to be considered serializable. If the servlet or JSP uses a combination of serializable and non-serializable objects, WebLogic Server does not replicate the session state of the non-serializable objects.
    Use setAttribute to Change Session State
    In an HTTP servlet that implements javax.servlet.http.HttpSession, use HttpSession.setAttribute (which replaces the deprecated putValue) to change attributes in a session object. If you set attributes in a session object with setAttribute, the object and its attributes are replicated in a cluster using in-memory replication. If you use other set methods to change objects within a session, WebLogic Server does not replicate those changes. Every time a change is made to an object that is in the session, setAttribute() should be called to update that object across the cluster.
    Likewise, use removeAttribute (which, in turn, replaces the deprecated removeValue) to remove an attribute from a session object.
    Note:     Use of the deprecated putValue and removeValue methods will also cause session attributes to be replicated.     
    Thanks
    Jay SenSharma
    Edited by: Jay SenSharma on Feb 11, 2010 10:24 PM
    Edited by: Jay SenSharma on Feb 11, 2010 10:26 PM

  • Business Service with multiple HTTP Request Methods

    hi all -
    I'm new to OSB and trying to prototype a solution. I have a service provider that exposes a number of HTTP operations (GET/PUT/POST/DELETE). It's a JAX-RS implementation.
    I was looking to create 1 proxy service and 1 business service for that service provider. But, within my business service, I must chose a 'HTTP Request Method' and it allows only 1 type (either GET, PUT, POST, DELETE). So, I have something working, but only for a single type (POST in my prototype). I figure I could create more proxy and business services for the other HTTP Request Methods, but I'm not sure if this is the correct approach (design/architecture).
    My other thought was to create a proxy service to front the service provider, but looking at the documentation, it looks like there should be a business service for each proxy service. If it's possible to use a proxy service without a business service to mediate the service provider, where would I add my URLs for the service provider in the proxy service.
    My apologies on the 2 part architecture/design question. I thought the group would help with getting me started.
    thanks jim

    Hi,
    Frankly I dont know too much on this topic but following links may help you:
    http://help.sap.com/saphelp_nw04/helpdata/en/25/dda73e5b7a424de10000000a114084/frameset.htm
    Troubleshooting ICF: http://help.sap.com/saphelp_nw04/helpdata/en/80/b2dd3a6dac703be10000000a11405a/content.htm
    Possibly experts in this forum will be able to help you:  Application Server->Internet Transaction Server (ITS)
    Regards,
    Gourav

  • Re: Servlet making HTTP requests

    Hi,
              We are using an application that uses a servlet to perform some JDBC calls
              (which take about 30 minutes) and then make some HTTP requests (which takes
              about 5 to 10 minutes) to another application.
              Once the client has made the request to initiate this process it waits for
              the complete process (40 minutes) to complete. I know this is not ideal but
              its what we've got to live with.
              After a minute or so after the servlet has started making the HTTP requests
              the browser stops responding and has a blank frame displayed instead of the
              response data. We have assumed that after the servlet makes the HTTP
              requests the other application it is not interacting with the HTTP session
              on the server the client is connected to and a timeout occurrs. This
              termintes the request and is why we see a blank frame. Is this correct ? The
              HTTP requests complete successfully in the background.
              Any advice would be greatly appreciated.
              Kev
              

              Your application is really tough and interesting. Web browser usually has timeout
              limit. Proxy server also has timeout limit (usually 30 seconds). If no communication
              after such kind of timeout limit, your browser will stop.
              When your code calls getWriter() or getOutputStream(), your servlet will flush
              all HTTP response header data to your browser and your browser then will get the
              response from your servlet. Beyond that, if you don't send any data from your
              servlet to your browser before proxy or browser timeout, you can only get a blank
              screen.
              If you want to monitor how your servlet works, try to BUILD INTERCATION. At least,
              send data from your servlet to your browser for each time interval which will
              not be longer than browser/proxy timeout. You can send out any information you
              like, if your browser understand it. NOTE YOU SHOULD EXPLICITLY CALL FLUSH() of
              your OutputStream() or Writer() to flush() your data following each write(). This
              way, you can keep the connection alive.
              On the other hand, you can also try set content-length field of response to some
              predefined number, and set Connection field as Keep-Alive, before you call getWriter()
              or getOutputStream(). Then send some data to your browser, for example, one byte
              at a time, until you have sent the number of bytes as specified.
              "Kev" <[email protected]> wrote:
              >Hi,
              >
              >We are using an application that uses a servlet to perform some JDBC
              >calls
              >(which take about 30 minutes) and then make some HTTP requests (which
              >takes
              >about 5 to 10 minutes) to another application.
              >
              >Once the client has made the request to initiate this process it waits
              >for
              >the complete process (40 minutes) to complete. I know this is not ideal
              >but
              >its what we've got to live with.
              >
              >After a minute or so after the servlet has started making the HTTP requests
              >the browser stops responding and has a blank frame displayed instead
              >of the
              >response data. We have assumed that after the servlet makes the HTTP
              >requests the other application it is not interacting with the HTTP session
              >on the server the client is connected to and a timeout occurrs. This
              >termintes the request and is why we see a blank frame. Is this correct
              >? The
              >HTTP requests complete successfully in the background.
              >
              >Any advice would be greatly appreciated.
              >
              >Kev
              >
              >
              

Maybe you are looking for