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

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)

Created:
10 years, 10 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Really connect to the same server in FTP network transaction. Also create necessary infrastructure to know the address a client socket is connected to. TEST=Covered by net_unittests. BUG=35670 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39559

Patch Set 1 #

Total comments: 3

Patch Set 2 : fixes #

Total comments: 8

Patch Set 3 : updates #

Patch Set 4 : better fix #

Total comments: 21

Patch Set 5 : fixes #

Total comments: 5

Patch Set 6 : fix #

Total comments: 2

Patch Set 7 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -127 lines) Patch
M chrome/browser/sync/notifier/communicator/ssl_socket_adapter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/notifier/communicator/ssl_socket_adapter.cc View 1 2 2 chunks +19 lines, -4 lines 0 comments Download
M net/base/address_list.h View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M net/base/address_list.cc View 1 2 3 4 5 6 6 chunks +34 lines, -8 lines 0 comments Download
M net/base/address_list_unittest.cc View 1 2 3 4 5 chunks +57 lines, -7 lines 0 comments Download
M net/base/nss_memio.h View 4 2 chunks +6 lines, -1 line 0 comments Download
M net/base/nss_memio.c View 4 1 chunk +8 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 2 3 4 5 6 1 chunk +8 lines, -8 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 1 2 3 4 5 6 9 chunks +16 lines, -14 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket.h View 1 2 2 chunks +3 lines, -13 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M net/socket/socks5_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks5_client_socket.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M net/socket/socks_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_mac.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_mac.cc View 1 2 3 4 5 6 3 chunks +20 lines, -18 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 4 chunks +13 lines, -13 lines 0 comments Download
M net/socket/ssl_client_socket_win.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Paweł Hajdan Jr.
10 years, 10 months ago (2010-02-11 18:56:50 UTC) #1
eroman
It seems redundant to have both: ClientSocket::GetPeerName() [which gets a sockaddr] ClientSocket::GetPeerAddress() [which gets an ...
10 years, 10 months ago (2010-02-11 21:11:58 UTC) #2
eroman
(Er, I should have written that pseudo-code differently. Once AddressList goes out of scope, the ...
10 years, 10 months ago (2010-02-11 21:20:29 UTC) #3
Paweł Hajdan Jr.
PTAL, thanks for the pseudocode. I'm somewhat uncomfortable with these reinterpret_casts. Please review especially carefully.
10 years, 10 months ago (2010-02-12 17:09:21 UTC) #4
eroman
Thanks for making this change! LGTM after you see my comment in <http://codereview.chromium.org/598071/diff/5001/6001#newcode258>. Also, can ...
10 years, 10 months ago (2010-02-12 21:49:33 UTC) #5
Paweł Hajdan Jr.
Patch updated. wtc/willchan: please take a look
10 years, 10 months ago (2010-02-13 18:26:38 UTC) #6
Paweł Hajdan Jr.
Wan-Teh, could you advice about changes in nss_socket_nss.cc? Currently it causes an invalid read, see ...
10 years, 10 months ago (2010-02-16 20:35:19 UTC) #7
wtc
Pawel, Please fix the following code: void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername) { PRFileDesc *memiofd ...
10 years, 10 months ago (2010-02-17 02:00:13 UTC) #8
wtc
Pawel: you can also use size_t instead of socklen_t as the type of the peerlen ...
10 years, 10 months ago (2010-02-17 02:03:11 UTC) #9
Paweł Hajdan Jr.
Thanks for very good description how to fix it. Valgrind shows it's ok now. Please ...
10 years, 10 months ago (2010-02-17 08:25:42 UTC) #10
wtc
eroman: are you going to review this CL? Pawel: I only reviewed a few files ...
10 years, 10 months ago (2010-02-17 20:18:17 UTC) #11
Paweł Hajdan Jr.
Thanks for the review, patch updated. eroman has already reviewed this issue. http://codereview.chromium.org/598071/diff/3007/8004 File net/base/address_list.cc ...
10 years, 10 months ago (2010-02-18 11:55:28 UTC) #12
eroman
> eroman: are you going to review this CL? I signed off on this earlier, ...
10 years, 10 months ago (2010-02-18 23:50:49 UTC) #13
Paweł Hajdan Jr.
http://codereview.chromium.org/598071/diff/14001/14004 File net/base/address_list.cc (right): http://codereview.chromium.org/598071/diff/14001/14004#newcode91 net/base/address_list.cc:91: return; On 2010/02/18 23:50:50, eroman wrote: > What was ...
10 years, 10 months ago (2010-02-19 16:46:53 UTC) #14
wtc
http://codereview.chromium.org/598071/diff/14001/14004 File net/base/address_list.cc (right): http://codereview.chromium.org/598071/diff/14001/14004#newcode90 net/base/address_list.cc:90: NOTREACHED(); This NOTREACHED() and the NOTREACHED() at line 135 ...
10 years, 10 months ago (2010-02-19 21:58:51 UTC) #15
eroman
(Not to extend this discussion, since I am fine with either outcome... but my preference ...
10 years, 10 months ago (2010-02-19 22:04:18 UTC) #16
wtc
Pawel, since eroman already reviewed this, you can check this in. I only checked the ...
10 years, 10 months ago (2010-02-19 23:12:50 UTC) #17
Paweł Hajdan Jr.
10 years, 10 months ago (2010-02-20 18:51:33 UTC) #18
Committed after addressing wtc's latest comments.

Powered by Google App Engine
This is Rietveld 408576698