Closed
Bug 1496464
Opened 7 years ago
Closed 7 years ago
Handle the result of OnStartRequest correctly in HttpTransactionParent::RecvOnStartRequest
Categories
(Core :: Networking: HTTP, enhancement, P2)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
People
(Reporter: kershaw, Assigned: kershaw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 obsolete file)
We currently do nothing if HttpChannel::OnStartRequest returns failure [1], which is not correct.
We can try to adapt the logic in HttpChannelChild [2] here.
Moreover, we should also consider if we need ChannelEventQueue in HttpTransactionParent.
[1] https://hg.mozilla.org/projects/larch/file/tip/netwerk/protocol/http/HttpTransactionParent.cpp#l205
[2] https://searchfox.org/mozilla-central/rev/924e3d96d81a40d2f0eec1db5f74fc6594337128/netwerk/protocol/http/HttpChannelChild.cpp#771-775
| Assignee | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
I think when [1] fails we should Cancel(rv) the pipe (which is |this| actually, the HttpTransactionParent object), rv = chan->OnStartRequest(this, nullptr);.
The contract is that when OnStart fails, we must not call OnData and propagate the error to OnStop
QA Contact: jduell.mcbugs
| Assignee | ||
Comment 2•7 years ago
|
||
When OnStart fails, we must not call OnData and propagate
the error to OnStop.
Updated•7 years ago
|
QA Contact: jduell.mcbugs
Comment 3•7 years ago
|
||
Looks like this can land now, unless there is some dependency not listed in this bug.
Flags: needinfo?(kershaw)
| Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #3)
> Looks like this can land now, unless there is some dependency not listed in
> this bug.
Already landed.
Flags: needinfo?(kershaw)
| Assignee | ||
Comment 5•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Attachment #9014821 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•