Open Bug 1657445 Opened 5 years ago Updated 3 years ago

[wptserve] Content-Length header missing when response is a file object

Categories

(Testing :: web-platform-tests, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: davehunt, Unassigned)

References

Details

Attachments

(1 obsolete file)

Whilst investigating bug 1600034 I noticed that wptserve does not include a Content-Length header when the response is a file object. Testing locally, including this header shows a performance improvement.

Blocks: 1600034

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:davehunt, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(dave.hunt)
Pushed by dhunt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5631f20805da [wptserve] Content-Length header missing when response is a file object r=jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/25492 for changes under testing/web-platform/tests
Regressions: 1664588

I'm looking into the Windows failures.

Flags: needinfo?(dave.hunt)
Upstream PR was closed without merging

Dave it's quite a while since you worked on this bug. Are you still planning to finish it off?

Flags: needinfo?(dave.hunt)
Attachment #9168245 - Attachment is obsolete: true

Removing myself as assignee. I wasn't ever able to replicate the Windows failures that prevented this from landing. It would be worth rebasing my (obsolete) patch and pushing to try to see if they have since resolved. If not, it will require some additional debugging.

Assignee: dave.hunt → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(dave.hunt)

Thanks Dave!

Kirk, given that you have this problem with your test would you may be able to have a look?

Flags: needinfo?(bytesized)

Yeah, I'll take a look and see if I can figure it out.

Assignee: nobody → bytesized
Flags: needinfo?(bytesized)

Hi Kirk, I wonder if you had success in finding a solution for that issue, or isn't it blocking you anymore?

Flags: needinfo?(bytesized)

It's on my todo list to look into this. I'm hoping to have some time for it soon. I got a bit side tracked by some other work. And then I was sick all last week. Hopefully I'll have some time to look into it this week.

Flags: needinfo?(bytesized)

I rebased the attached code and took a look at the failures, but there were quite a lot of them. I tried only sending the header when the status was 200, which seemed to cut down the failures quite a bit, but there were still some pretty weird ones that I really don't understand. As I talked to people about how to potentially address them, someone mentioned that I could just set the header as a one-off by making a <filename>.headers file containing the header that I needed. That seems to have worked fine, so I think I'll probably do that instead of continuing to work towards fixing this.

Assignee: bytesized → nobody
No longer blocks: 1726462
Priority: P1 → --
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: