Closed Bug 1273642 Opened 8 years ago Closed 8 years ago

Long delay in processing the result of an XHR

Categories

(Firefox :: Untriaged, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1269055

People

(Reporter: efunneko, Unassigned)

Details

Attachments

(3 files)

Attached image dev-tools-before.PNG
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160502172042

Steps to reproduce:

I support a webapp within our company. This webapp has existed for a few years, but it has been exhibiting substantial delays recently for Firefox users (I think since update 45).

Here is the sequence of events that I see:

1. Page loads, including the index and many javascript files

2. On load completion, the app takes over and performs two parallel XHR requests

3. The server responds to these requests, but Firefox does not fully process them for 50 seconds

4. After 50 seconds, the response is processed and the webapp proceeds as normal. 


Actual results:

In debugging this, I used both the Firefox developer tools and wireshark to get packet captures. Wireshark shows the two XHR requests being sent on two connections that were previously used to fetch static content. Both of these requests are returned to the PC running Firefox within about 200ms.

I then looked at the developer tools that displays the network activity. I could see the two XHR requests and both of them showed as being completed (i.e. they were listed with their latency displayed and weren't 'pending'). I clicked on them and, interestingly, they both showed the status code (200 OK), but did not have any response information: no headers or response content. After 50s that content was available in the developer tools display.

One other thing to mention is that while I don't really know the trigger to make this happen, it does only seem to happen when the page is loading the static content. If that content is cached, the problem appears to not happen. With that said, the problem is quite rare and I can't make it occur at will.

At this point, I believe that Firefox is in error. Chrome seems to work fine with this webapp.

Could anyone suggest any additional debugging that I could do on this so that I can get sufficient info to raise a bug for this problem?

Note that I have added some images to show the flow of packets and show the Firefox developer tools during the problem and after the problem. While the problem is going on, you can see that the XHR has completed, but the response information is not present in the right panel. In the second dev-tools image, the request eventually fully completes in Firefox and the response is displayed.
Attached image dev-tools-after.PNG
Attached image wireshark-pic.png
BTW, I did raise a Mozilla support forum question (https://support.mozilla.org/en-US/questions/1122204), but have not had any responses for the issue.
It's surely a dupe of bug 1269055 which is fixed in 47+.
Could you install Beta and confirm it's fixed on your side, please.
https://www.mozilla.org/en-US/firefox/beta/all/
Flags: needinfo?(efunneko)
(In reply to Loic from comment #4)
> It's surely a dupe of bug 1269055 which is fixed in 47+.
> Could you install Beta and confirm it's fixed on your side, please.
> https://www.mozilla.org/en-US/firefox/beta/all/

I installed the beta and so far have not reproduced the problem with it. Unfortunately, I don't have a reliable reproduction recipe, so I can't say for sure.

Reading bug 1269055, it doesn't really sound like the same thing, but until I can repro the problem with the beta I will take your word for it.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(efunneko)
Resolution: --- → DUPLICATE
efunneko, this may also help:  Adjust your server side persistent connection timeout to be about 5 seconds longer than the firefox value. Firefox uses 115 seconds for HTTP/1.x and 180 seconds for HTTP/2.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: