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

Issue 7648010: SSLServerSocketTest.DataTransfer should keep reading until it has read (Closed)

Created:
9 years, 4 months ago by wtc
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

SSLServerSocketTest.DataTransfer should keep reading until it has read the expected number of bytes. We cannot assume a single SSL read is enough to read all the bytes. This depends on how the SSL sender fragments the data into SSL records, and whether the SSL receiver returns all available records at once or one record at a time. R=hclam@chromium.org,rvargas@chromium.org BUG=none TEST=net_unittests --gtest_filter=SSLServerSocketTest.DataTransfer Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97098

Patch Set 1 #

Total comments: 6

Patch Set 2 : Make the changes suggested by rvargas. #

Patch Set 3 : In write then read, use only a read loop. #

Patch Set 4 : Change back to patch set 2 for checkin. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -19 lines) Patch
M net/socket/ssl_server_socket_unittest.cc View 1 2 3 2 chunks +41 lines, -19 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
wtc
hclam: you are the primary reviewer because you wrote the SSLServerSocketTest.DataTransfer unit test in http://codereview.chromium.org/5746003 ...
9 years, 4 months ago (2011-08-13 01:50:21 UTC) #1
Alpha Left Google
LGTM. Though I think this "reading from async socket until done" code is used in ...
9 years, 4 months ago (2011-08-15 10:30:28 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/7648010/diff/1/net/socket/ssl_server_socket_unittest.cc File net/socket/ssl_server_socket_unittest.cc (right): http://codereview.chromium.org/7648010/diff/1/net/socket/ssl_server_socket_unittest.cc#newcode384 net/socket/ssl_server_socket_unittest.cc:384: client_ret = client_socket_->Read(read_buf, read_buf->BytesRemaining(), Is it important for this ...
9 years, 4 months ago (2011-08-15 18:31:41 UTC) #3
wtc
rvargas: thank you for your comments. I made all the changes you suggested. Please review ...
9 years, 4 months ago (2011-08-16 00:04:05 UTC) #4
wtc
hclam: please review the diffs between Patch Sets 2 and 3, and let me know ...
9 years, 4 months ago (2011-08-16 00:11:13 UTC) #5
rvargas (doing something else)
LGTM
9 years, 4 months ago (2011-08-16 00:18:45 UTC) #6
commit-bot: I haz the power
9 years, 4 months ago (2011-08-17 04:59:24 UTC) #7
Change committed as 97098

Powered by Google App Engine
This is Rietveld 408576698