Closed
Bug 1477592
Opened 6 years ago
Closed 6 years ago
CONNECT-only HTTP channel should not make TCP connection for non-http proxies
Categories
(Core :: Networking: HTTP, enhancement, P5)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: iidebyo, Assigned: iidebyo)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 1 obsolete file)
6.43 KB,
patch
|
dragana
:
review+
|
Details | Diff | Splinter Review |
Currently when using an HTTP channel with CONNECT-only set detection of non-http proxies is done after the initial TCP connection. There should be no TCP connection if there a non-http proxy is being used. non-http is inclusive of no proxy.
Assignee | ||
Comment 1•6 years ago
|
||
This moves the check for a non-http proxy from the socket transport callbacks in nsHttpConnection to nsHttpChannel before the connection occurs. The unit test for the no-proxy case no longer supports accepting the connection.
Assignee | ||
Comment 2•6 years ago
|
||
Created as follow-up to https://bugzilla.mozilla.org/show_bug.cgi?id=1203503#c99 (Bug 1203503 comment 99).
Thanks! Please find an appropriate reviewer and request review from them to move this patch forward. Someone you were working with on the previous bug is a good first approximation of the right reviewer.
Flags: needinfo?(paul.m.vitale)
Priority: -- → P5
Whiteboard: [necko-triaged]
Assignee | ||
Comment 4•6 years ago
|
||
This moves the check for a non-http proxy from the socket transport callbacks in nsHttpConnection to nsHttpChannel before the connection occurs.
Assignee | ||
Updated•6 years ago
|
Attachment #8994050 -
Attachment is obsolete: true
Flags: needinfo?(paul.m.vitale)
Assignee | ||
Updated•6 years ago
|
Attachment #8996850 -
Flags: review?(dd.mozilla)
Comment 5•6 years ago
|
||
sorry for a delay. :( This patch will need rebasing :(
Flags: needinfo?(paul.m.vitale)
Assignee | ||
Comment 6•6 years ago
|
||
This patch auto-merged for me. It's dependent on bug 1203503 's attachment "part 1. change necko to allow CONNECT-only requests." :mayhemer, maybe we can merge this back into the other bug since you're back and I'm waiting on EF atm?
Flags: needinfo?(paul.m.vitale) → needinfo?(honzab.moz)
Comment 7•6 years ago
|
||
(In reply to Paul Vitale [:iidebyo] from comment #6) > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > "part 1. change necko to allow CONNECT-only requests." > > :mayhemer, maybe we can merge this back into the other bug since you're back > and I'm waiting on EF atm? Not until this patch is r+ and ready to land. Also, there is no harm done if this remains separate. This patch has no effect on the functionality IIUC, hence, no need to push on it.
Assignee: nobody → paul.m.vitale
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(honzab.moz)
Comment 8•6 years ago
|
||
(In reply to Paul Vitale [:iidebyo] from comment #6) > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > "part 1. change necko to allow CONNECT-only requests." > > :mayhemer, maybe we can merge this back into the other bug since you're back > and I'm waiting on EF atm? It does not compile with this patch. NS_HTTP_CONNECT_ONLY does not exist any more.
Assignee | ||
Comment 9•6 years ago
|
||
(In reply to Dragana Damjanovic [:dragana] from comment #8) > (In reply to Paul Vitale [:iidebyo] from comment #6) > > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > > "part 1. change necko to allow CONNECT-only requests." > > > > :mayhemer, maybe we can merge this back into the other bug since you're back > > and I'm waiting on EF atm? > > It does not compile with this patch. NS_HTTP_CONNECT_ONLY does not exist any > more. You'll need to import the "part 1" patch before this patch to get it to compile. I gave it a run through try but I may have missed a platform. https://treeherder.mozilla.org/#/jobs?repo=try&revision=27317b7122e38bde2152e0ec6d9698e3154a3386 (part 2 is out of order but it shouldn't matter)
Comment 10•6 years ago
|
||
(In reply to Paul Vitale [:iidebyo] from comment #9) > (In reply to Dragana Damjanovic [:dragana] from comment #8) > > (In reply to Paul Vitale [:iidebyo] from comment #6) > > > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > > > "part 1. change necko to allow CONNECT-only requests." > > > > > > :mayhemer, maybe we can merge this back into the other bug since you're back > > > and I'm waiting on EF atm? > > > > It does not compile with this patch. NS_HTTP_CONNECT_ONLY does not exist any > > more. > > You'll need to import the "part 1" patch before this patch to get it to > compile. I gave it a run through try but I may have missed a platform. > > https://treeherder.mozilla.org/#/ > jobs?repo=try&revision=27317b7122e38bde2152e0ec6d9698e3154a3386 (part 2 is > out of order but it shouldn't matter) ok. A note about this would have been good... :)
Updated•6 years ago
|
Attachment #8996850 -
Flags: review?(dd.mozilla) → review+
Assignee | ||
Comment 11•6 years ago
|
||
(In reply to Dragana Damjanovic [:dragana] from comment #10) > (In reply to Paul Vitale [:iidebyo] from comment #9) > > (In reply to Dragana Damjanovic [:dragana] from comment #8) > > > (In reply to Paul Vitale [:iidebyo] from comment #6) > > > > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > > > > "part 1. change necko to allow CONNECT-only requests." > > > > > > > > :mayhemer, maybe we can merge this back into the other bug since you're back > > > > and I'm waiting on EF atm? > > > > > > It does not compile with this patch. NS_HTTP_CONNECT_ONLY does not exist any > > > more. > > > > You'll need to import the "part 1" patch before this patch to get it to > > compile. I gave it a run through try but I may have missed a platform. > > > > https://treeherder.mozilla.org/#/ > > jobs?repo=try&revision=27317b7122e38bde2152e0ec6d9698e3154a3386 (part 2 is > > out of order but it shouldn't matter) > > ok. A note about this would have been good... :) Yep, sorry about that. Any guidance on a try server run for this patch? Like, platforms/all tests?
Comment 12•6 years ago
|
||
(In reply to Paul Vitale [:iidebyo] from comment #11) > (In reply to Dragana Damjanovic [:dragana] from comment #10) > > (In reply to Paul Vitale [:iidebyo] from comment #9) > > > (In reply to Dragana Damjanovic [:dragana] from comment #8) > > > > (In reply to Paul Vitale [:iidebyo] from comment #6) > > > > > This patch auto-merged for me. It's dependent on bug 1203503 's attachment > > > > > "part 1. change necko to allow CONNECT-only requests." > > > > > > > > > > :mayhemer, maybe we can merge this back into the other bug since you're back > > > > > and I'm waiting on EF atm? > > > > > > > > It does not compile with this patch. NS_HTTP_CONNECT_ONLY does not exist any > > > > more. > > > > > > You'll need to import the "part 1" patch before this patch to get it to > > > compile. I gave it a run through try but I may have missed a platform. > > > > > > https://treeherder.mozilla.org/#/ > > > jobs?repo=try&revision=27317b7122e38bde2152e0ec6d9698e3154a3386 (part 2 is > > > out of order but it shouldn't matter) > > > > ok. A note about this would have been good... :) > > Yep, sorry about that. Any guidance on a try server run for this patch? > Like, platforms/all tests? you can do xpcshell test, I think that is enough. platforms: all although this is rather platform independent so linux is enough.
Assignee | ||
Comment 13•6 years ago
|
||
Try server run from a bit ago. https://treeherder.mozilla.org/#/jobs?repo=try&revision=8ff569273e962346ab6b574ad25d16cef99fa0a9
Assignee | ||
Comment 14•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a032d5bb2e446f90eb235c37d760678eee361781
Assignee | ||
Comment 15•6 years ago
|
||
Comment on attachment 8996850 [details] [diff] [review] Prevent TCP connection for CONNECT-only HTTP channel with non-http proxy This patch should be ready for check-in.
Attachment #8996850 -
Flags: checkin?(dd.mozilla)
Comment 16•6 years ago
|
||
you can just add checkin-needed in 'Keywords:'
Updated•6 years ago
|
Attachment #8996850 -
Flags: checkin?(dd.mozilla)
Updated•6 years ago
|
Keywords: checkin-needed
Comment 17•6 years ago
|
||
Pushed by ebalazs@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/298abb6be2dc Prevent TCP connection for CONNECT-only HTTP channel with non-http proxy r=dragana
Keywords: checkin-needed
Comment 18•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/298abb6be2dc
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•