Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: FTP problem with downloading small files. Fault of server or SFML?  (Read 3219 times)

0 Members and 1 Guest are viewing this topic.

Brix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hi,

I am completely new to SFML and I tried to use the ftp class.
When I try to download large files like 500 kB everything works really well and after every transfer I get the 226 from the server but if I try to download a file smaller than 100 kB than I never get the 226 and so the loop gets stuck. The file itself is downloaded correct an I can access it.
It is "just" that because I do not get the 226 no other command is executed.

I am not sure whether this is an issue with SFML or with the server.
I also tried to use a local FTP server and with it everything worked well.
So it looks to me like it is a problem with the server.

Has anyone made experience with this or has a trick for me?

Thank you very much :-)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #1 on: August 10, 2015, 11:53:23 am »
Why don't you try another FTP client (other than SFML), with the same server?
Laurent Gomila - SFML developer

Brix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #2 on: August 10, 2015, 03:59:40 pm »
I did this.
Filezilla is working always and QtFTP gets stuck with the same problem sometimes.

I really would like to use the FTP class from SFML as it is so easy to use ;-)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #3 on: August 10, 2015, 04:36:32 pm »
Quote
QtFTP gets stuck with the same problem sometimes
So, maybe the server is returning something non-standard that only robust FTP clients can handle. I'm afraid you'll have to investigate a little bit by yourself in this case.
Laurent Gomila - SFML developer

Brix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #4 on: August 10, 2015, 06:44:01 pm »
Thank you very much.

Is there the possibility to show everything comming from the FTP?
So a more detailed log than with using the normal responses?


Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #5 on: August 10, 2015, 07:11:32 pm »
You might want to use WireShark to analyse the packets. This is a great tool for network analysis. This will most likely tell you what is going on.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #6 on: August 10, 2015, 07:13:46 pm »
Or simply recompile SFML to have full debug access to what happens inside.
Laurent Gomila - SFML developer

Brix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: FTP problem with downloading small files. Fault of server or SFML?
« Reply #7 on: August 11, 2015, 09:10:39 pm »
Thank you very much :-)

I used Wireshark to monitor the traffic.
To me it really looks like the server is causing the problem.

I also sent a logfile of the monitored traffic to the FTP provider and they just told me that it looks like there is an incompatibility they cant explian...

So sadly it looks like I can not use SFML for this server.
But still, I like SFML ;-)

Thanks for the help!

 

anything