Jump to content


Photo

ReadDirectory returning ftpErrorSuccess instead of ftpErrorTimeout


  • Please log in to reply
4 replies to this topic

#1 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 08 September 2006 - 07:51 AM

Hi,

Got an odd problem with a Gene6 FTP Server v3.8.0 (Build 34):

---

220 Gene6 FTP Server v3.8.0 (Build 34) ready...
USER XXX
331 Password required for Hexagon-Remote.
PASS (hidden)
230 User Hexagon-Remote logged in.
SYST
215 UNIX Type: L8
Detected Server Type: UNIX
FEAT
211-Extensions supported:
AUTH TLS
CCC
CLNT
CPSV
EPRT
EPSV
MDTM
MFCT
MFMT
MLST type*;size*;create;modify*;
MODE Z
PASV
PBSZ
PROT
REST STREAM
SIZE
SSCN
TVFS
UTF8
XCRC "filename" SP EP
XMD5 "filename" SP EP
XSHA1 "filename" SP EP
211 End.
...
MODE Z
200 Mode Z ok.
CWD /folder/
250 CWD command successful. "/folder" is current directory.
PASV
227 Entering Passive Mode (XXX,83,100,204,195,178)
Opening data connection to XXX.83.100.204 Port: 50098
MLSD
150 Data connection accepted from XXX.185.33.66:20; transfer starting.
226-Compression : 0% (0 Bytes/458 Bytes).
226 Transfer ok.
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.

---

So the FTP server is saying it has transferred the listing, but actually it timed out. The problem is the result from the call to ReadDirectory() is ftpErrorSuccess. Shouldn't it be ftpErrorTimeout ?

Thanks

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 09 September 2006 - 03:04 AM

The ReadDirectory() method returns ftpErrorSuccess because the server returns a "226 Transfer ok" reply. I'm not sure what the correct behavior of the client/server is but in my opinion the server shouldn't send a 226 if the data connection failed and no data is sent at all. I will talk to the Gene6 devs and ask them about their opinion.

Regards,
-Mat

#3 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 11 September 2006 - 11:45 AM

Hi, the customer changed their FTP settings to use implicit TLS encryption and it appears to be working now. This usually indicates a router causing problems. I've asked them which one they're using and will post here once I find out. Thanks.

#4 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 13 September 2006 - 06:26 AM

The router is a Linksys WRT54GL flashed with dd-wrt ver23SP1 firmware.

#5 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 15 September 2006 - 07:36 AM

I talked to the Gene6 developer and we agreed that the server shouldn't return a 2xx reply if no data is sent. The Gene6 developer will take a look at the problem and I will post any updates as soon as I get them.

If the user having the problem wants to provide more details about the problem he/she could do that directly in the Gene6 forum:
http://www.g6ftpserver.com/forum/

Thank you.
Regards,
-Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users