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

Issue 500018: Handle unexpected connection close during SSL handshake on Mac (Closed)

Created:
11 years ago by kinuko
Modified:
9 years, 7 months ago
Reviewers:
hawk, Avi (use Gerrit), wtc
CC:
chromium-reviews_googlegroups.com, TVL
Visibility:
Public.

Description

Handle unexpected connection close during SSL handshake on Mac SSLHandlshake may return errSSLClosedGraceful error code which is interpreted as net::OK by NetErrorFromOSStatus, but the caller code sometimes do not check status!=noErr cases if net_error==OK, and this can lead unexpected status in the handshake sequence (and causes ExtensionApiTest.CrossOriginXHR failure on Mac). BUG=29711 TEST=ExtensionApiTest.CrossOriginXHR Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34555

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M chrome/browser/extensions/cross_origin_xhr_apitest.cc View 1 chunk +1 line, -8 lines 0 comments Download
M net/socket/ssl_client_socket_mac.cc View 2 chunks +7 lines, -0 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
kinuko
Hi, can you take a look at the patch? Thanks,
11 years ago (2009-12-15 09:56:33 UTC) #1
Avi (use Gerrit)
Nice catch. LGTM
11 years ago (2009-12-15 15:05:42 UTC) #2
wtc
Kinuko, Thank you for fixing this bug. Does the test server really close the SSL ...
11 years ago (2009-12-16 00:48:52 UTC) #3
wtc
hawk, avi: I found the SSLHandshake source code at http://www.opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/sslTransport.c It seems to show that ...
11 years ago (2009-12-16 01:18:21 UTC) #4
hawk
On 2009/12/16 01:18:21, wtc wrote: > So it all makes sense if the server sends ...
11 years ago (2009-12-16 01:43:45 UTC) #5
wtc
On 2009/12/16 01:43:45, hawk wrote: > > > I'm wondering if we're calling > > ...
11 years ago (2009-12-16 01:55:23 UTC) #6
kinuko
On 2009/12/16 01:55:23, wtc wrote: > Kinuko, I don't want you to collect the SSL ...
11 years ago (2009-12-16 05:33:44 UTC) #7
wtc
Kinuko, Thanks for the info. You just need to create a new CL to change ...
11 years ago (2009-12-16 19:04:22 UTC) #8
kinuko
11 years ago (2009-12-17 06:04:03 UTC) #9
Thanks for clarifying, I'm going to make a new CL.

On 2009/12/16 19:04:22, wtc wrote:
> Kinuko,
> 
> Thanks for the info.  You just need to create a new CL
> to change ERR_UNEXPECTED to ERR_SSL_PROTOCOL_ERROR.
> hawk and I may not have time to get to the bottom of this.
> We're just curious if the server actually behaves this way.
> But like I said earlier, Chrome needs to handle any
> unexpected server behavior properly, so the error handling
> code you added is good.

Powered by Google App Engine
This is Rietveld 408576698