This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209043 - No transfer timeout on ftp connection
Summary: No transfer timeout on ftp connection
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 207465 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-01 12:27 UTC by giannivalenti_alkeria
Modified: 2012-03-29 13:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The no transfer timeout error while trying to send keepalive. (13.16 KB, image/png)
2012-03-01 12:27 UTC, giannivalenti_alkeria
Details

Note You need to log in before you can comment on or make changes to this bug.
Description giannivalenti_alkeria 2012-03-01 12:27:07 UTC
Created attachment 116236 [details]
The no transfer timeout error while trying to send keepalive.

Hello,
I would suggest to ignore ftp no transfer timeout error: "FTP 421 No Transfer Timeout (300 seconds)".

This is an error that occurs whenever you try to keep alive an ftp connection without transferring any data.

It's a bit annoying to receive this error and I think there is no reason to report it to the user with an alert message window. I would suggest to just write it on the output log and close the connection.

Bye,
Gianni


Version details:

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; it_IT (nb)
User directory: C:\Users\Gianni\.netbeans\7.1
Cache directory: C:\Users\Gianni\.netbeans\7.1\var\cache


Output console:

220 ProFTPD 1.3.3a Server (Diogene) [192.168.1.21]
USER gianni
331 Password required for gianni
PASS ******
230 User gianni logged in
TYPE I
200 Type set to I
CWD /sphere
250 CWD command successful
PWD
257 "/sphere" is the current directory
CWD /sphere/classes
250 CWD command successful
SYST
215 UNIX Type: L8
PASV
227 Entering Passive Mode (192,168,1,21,232,246).
LIST Lot.php
150 Opening BINARY mode data connection for file list
226 Transfer complete
PASV
227 Entering Passive Mode (192,168,1,21,196,154).
STOR Lot.php.new
150 Opening BINARY mode data connection for Lot.php.new
226 Transfer complete
RNFR Lot.php.new
350 File or directory exists, ready for destination name
RNTO Lot.php
250 Rename successful
PASV
227 Entering Passive Mode (192,168,1,21,155,165).
LIST Lot.php
150 Opening BINARY mode data connection for file list
226 Transfer complete
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
200 NOOP command successful
NOOP
421 No transfer timeout (600 seconds): closing control connection
QUIT
Comment 1 Tomas Mysik 2012-03-28 09:01:54 UTC
Will try to have a look at it.

Thanks for reporting.
Comment 2 giannivalenti_alkeria 2012-03-28 09:11:24 UTC
Hi,

Probably another solution could be closing ftp connection after a timeout if the keep alive option is not set, so that we can close the connection without errors before the remote server does.

Bye,
Gianni
Comment 3 Tomas Mysik 2012-03-29 13:19:26 UTC
Very similar to issue #203987 but apparently its fix does not work for all servers :) Now, after every 10th NOOP command PWD command is send. Do you think whether there is a better command to be send to the server (instead of the PWD command)? If not, I will do what you suggest - just disconnect and add a message to the log.

Thanks for reporting.
Comment 4 Tomas Mysik 2012-03-29 13:42:34 UTC
Fixed. Feel free to verify and reopen if you have a better idea (e.g. what command should be send to the server to avoid this error).

Thanks.
http://hg.netbeans.org/web-main/rev/a4a6221987a2
Comment 5 Tomas Mysik 2012-03-29 13:44:07 UTC
*** Bug 207465 has been marked as a duplicate of this bug. ***
Comment 6 Tomas Mysik 2012-03-29 13:57:13 UTC
Minor improvement added.

http://hg.netbeans.org/web-main/rev/b6d24430d41f