Closed
Bug 1208114
Opened 9 years ago
Closed 9 years ago
Firefox sends RST_STREAM for HTTPS URI stream with HTTP/2 proxy
Categories
(Core :: Networking: HTTP, defect)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox42 | --- | unaffected |
firefox43 | --- | affected |
firefox44 | --- | fixed |
People
(Reporter: tatsuhiro.t, Assigned: mcmanus)
References
Details
(Keywords: regression, Whiteboard: [spdy])
Attachments
(1 file)
4.38 KB,
patch
|
u408661
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150826023504
Steps to reproduce:
Browse HTTPS site via HTTP/2 secure proxy (e.g., nghttpx) using Firefox Nightly.
Actual results:
When HTTPS URI is requested, Firefox sends CONNECT request. After getting 200 response from proxy, Firefox sends RST_STREAM with error code CANCEL.
Therefore, HTTPS page cannot be loaded anymore.
Expected results:
HTTPS URI should be loaded as before.
Assignee | ||
Comment 1•9 years ago
|
||
so this is somehow tied as a regression to 1204614 which is on firefox 43. Thanks for noting it. (flow control issue, somehow).
I'll work on it.
Blocks: 1204614
status-firefox42:
--- → unaffected
status-firefox43:
--- → affected
status-firefox44:
--- → affected
Assignee | ||
Updated•9 years ago
|
Whiteboard: [spdy]
Keywords: regression
Comment hidden (obsolete) |
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8671046 -
Flags: review?(hurley)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mcmanus
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 8671046 [details] [diff] [review]
fix h2 connect tunnels
Review of attachment 8671046 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/protocol/http/TunnelUtils.h
@@ +200,5 @@
> uint32_t count, uint32_t *countWritten) override final;
> nsHttpRequestHead *RequestHead() override final;
> void Close(nsresult reason) override final;
>
> + bool ConnectedReadyForInput();
I'm not wild about this name - when first reading the patch, it seemed to me like "well, if it's ready for input, why does it need to be buffered?"
Actually, I think the name itself is fine (because the stream in general is ready for input, it's just a little full right now and needs a moment), but there might need to be a clarifying comment that the whole "ready for input" part is more general, but the stream could still return WOULD_BLOCK.
Attachment #8671046 -
Flags: review?(hurley) → review+
Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3cd86929d8835f2b162dc2c8654ae9af2a54e06f
bug 1208114 - fix h2 connect tunnels r=hurley
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/0b1fbd9ec549 for Mediatest crashes:
https://treeherder.mozilla.org/logviewer.html#?job_id=15406183&repo=mozilla-inbound
Flags: needinfo?(mcmanus)
Assignee | ||
Comment 8•9 years ago
|
||
so the mediatest fail was in my try run - sorry about that.
This is h2 only code, so I only actually looked at the xpcshell results as that's the only server in our suite that knows h2.
turns out the mediatest is contacting youtube (h2). I thought offsite tests were something we didn't do..
Flags: needinfo?(mcmanus)
Assignee | ||
Comment 9•9 years ago
|
||
The new assert included in this patch set did indeed catch a bug - but its a latent unrelated one. I'll reland without the assert (it will have the same old legacy runtime behavior) and file a separate bug about the new issue.
Http2Session::OnWriteSegment has a state machine and for any state not covered in there it returns NS_ERROR_UNEXPECTED. I added the assert() when that happens.
The state generated in https://www.youtube.com/watch?v=1visYpIREUM was DISCARDING_DATA_FRAME_PADDING which is probably ok to whitelist as a nop - but lets do it separately.
Assignee | ||
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c66bf1d6890b605846f5a3dd49d7e1aad4563bbb
bug 1208114 - fix h2 connect tunnels r=hurley
Comment 11•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Reporter | ||
Comment 12•9 years ago
|
||
I confirmed this bug has been fixed in current nightly.
Thank you very much!
You need to log in
before you can comment on or make changes to this bug.
Description
•