-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how does ftpd determine that the STORed filed transfer is over? #167
Comments
Are you sure you closed only the data port and not the command port? |
I'm pretty sure. Here is the code (Lua):
I've noticed that ftpd sends a 226 message when the transmission is over when I use FileZilla. Looking at the source code (specifically at ftpSession.cpp), I've noticed that that message is supposed to be sent when the buffer is 0. Maybe it has something to do with that? |
Yes, once you close the data socket then server side will get a read of zero which marks the end of the data transfer, which the server will then send the 226 response. |
I'm programming an FTP client for the 3ds. When I try to send a file to the server with STOR, and the file transfer is finished, I close the data port, but then I get an error
[ERROR] recv: Connection reset by peer
instead of the 226 command. I've tried delaying the closure of the data port, but with no luck. How am I supposed to tell ftpd that the STOR data transfer is overd?I'm using ftpd 3.1.0 (not classic) on a new 3ds (3dsx, rosalina 2.4.1)
The text was updated successfully, but these errors were encountered: