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

Issue 861193007: Do not send PASV until RETR or LIST (Closed)

Created:
5 years, 11 months ago by xunjieli
Modified:
5 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not send PASV until RETR or LIST Some servers get confused when we send PASV twice. This CL delays sending PASV/EPSV until RETR or LIST. BUG=450687 Committed: https://crrev.com/6c29e3876102f96c2fae1ad07e2167d87cc81c77 Cr-Commit-Position: refs/heads/master@{#313381}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Addressed David's comments #

Total comments: 1

Patch Set 3 : Use scoped ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -172 lines) Patch
M net/ftp/ftp_network_transaction.h View 1 chunk +3 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 9 chunks +15 lines, -43 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 1 2 44 chunks +102 lines, -127 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
xunjieli
David, here's a one line fix that will load ftp://ftp.isi.edu/in-notes/rfc1958.txt correctly. However, this is still ...
5 years, 11 months ago (2015-01-23 19:03:38 UTC) #2
xunjieli
On 2015/01/23 19:03:38, xunjieli wrote: > David, here's a one line fix that will load ...
5 years, 11 months ago (2015-01-23 19:19:34 UTC) #3
xunjieli
Adopted David's suggestion in crbug.com/450687. PTAL. Thanks!
5 years, 11 months ago (2015-01-26 17:35:42 UTC) #14
eroman
lgtm https://codereview.chromium.org/861193007/diff/160001/net/ftp/ftp_network_transaction_unittest.cc File net/ftp/ftp_network_transaction_unittest.cc (right): https://codereview.chromium.org/861193007/diff/160001/net/ftp/ftp_network_transaction_unittest.cc#newcode208 net/ftp/ftp_network_transaction_unittest.cc:208: use_epsv() ? PRE_LIST_EPSV : PRE_LIST_PASV, "200 OK\r\n"); Is ...
5 years, 11 months ago (2015-01-26 23:00:38 UTC) #15
xunjieli
Thanks for the review! Hmm.. not sure why Rietvield does not pick up my CL ...
5 years, 11 months ago (2015-01-27 14:42:02 UTC) #16
davidben
https://codereview.chromium.org/861193007/diff/160001/net/ftp/ftp_network_transaction.cc File net/ftp/ftp_network_transaction.cc (right): https://codereview.chromium.org/861193007/diff/160001/net/ftp/ftp_network_transaction.cc#newcode227 net/ftp/ftp_network_transaction.cc:227: state_after_data_connect_complete_(STATE_CTRL_WRITE_SIZE) {} This should probably be initialized to STATE_NONE ...
5 years, 11 months ago (2015-01-27 19:59:00 UTC) #17
xunjieli
Thanks for the review! I have uploaded a patch to address the comments. https://codereview.chromium.org/861193007/diff/160001/net/ftp/ftp_network_transaction.cc File ...
5 years, 10 months ago (2015-01-27 20:55:28 UTC) #18
davidben
lgtm with one comment. Thanks! (The rest of this state machine is probably worth a ...
5 years, 10 months ago (2015-01-27 21:04:09 UTC) #19
xunjieli
> lgtm with one comment. Thanks! (The rest of this state machine is probably worth ...
5 years, 10 months ago (2015-01-27 21:33:27 UTC) #20
davidben
On 2015/01/27 21:33:27, xunjieli wrote: > > lgtm with one comment. Thanks! (The rest of ...
5 years, 10 months ago (2015-01-27 21:41:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/861193007/200001
5 years, 10 months ago (2015-01-27 22:05:32 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:200001)
5 years, 10 months ago (2015-01-27 22:39:02 UTC) #24
commit-bot: I haz the power
5 years, 10 months ago (2015-01-27 22:39:59 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6c29e3876102f96c2fae1ad07e2167d87cc81c77
Cr-Commit-Position: refs/heads/master@{#313381}

Powered by Google App Engine
This is Rietveld 408576698