Hi, I'm writing a simple program that are downloading several files at the same time in different threads and It seems that as soon as the first file is finished all other file downloads ends with this exception:
error in thread = 4 filename = movie1.wmv, error = An existing connection was forcibly closed by the remote host
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.
It works fine before the first file is ready and I have five files downloading at same time.
Anyone have an idea what the problem can be? the server being used is Titan.
The code looks like this when starting the download for every file.
try
{
Ftp client = new Ftp();
client.Connect(hostname, port);
client.Login(username, password);
long fileSize = client.GetFile(fileName, fileNameWithPath);
}
catch (Exception ex)
{
...
}