Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sf::Ftp::getDirectoryListing() stuck if there are no files/directories #1025
This is my first time, and i was expecting someone complaining about my "problem description" /^^\
util::log(util::INFO, "Requesting list... ");
getDirectoryListing() gets stuck once there are no files/directories to list from the server, server showed success of sending NLST to the client but client was literally stuck on that function, just as when you are waiting for the socket to complete operation.
and then the client is stuck on getDirectoryListing(); , looks like waiting for some operation to complete
I can reproduce this if I add an call to
The client hangs here:
I think this is because in a FTP directory listing, two responses are used to mark the start (150) and end (266) of the directory listing.