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

Issue 159663: Fix a hang if directory listing size is > 8K, for example,... (Closed)

Created:
11 years, 4 months ago by wtc
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), willchan no longer on Chromium
Visibility:
Public.

Description

Fix a hang if directory listing size is > 8K, for example, ftp://ftp.mozilla.org/pub/addons/ The problem is that data was spooling on network stack and after 8K data TCP Window size becomes small and no more data is received after 8K. The fix is to change the ERROR_CLASS_INITIATED case in the ProcessResponseLIST function to not go back to the STATE_CTRL_READ state. In URLRequestNewFtpJob::ProcessFtpDir. construct the std::string from buf->data() and its length so that buf->data() doesn't need to be null-terminated. Author: Ibrar Ahmed <ibrar.ahmad@gmail.com>; Original review: http://codereview.chromium.org/146137 R=wtc,phajdan.jr BUG=http://crbug.com/4965 TEST=ftp://ftp.mozilla.org/pub/addons/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22217

Patch Set 1 #

Patch Set 2 : With wtc's edits #

Patch Set 3 : Don't null-terminate data->buf() #

Patch Set 4 : Upload before checkin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -14 lines) Patch
M net/ftp/ftp_network_transaction.cc View 1 2 3 3 chunks +8 lines, -12 lines 0 comments Download
M net/url_request/url_request_new_ftp_job.cc View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
wtc
Pawel, please review this CL. Ibrar, please verify that I merged your CL with the ...
11 years, 4 months ago (2009-07-30 22:48:49 UTC) #1
Paweł Hajdan Jr.
LGTM It would be nice if you could add a test for this though (you ...
11 years, 4 months ago (2009-07-30 22:56:14 UTC) #2
ibrar
Thanks WTC, As answer to your question that how it is handling > 8K. BTW ...
11 years, 4 months ago (2009-07-31 07:55:22 UTC) #3
wtc
Ibrar, Pawel, please review Patch Set 3. Note that I added url_request_new_ftp_job.cc to this CL. ...
11 years, 4 months ago (2009-07-31 17:58:05 UTC) #4
Paweł Hajdan Jr.
LGTM
11 years, 4 months ago (2009-07-31 19:16:50 UTC) #5
ibrar
On 2009/07/31 19:16:50, Paweł Hajdan Jr. wrote: > LGTM LGMT
11 years, 4 months ago (2009-08-01 17:30:55 UTC) #6
ibrar
11 years, 4 months ago (2009-08-01 17:31:31 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698