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 342088: Update the FLIP session to use the FlipIOBuffer.... (Closed)

Created:
11 years, 1 month ago by Mike Belshe
Modified:
9 years, 5 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

Update the FLIP session to use the FlipIOBuffer. Also removed some of the testing hacks for URL rewriting that are no longer needed. This change removes the 'batching' of frames written to the socket. The reason for doing this is because I'm going to need to start notifying to the upper layer as progress is made on the writes (e.g. upload notifications). When the frames are batched (potentially from different transactions), it becomes very difficult to know when each write completes. I don't think that batching is necessary, as writes will accummulate in the socket buffer, so this should be a better approach. BUG=none TEST=flip_session_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30898

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -119 lines) Patch
M net/flip/flip_network_transaction.cc View 1 2 1 chunk +1 line, -19 lines 0 comments Download
M net/flip/flip_session.h View 1 2 3 chunks +3 lines, -33 lines 0 comments Download
M net/flip/flip_session.cc View 1 2 5 chunks +34 lines, -58 lines 3 comments Download
M net/flip/flip_session_unittest.cc View 1 2 3 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mike Belshe
11 years, 1 month ago (2009-11-03 06:26:40 UTC) #1
wtc
LGTM. Please see my comments below. Some of the issues could be serious. You may ...
11 years, 1 month ago (2009-11-03 17:55:41 UTC) #2
Mike Belshe
http://codereview.chromium.org/342088/diff/4001/5002 File net/flip/flip_session.cc (right): http://codereview.chromium.org/342088/diff/4001/5002#newcode116 Line 116: std::string hack_url(info->url.PathForRequest()); On 2009/11/03 17:55:41, wtc wrote: > ...
11 years, 1 month ago (2009-11-03 21:57:49 UTC) #3
wtc
11 years, 1 month ago (2009-11-03 23:28:13 UTC) #4
LGTM.

http://codereview.chromium.org/342088/diff/6004/6006
File net/flip/flip_session.cc (right):

http://codereview.chromium.org/342088/diff/6004/6006#newcode415
Line 415: // returns ERR_IO_PENDING.
This comment needs updating to match the new code.
I think you can just say "until the write fails".

http://codereview.chromium.org/342088/diff/6004/6006#newcode429
Line 429: 
Nit: you added an extra blank line.

http://codereview.chromium.org/342088/diff/6004/6006#newcode448
Line 448: if (rv < 0)
I agree with this new code.  We may need to do something
to mark the connection as in an error state and cause the
connection to be closed.

Powered by Google App Engine
This is Rietveld 408576698