Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Issue 519048: SSL: remove NOTREACHED from GetNextProto error path. (Closed)

Created:
10 years, 11 months ago by agl
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), ben+cc_chromium.org
Visibility:
Public.

Description

SSL: don't ask for next proto if we got an error. GetNextProto only returns an error if the NSPR socket passed in is not a valid SSL socket. However, this happens in tests (see the bug). It appears that in some code paths the socket is invalid by the time that we call HttpNetworkTransaction::DoSSLConnectComplete. This patch also changes the logic such that we will only use SPDY if the server actually advertises support for it. Previously we would also use it in the case that the server advertised a disjoint set of protocols. BUG=31611

Patch Set 1 #

Patch Set 2 : ... #

Patch Set 3 : ... #

Patch Set 4 : Add --ignore-cert-errors #

Total comments: 5

Patch Set 5 : ... #

Patch Set 6 : ... #

Patch Set 7 : ... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M net/http/http_network_transaction.cc View 2 3 4 5 6 1 chunk +9 lines, -2 lines 1 comment Download

Messages

Total messages: 20 (0 generated)
agl
10 years, 11 months ago (2010-01-05 18:26:00 UTC) #1
wtc
We should keep this NOTREACHED() assertion because it detected a bug. The bug is in ...
10 years, 11 months ago (2010-01-05 21:58:14 UTC) #2
wtc
HttpNetworkTransaction::DoSSLConnectComplete gets called when SSL connect has completed, and it may have completed with a ...
10 years, 11 months ago (2010-01-05 22:01:12 UTC) #3
agl
PTAL
10 years, 11 months ago (2010-01-06 02:08:20 UTC) #4
wtc
Is Patch Set 2 complete? It removes our only GetNextProto call.
10 years, 11 months ago (2010-01-06 02:11:37 UTC) #5
agl
I didn't notice another hunk in the same function. (And my compile failed shortly after ...
10 years, 11 months ago (2010-01-06 02:24:32 UTC) #6
wtc
LGTM. Do we not have to ignore certificate errors for SPDY now? If we still ...
10 years, 11 months ago (2010-01-06 02:37:09 UTC) #7
agl
On 2010/01/06 02:37:09, wtc wrote: > Do we not have to ignore certificate errors for ...
10 years, 11 months ago (2010-01-06 02:54:25 UTC) #8
willchan no longer on Chromium
On Tue, Jan 5, 2010 at 6:54 PM, <agl@chromium.org> wrote: > On 2010/01/06 02:37:09, wtc ...
10 years, 11 months ago (2010-01-07 22:17:18 UTC) #9
agl
On Thu, Jan 7, 2010 at 2:17 PM, William Chan (陈智昌) <willchan@chromium.org> wrote: > I ...
10 years, 11 months ago (2010-01-07 23:45:15 UTC) #10
willchan no longer on Chromium
On Thu, Jan 7, 2010 at 3:44 PM, Adam Langley <agl@chromium.org> wrote: > On Thu, ...
10 years, 11 months ago (2010-01-07 23:48:49 UTC) #11
agl
PTAL
10 years, 11 months ago (2010-01-08 01:41:42 UTC) #12
willchan no longer on Chromium
http://codereview.chromium.org/519048/diff/6002/6003 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/519048/diff/6002/6003#newcode841 chrome/browser/browser_init.cc:841: if (command_line.HasSwitch(switches::kIgnoreCertErrors)) { I think we usually drop the ...
10 years, 11 months ago (2010-01-08 02:51:39 UTC) #13
agl
http://codereview.chromium.org/519048/diff/6002/6006 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/519048/diff/6002/6006#newcode801 net/http/http_network_transaction.cc:801: result = HandleCertificateError(result); On 2010/01/08 02:51:39, willchan wrote: > ...
10 years, 11 months ago (2010-01-08 03:17:09 UTC) #14
wtc
Adam: I propose a different solution. Please see my second comment below. http://codereview.chromium.org/519048/diff/6002/6003 File chrome/browser/browser_init.cc ...
10 years, 11 months ago (2010-01-08 03:51:15 UTC) #15
wtc
On 2010/01/06 02:54:25, agl wrote: > > I don't believe that we can call GetNextProto ...
10 years, 11 months ago (2010-01-08 18:46:58 UTC) #16
wtc
Let's try something like this for now to ignore cert errors for SPDY. Eventually we ...
10 years, 11 months ago (2010-01-08 18:53:24 UTC) #17
agl
Ok. I don't like that SPDY is currently ignoring certs for https URLs, but we ...
10 years, 11 months ago (2010-01-11 23:26:53 UTC) #18
wtc
LGTM.
10 years, 11 months ago (2010-01-11 23:45:54 UTC) #19
wtc
10 years, 11 months ago (2010-01-11 23:55:49 UTC) #20
http://codereview.chromium.org/519048/diff/12001/12002
File net/http/http_network_transaction.cc (right):

http://codereview.chromium.org/519048/diff/12001/12002#newcode817
net/http/http_network_transaction.cc:817: // We currently ignore certificate
errors for spdy.
Could you add a TODO comment here so we remember to remove
this at the appropriate time?  Please reference
http://crbug.com/32020.

Powered by Google App Engine
This is Rietveld 408576698