Re: Remote side sent disconnect message type 2 (too many connections): "Too many connections"
@Guest: The error comes from the server. So there must be a server-side limit.
What is the SSH/SFTP server?
How is it configured to limit the connections?
What kind of diagnostics does it provide for the problem/tracking connections?
Why do you think it is a WinSCP (client) problem?
dir
/ls
output.
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!