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)

enhancement

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: nobody → kershaw
Blocks: socket-proc
Priority: -- → P2
Whiteboard: [necko-triaged]
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
When OnStart fails, we must not call OnData and propagate the error to OnStop.
QA Contact: jduell.mcbugs
Blocks: 1497270
Looks like this can land now, unless there is some dependency not listed in this bug.
Flags: needinfo?(kershaw)
(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)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Attachment #9014821 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: