Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.7k views
in .NET FTP by (220 points)
When i upload a huge file (more than 1gb) edtftp freeze before notify transfercompleted.
somebody can help me?
thanks in advance
Carlini

4 Answers

0 votes
by (162k points)
The server is probably timing out on you during the transfer. Solution is to increase the server timeout.
0 votes
by (220 points)
thanks

the question is: are there some events fired in case of timeout? In my code How can I know if a connection is aborted by timeout? Now my program freeze...
0 votes
by (162k points)
Post a snippet of the log file (see the Dev Guide for logging or these forums)
0 votes
by (220 points)
I change my code, now i'm using EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.

when i call the method moClient.Quit()
the program freeze for 20 seconds.

Here there'is the log:


DEBUG [SecureSocket] 7 feb 2007 15.35.38.290 : Shutdown(Both)
ERROR [SocketController] 7 feb 2007 15.35.38.300 : OnReceive - caught exception - closing : System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto
System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at w.g(IAsyncResult A_0)
DEBUG [TransferBuffer] 7 feb 2007 15.35.38.310 : Close() called when open
ERROR [FTPClient] 7 feb 2007 15.35.38.391 : Caught exception : System.Threading.ThreadAbortException: [Resource lookup failed - infinite recursion detected. Resource name: Arg_ThreadAbortException]
System.Threading.ThreadAbortException: [Resource lookup failed - infinite recursion detected. Resource name: Arg_ThreadAbortException]
at System.IO.__UnmanagedMemoryStream.ReadByte()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadByte()
at System.Resources.ResourceReader.Read7BitEncodedInt(BinaryReader br)
at System.Resources.ResourceReader.CompareStringEqualsName(String name)
at System.Resources.ResourceReader.FindPosForResource(String name)
at System.Resources.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase)
at System.Resources.RuntimeResourceSet.GetString(String key, Boolean ignoreCase)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at System.Environment.GetResourceString(String key)
at System.IO.__Error.ReaderClosed()
at System.IO.StreamReader.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocketPASV()
at EnterpriseDT.Net.Ftp.FTPControlSocket.CreateDataSocket(FTPConnectMode connectMode)
at EnterpriseDT.Net.Ftp.FTPClient.a(String A_0, Boolean A_1)
at EnterpriseDT.Net.Ftp.FTPClient.a(Stream A_0, String A_1, Boolean A_2, Boolean A_3)

Categories

...