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

Issue 5409004: Fix case where a SPDY stream with an un-verified cert would kill the browser... (Closed)

Created:
10 years ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix case where a SPDY stream with an un-verified cert would kill the browser if an https:// URL was attempted to be fetched across it. Also fix a bug where when two SSL connections are made, but only one is moved into a SPDY session (because the second is redundant), close the redundant connection. This had been leaking a un-verified SSL connection into the pool, which could then get re-used as though it was verified. BUG=64861 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67869

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M net/http/http_stream_request.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M net/spdy/spdy_session.cc View 2 chunks +8 lines, -6 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Mike Belshe
10 years ago (2010-12-01 01:10:47 UTC) #1
Mike Belshe
Adding wtc since Will is out.
10 years ago (2010-12-01 01:17:55 UTC) #2
wtc
LGTM. Is your http_stream_request.cc change alone enough to fix this crash? Just wanted to check ...
10 years ago (2010-12-01 02:41:39 UTC) #3
willchan no longer on Chromium
10 years ago (2010-12-02 23:02:45 UTC) #4
It'd be great to add metadata to the ClientSocketHandle tracking whether or not
the SSL authentication error has been handled.  We should DCHECK in
ClientSocketHandle::ResetInternal() to make sure that we don't call
ClientSocketPool::ReleaseSocket() on a socket with an authentication error
associated with it.

http://codereview.chromium.org/5409004/diff/7001/net/spdy/spdy_session.cc
File net/spdy/spdy_session.cc (right):

http://codereview.chromium.org/5409004/diff/7001/net/spdy/spdy_session.cc#new...
net/spdy/spdy_session.cc:317: LOG(ERROR) << "Tried to get pushed spdy stream for
secure content over an "
Why is this ERROR instead of DFATAL?  It's a bug if this happens, so it should
still crash in debug mode, right?

CloseSessionOnError() is a good safety mechanism though.

Powered by Google App Engine
This is Rietveld 408576698