Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
Author | Forum: PowerTCP FTP for .NET Topic: FTP Hangs with larger files |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted April 25, 2005 7:53 PM I searched for this topic but could not find one that is the same problem I am having, so I'm trying this here. When someone transfers a file roughly 100MB or larger, the FTP software hangs. Example: transferFtp.Put(LOCALFILE, REMOTEFILE); DoSomething(); It the localfile is ~100MB or larger, DoSomething(); never executes. Thanks, Tyler |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted April 25, 2005 7:54 PM Forgot to add this. When I look at the logs in my FTP Server software, I have this: 05/04/25 16:23:38, 906, 24.5.225.55, username, finished uploading 'FILENAME' from 0 to 135181974 (00:49:23 - 44.554 KBytes/s). 05/04/25 16:23:38, 906, 24.5.225.55, username, 226 File received ok. 05/04/25 16:24:54, 906, 24.5.225.55, username, disconnected. (00d00:50:40) |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 25, 2005 8:40 PM Do you have the same problem if you try it using our FTP Listview sample app? |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 2, 2005 1:55 PM Sorry for the long delay in replying. We just got the ListView app running on the client machine. In the ListView application, we get the error: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond" Also note, the file transfered 100% to the server, although it shows as failed in listview. Thanks for any help |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 2, 2005 1:56 PM Last note - we only have this problem when a file is ~100MB or larger. Smaller files have not been a problem. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 2, 2005 2:04 PM Does the machine have Windows Firewall enabled? If so and you turn it off, does the problem go away? |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 2, 2005 3:39 PM I just tested with one user who did have the windows firewall turned on, I had him turn it off and run the same test, and it did the same thing. The FTP Server shows sending the 226 File received ok command. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 2, 2005 4:43 PM Do you have a server you can point me to that duplicates this problem? If you don't want to post the information here, you can email it to support@dart.com |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 2, 2005 5:01 PM Just emailed you login information. Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 2, 2005 5:19 PM Ok, got it. I'll let you know what I find. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 3, 2005 9:10 AM Is that the only server it happens with? I noticed that it is a Gene6 FTP server. We have that here and last night I was able to duplicate the problem while doing a slow transfer from home, but now that I am at work and the transmission speed is faster it doesn't happen. From what I can tell the server is not responding after we close the data connection following the upload so it times out. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 3, 2005 9:57 AM The problem is with the server. If you use a program like WSFTP to do the same thing, you will see in the log that the Gene6 server does not respond to it either. WSFTP just reconnects and does another listing and assumes the transfer was successful. |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 3, 2005 11:43 AM Thank you very much for your testing and help. I am in contact with Gene6 now and they are working on a solution. Again, thanks for your time! |
bigjohn718 From: port washinton, NY USA Posts: 1 Member Since: 05/04/05 |
posted May 4, 2005 11:21 AM I have tried with gene6, bulletproof, IIS 6.0 all same issue, what is the recommended server for this app to work? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2005 11:31 AM It sounds like you are not experiencing the same problem. Please start a new thread and describe the problem you are having in more detail. Make sure you post in the correct forum for the Tool that you own. Thanks. |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 4, 2005 3:11 PM As an update to this problem: I contacted Gene6, and they said that if the log for Gene6 shows the 226 command then they are sending it (basically saying it is a client problem). To test I installed another FTP Server (GlobalSCAPE) - and it had the same problem. ------- Here is the results from your ListView application: TYPE I 200 Type set to I. PASV 227 Entering Passive Mode (207,189,102,243,195,94). STOR outlook.zip 150 Opening BINARY mode data connection for outlook.zip. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond TYPE A ------- Here is the results from GlobalScape's FTP Server: [11:52:54 AM] COMMAND:> TYPE I [11:52:54 AM] 200 Type set to I. [11:52:54 AM] COMMAND:> PASV [11:52:54 AM] 227 Entering Passive Mode (207,189,102,243,195,94). [11:52:54 AM] COMMAND:> STOR outlook.zip [11:52:54 AM] 150 Opening BINARY mode data connection for outlook.zip. [12:12:11 PM] 226 Transfer complete. 103579544 bytes transferred. 89524 Bps. ------- We either have 2 bad FTP Servers or it is a problem with the control. What FTP Server are you testing on that works successfully? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2005 3:23 PM I only tried it with Gene6, but I used another client (WSFTP Pro) and the same thing happened. The WSFTP log showed that it got sick of waiting for the response so it just reconnected. The problem is that this is only occurring when the transmission speed is low so it is very time consuming to troubleshoot. I would suggest doing the same thing that WSFTP does (handle the error, then relogin and get the Listing) If that is not an option for you, I suggest that you contact support@dart.com to discuss the more advanced support options that are available to you. |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 4, 2005 3:40 PM Is the KeepAlive (FtpVar.Connection.KeepAlive) the same thing as the NOOP command? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2005 3:48 PM No. KeepAlive is something done at the stack level. You have to enable it in the registry in order for the property to work. What happens is the stack sends out a special packet (you would not see it as data sent over the control connection. I was thinking, if this only happens with large files, maybe the server is taking a long time to respond because of something it is doing after the transfer (like virus check). What happens if you set the timeout really high?: Ftp1.Connection.ReceiveTimeout = 300000 |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 5, 2005 2:46 AM Setting the ReceiveTimeout to 300000 did not help. I tried to implement the resume feature tonight with no luck. I have a try/catch statement similar to this: try { ftp.Put(source, destination); } catch { ftp.Put(source, destination); } I have verified that ftp.Restart = true;. Is there anything else I need to do to set up the resume? Also, it appears by default that we are transfering everything in ASCII. Is there anyway to set this to binary? Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 5, 2005 7:33 AM Regarding the hangup, what error are you getting when the connection times out and you try again? Regarding the Transfer type, please search for 'ASCII' or 'binary' in the online help and you will find the property you are looking for. |
tfrugia From: Hillsboro, OR USA Posts: 23 Member Since: 04/25/05 |
posted May 5, 2005 3:16 PM The first time we execute transferFtp.Put(LOCALFILE, REMOTEFILE); - we get: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond (same error we have been getting). When I turn around and call transferFtp.Put(LOCALFILE, REMOTEFILE); in the catch{} statement, we get: System.Net.ProtocolViolationException: Request: PASV Response: 213 147921108 at a.Invoke(Delegate CurrentDelegate, Object[] args) at Dart.PowerTCP.SecureFtp.Ftp.Put(String localFileName, String remoteFileName) Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 5, 2005 3:41 PM Try calling Abort before you call Put again and see what happens. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 11, 2005 5:24 PM Where do you stand on this now? I have been doing extensive testing with FTP this last week (we just released version 2.3.0 of the .NET FTP kits) and have found that Gene6 absolutely positively has some sort of problem with the closing of the data connection after a lengthy transfer. It's not just with us either. Here is what I found using an independent FTP client (WSFTP Pro): When I Store a file that is greater than 7megs, Gene6 DOES NOT send a "226 Transfer Complete" (or anything for that matter) after the data connection is closed by the client. I verified this by using Ethereal to monitor all network traffic. Using Serv-U as the server exhibits absolutely no problems. Please let me know if you have any more info. |
Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
![]() |