Too Many Simultaneous Connections Error
I have a "Too many simultaneous connections error" when using a
batch file. The batch file is:
open ftp://" & strUser & ":" & strPass & "@" & strHost ls " & Chr(34) & strRemoteDir & Chr(34) close exit
Winscp.com
is executed from shell within VB with XML logging enabled. When I run this script the first 8 times against a register.com FTP site it seems to work fine. On the 9th try the script is unable to retrieve the ls listing. When I try to log in to that site manually via winscp.exe after the script stops working I get a "too many simultaneous connections" error, which also occurs with other FTP clients. The script will start working again in 15 minutes or so (presumably when sessions which should have been closed by the script are not actually closed, and timeout at the server). I have tried logging in to the FTP site manually 9 times at once, and get the same error, but as soon as the number of simultaneous connections are reduced to less than 8, additional sessions can be opened immediately. This script is only called once at a time. It is almost as if the close
then exit
commands are not actually terminating the session with the server. Any help would be much appreciated!