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

Issue 11364224: FTP: Open a fresh data connection after a command error. (Closed)

Created:
8 years, 1 month ago by Paweł Hajdan Jr.
Modified:
8 years, 1 month ago
Reviewers:
eroman, Ryan Sleevi, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

FTP: Open a fresh data connection after a command error. Apparently some FTP servers interpret RFC 959 in a way that makes it possible for them to close the data connection on a command error. We can't be sure whether that happened or not, so just always open a new connection after receiving an error message. BUG=121335 TEST=Covered by net_unittests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167832

Patch Set 1 #

Total comments: 4

Patch Set 2 : typo fix #

Patch Set 3 : rename #

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -74 lines) Patch
M net/ftp/ftp_network_transaction.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 2 3 7 chunks +32 lines, -8 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 1 32 chunks +103 lines, -66 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Paweł Hajdan Jr.
8 years, 1 month ago (2012-11-13 19:55:35 UTC) #1
eroman
lgtm https://codereview.chromium.org/11364224/diff/1/net/ftp/ftp_network_transaction.cc File net/ftp/ftp_network_transaction.cc (right): https://codereview.chromium.org/11364224/diff/1/net/ftp/ftp_network_transaction.cc#newcode361 net/ftp/ftp_network_transaction.cc:361: // It is ambiguous whan an irrecoverable error ...
8 years, 1 month ago (2012-11-13 20:36:21 UTC) #2
Paweł Hajdan Jr.
Matt, what do you think? I'd like to see your comments before landing, and I've ...
8 years, 1 month ago (2012-11-14 17:30:18 UTC) #3
mmenke
I don't mind. I'm still working my way through the unit test infrastructure. I'll get ...
8 years, 1 month ago (2012-11-14 17:35:00 UTC) #4
mmenke
LGTM. Seems like there should be a better way of doing this - looks like ...
8 years, 1 month ago (2012-11-14 21:05:39 UTC) #5
Paweł Hajdan Jr.
https://codereview.chromium.org/11364224/diff/1/net/ftp/ftp_network_transaction.h File net/ftp/ftp_network_transaction.h (right): https://codereview.chromium.org/11364224/diff/1/net/ftp/ftp_network_transaction.h#newcode257 net/ftp/ftp_network_transaction.h:257: State state_after_data_connection_; On 2012/11/14 21:05:39, Matt Menke wrote: > ...
8 years, 1 month ago (2012-11-14 23:30:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phajdan.jr@chromium.org/11364224/8003
8 years, 1 month ago (2012-11-14 23:35:16 UTC) #7
commit-bot: I haz the power
Change committed as 167832
8 years, 1 month ago (2012-11-15 02:48:33 UTC) #8
Ryan Sleevi
This CL is causing a number of issues on the Memory.FYI waterfall http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Heapcheck/builds/22143/steps/heapcheck%20test%3A%20net/logs/stdio Leak of ...
8 years, 1 month ago (2012-11-15 07:11:25 UTC) #9
dhollowa
8 years, 1 month ago (2012-11-15 17:07:33 UTC) #10
On 2012/11/15 07:11:25, Ryan Sleevi wrote:
> This CL is causing a number of issues on the Memory.FYI waterfall
> 
>
http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%2520Heapcheck/...
> 
> Leak of 4 bytes in 1 objects allocated from:
> 	@ 41fbfb __gnu_cxx::new_allocator::allocate
> 	@ 41e815 std::_Vector_base::_M_allocate
> 	@ 41d333 std::vector::_M_allocate_and_copy
> 	@ 41c221 std::vector::operator=
> 	@ 41b816 net::IPEndPoint::operator=
> 	@ 167ab44 net::MockConnect::MockConnect
> 	@ 918760 net::SocketDataProvider::SocketDataProvider
> 	@ 167b1f0 net::StaticSocketDataProvider::StaticSocketDataProvider
> 	@ 7e69d8 net::FtpNetworkTransactionTest::ExecuteTransaction
> 	@ 7dd63f
>
net::FtpNetworkTransactionTest_DownloadTransactionMultilineWelcome_Test::TestBody
> 
> 
> Leak of 112 bytes in 1 objects allocated from:
> 	@ 7e69b3 net::FtpNetworkTransactionTest::ExecuteTransaction
> 	@ 7e77b4 net::FtpNetworkTransactionTest::TransactionFailHelper
> 	@ 7e0505
> net::FtpNetworkTransactionTest_DownloadTransactionFailUser_Test::TestBody

Suppression here:
  https://codereview.chromium.org/11415010/

This was a bad one!  Many many variants.

Powered by Google App Engine
This is Rietveld 408576698