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

Issue 155595: Properly let the SSL engine know when the underlying stream is closed.... (Closed)

Created:
11 years, 5 months ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, darin (slow to review), willchan no longer on Chromium
Visibility:
Public.

Description

Properly let the SSL engine know when the underlying stream is closed. BUG=http://crbug.com/14196 TEST=NONE (this fix is related to the bug but does not fix it) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20864

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

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

Messages

Total messages: 5 (0 generated)
Avi (use Gerrit)
Streams returning 0 mean end-of-stream. Dunno why I didn't handle this before...
11 years, 5 months ago (2009-07-15 22:18:36 UTC) #1
Avi (use Gerrit)
Rohit's around; he's taking it.
11 years, 5 months ago (2009-07-15 22:31:36 UTC) #2
John Grabowski
LGTM http://codereview.chromium.org/155595/diff/1006/1007 File net/socket/ssl_client_socket_mac.cc (right): http://codereview.chromium.org/155595/diff/1006/1007#newcode719 Line 719: else if (rv == 0) // stream ...
11 years, 5 months ago (2009-07-15 22:39:54 UTC) #3
Avi (use Gerrit)
http://codereview.chromium.org/155595/diff/1006/1007 File net/socket/ssl_client_socket_mac.cc (right): http://codereview.chromium.org/155595/diff/1006/1007#newcode719 Line 719: else if (rv == 0) // stream closed ...
11 years, 5 months ago (2009-07-15 22:47:08 UTC) #4
wtc
11 years, 5 months ago (2009-07-16 00:22:50 UTC) #5
http://codereview.chromium.org/155595/diff/1006/1007
File net/socket/ssl_client_socket_mac.cc (right):

http://codereview.chromium.org/155595/diff/1006/1007#newcode719
Line 719: else if (rv == 0) // stream closed
On 2009/07/15 22:47:08, Avi wrote:
>
> The docs say "zero" is returned for end-of-stream (see socket.h) and for
balance
> (we're doing <0) I'm sticking to 0.

Yes, Read() returns a byte count or error code, so 0 is
approriate here.

Powered by Google App Engine
This is Rietveld 408576698