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

Issue 192042: Get rid of the data socket completely when data transfer is finished. (Closed)

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

Description

Get rid of the data socket completely when data transfer is finished. Fixes an FTP transaction hang when we wait for server's response and the server apparently waits for us. TEST=See bug. http://crbug.com/21127 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25750

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M net/ftp/ftp_network_transaction.cc View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
CC willchan - I don't quite understand why it's necessary - the data socket should ...
11 years, 3 months ago (2009-09-08 19:14:38 UTC) #1
willchan no longer on Chromium
Why are you sure the socket is disconnected? !IsConnected() does not imply that it's already ...
11 years, 3 months ago (2009-09-08 20:09:17 UTC) #2
Paweł Hajdan Jr.
On 2009/09/08 20:09:17, willchan wrote: > Why are you sure the socket is disconnected? Well, ...
11 years, 3 months ago (2009-09-08 20:10:30 UTC) #3
willchan no longer on Chromium
On 2009/09/08 20:10:30, Paweł Hajdan Jr. wrote: > On 2009/09/08 20:09:17, willchan wrote: > > ...
11 years, 3 months ago (2009-09-08 20:18:56 UTC) #4
wtc
11 years, 3 months ago (2009-09-09 20:20:42 UTC) #5
LGTM.

http://codereview.chromium.org/192042/diff/1/2
File net/ftp/ftp_network_transaction.cc (right):

http://codereview.chromium.org/192042/diff/1/2#newcode984
Line 984: // If we don't destroy the data socket completely, some servers will
wait
It would be nice to explain that a half-closed TCP connection
still needs to be closed on our side.

Powered by Google App Engine
This is Rietveld 408576698