Go Back   FlashFXP Forums > > > >

Bug Reports Report bugs here. (non-beta releases only)

 
 
Thread Tools Display Modes
Old 03-23-2003, 04:54 PM   #1
Pichento
Senior Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 327
Default Two CRITICAL FlashFXP errors

First of all thanks for a great ftp-client. I have registered well over six months ago and so far I'm very happy with the many cool features FlashFXP offers.

But FlashFXP has to very serious bugs that I sincerely hope you get fixed ASAP.

1. (FlashFXP + ioftpd)

- When transfering in SSL mode (local uploads / downloads) files skip the last few bytes (i.e. 15.000.000 -> 14.999.995). I have tested it with the latest 909b4 and 8 other versions of FlashFXP. Also I 25 users have tested it and 85% get errors. The funny thing is that a few transfer with no problems. It seems that the transfer just completes before it's actually finished. I've tried three other ftp clients (wincmd + ssl wrap, cute ftp pro and smartftp) and they do NOT show this behavior.

2. (FlashFXP + ioftpd / raidenftpd)

- SSL transfers slow down, unless you change the transfer-buffers manually. This is not possible in raidenftpd, but unless you modify the buffers, you're stuck at 80 kb/s (ioftpd) and around 150 kb/s (raidenftpd) download speed max on a 2mbit connection. Also the three above-mentioned clients do NOT show this behavior.
Pichento is offline  
Old 03-23-2003, 05:15 PM   #2
Pichento
Senior Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 327
Default

OS: .NET RC2 (Windows Server 2003)

FlashFXP: All build since 906
IoFTPD: Latest (4.6.1)
RaidenFTPD: Latest (2.4 build 345)
Pichento is offline  
Old 03-24-2003, 03:30 AM   #3
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I don't have any ioftpd test servers. Would you like to provide me with one?
bigstar is offline  
Old 03-24-2003, 04:22 PM   #4
Pichento
Senior Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 327
Default

Sure.

Download 4.6.2 here:

ioFTPD 4.6.2 (unregistered)
Pichento is offline  
Old 03-25-2003, 12:30 AM   #5
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

It seems like ioftpd prematurely closes the data socket by tiggering a FD_CLOSE before all of the data is sent.. I noticed ioftpd uses a 16k buffer this might partly to blame.. more testing is required.
bigstar is offline  
Old 03-25-2003, 05:37 AM   #6
Pichento
Senior Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 327
Default

BigStar: I already did tests with different buffer sizes. Really has no effect on the error in question.

Im running with much larger buffers in general to ensure higher speeds.

But it DOES close prematurely.
Pichento is offline  
Old 03-25-2003, 06:29 AM   #7
MidKnight
Senior Member
FlashFXP Beta Tester
ioFTPD Registered User
 
Join Date: Oct 2001
Posts: 857
Default

thats why we are currently testing this situation a little further in. but stay tuned for more details
MidKnight is offline  
Old 03-25-2003, 07:30 AM   #8
Pichento
Senior Member
ioFTPD Registered User
 
Join Date: Feb 2003
Posts: 327
Default

Sounds cool guys.

Maybe you should talk to DarkOne directly. I'm sure you'll have the problem fixed in no time.
Pichento is offline  
Old 03-27-2003, 10:57 PM   #9
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Hmms.. in unregistered version all timeouts are disabled => if server does not receive proper connection closure (ssl_shutdown()) - it hangs inndefinetely. Neat, uhh?

What comes to FD_CLOSE - I'm quite confident that all data is being processed properly. Also FD_CLOSE should not occur in SSL mode before SSL_shutdown() has returned 1. If SSL_shutdown() is not called at all, some data may/will be lost.


Edit: I tried with smartftp, and did not notice any problems (timeouts disabled)
darkone is offline  
Old 03-28-2003, 12:20 AM   #10
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

SSL_shutdown is called before FD_CLOSE occurs. If client is sending data (uploading), it should call SSL_shutdown() once all data has been sent (EOF). Server does SSL_read() until SSL_ERROR_ZERO_RETURN is returned. At this point server calls, SSL_shutdown(). Both ends wait until SSL_shutdown returns with 1/error, or timeout elapses. Socket is to be closed at this point.


C> SSL_connect()
S> SSL_accept()
C> SSL_write()
S> SSL_read()
C> SSL_shutdown()
S> SSL_read(), SSL_ERROR_ZERO_RETURN
S> SSL_shutdown()
C> SSL_shutdown(), return 1
S> SSL_shutdown(), return 1
C> closesocket() (FD_CLOSE)
S> closesocket() (FD_CLOSE)
darkone is offline  
Old 03-28-2003, 05:16 AM   #11
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Is FFXP using method I described for receiving data? It should be waiting SSL_read() to return SSL_ERROR_ZERO_RETURN error, instead of waiting for FD_CLOSE socket event to occur.
darkone is offline  
Old 03-28-2003, 06:26 AM   #12
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I'm 99% sure the problem has been resolved. I'll find out later today when Midknight comes around and sets up ioFTPD for me to test.

If so expect a new build released later today.
bigstar is offline  
Old 03-28-2003, 08:37 AM   #13
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

It appears the problem has been resolved

This fix has been included in the public beta
http://forum.flashfxp.com/showthread...=&postid=12650
bigstar is offline  
 

Tags
flashfxp, ioftpd, raidenftpd, show, ssl

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect multipule times to an IP pc1 General Discussion 1 09-15-2004 08:43 AM


All times are GMT -5. The time now is 08:40 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)