BUG: The handle is invalid. (error 6)
Posted: Mon Feb 14, 2005 6:08 am
This has been occurring periodically with the last few beta releases. Auto-refresh is on, and sometimes (not always) when FtpVC does its refresh, an error dialog appears. It will say something like this:
#*%/: The handle is invalid. (error 6)
The first bit is usually gibberish. I presume this is some file or device the system thinks it is trying to access.
Here is the last bit of what's in the output pane when this occurs:
+++ Reconnecting to the FTP server...
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 3 of 250 allowed.
220-Local time is now 07:54. Server port: 21.
220 You will be disconnected after 4 minutes of inactivity.
---------------------------------------------------
Message Box: €‡Y/: The handle is invalid. (error 6)
OK button was selected
---------------------------------------------------
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 3 of 250 allowed.
220-Local time is now 07:54. Server port: 21.
220 You will be disconnected after 4 minutes of inactivity.
I think the problem is related to the FTP server's timeout being 4 minutes, and FtpVC's auto-refresh being set at 10 minutes, and the inactivity timeout prevention being set at 5 minutes. So the session times out before it can either prevent a timeout or do a refresh.
I'll adjust the inactivity timeout prevention, which should stop the error on my setup; however, I think FtpVC should be able to deal with a lost connection without throwing an error.
#*%/: The handle is invalid. (error 6)
The first bit is usually gibberish. I presume this is some file or device the system thinks it is trying to access.
Here is the last bit of what's in the output pane when this occurs:
+++ Reconnecting to the FTP server...
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 3 of 250 allowed.
220-Local time is now 07:54. Server port: 21.
220 You will be disconnected after 4 minutes of inactivity.
---------------------------------------------------
Message Box: €‡Y/: The handle is invalid. (error 6)
OK button was selected
---------------------------------------------------
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 3 of 250 allowed.
220-Local time is now 07:54. Server port: 21.
220 You will be disconnected after 4 minutes of inactivity.
I think the problem is related to the FTP server's timeout being 4 minutes, and FtpVC's auto-refresh being set at 10 minutes, and the inactivity timeout prevention being set at 5 minutes. So the session times out before it can either prevent a timeout or do a refresh.
I'll adjust the inactivity timeout prevention, which should stop the error on my setup; however, I think FtpVC should be able to deal with a lost connection without throwing an error.