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

Issue 326009: Fix read loop in SocketStream. (Closed)

Created:
11 years, 2 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix DoReadWrite loop in SocketStream. If Read in DoReadWrite succeeded synchronously, it failed to call next Read. Changed to call Read repeatedly after a Read finished both in synchronous return and asynchronous return. Also fixes Write case as well. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30034

Patch Set 1 #

Total comments: 4

Patch Set 2 : return OK if Read/Write succeeded #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M net/socket_stream/socket_stream.cc View 1 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ukai
This is one of bugs that run_webkit_tests.sh fails in LayoutTests/websocket/tests/.
11 years, 2 months ago (2009-10-23 11:35:09 UTC) #1
Yuzo
http://codereview.chromium.org/326009/diff/1/2 File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/326009/diff/1/2#newcode606 Line 606: return result; if result==ERR_IO_PENDING for read but result!=ERR_IO_PENDING ...
11 years, 2 months ago (2009-10-26 01:52:11 UTC) #2
tyoshino (SeeGerritForStatus)
http://codereview.chromium.org/326009/diff/1/2 File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/326009/diff/1/2#newcode606 Line 606: return result; On 2009/10/26 01:52:13, Yuzo wrote: > ...
11 years, 1 month ago (2009-10-26 02:57:47 UTC) #3
ukai
http://codereview.chromium.org/326009/diff/1/2 File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/326009/diff/1/2#newcode606 Line 606: return result; On 2009/10/26 01:52:13, Yuzo wrote: > ...
11 years, 1 month ago (2009-10-26 05:01:53 UTC) #4
tyoshino (SeeGerritForStatus)
LGTM
11 years, 1 month ago (2009-10-26 05:12:37 UTC) #5
Yuzo
11 years, 1 month ago (2009-10-26 05:14:33 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698