Issues with STOR command from FZ client and custom FTP server
Posted: 2019-10-22 06:13
Hello, everyone.
First of all.
Thank you in advance for all the help you will be able to provide me with.
So here is the situation :
I'am currently developing a FTP server on a MCU (the ESP8266).
In order to be complient with the FTP protocol, I followed the RFC 959 (or at least what I understood of it).
Finally for testing purposes, I'am using FileZilla FTP client.
The only mode supported by the server for now is passive FTP.
Issues
I'am facing 2 issues with the STOR command, (everything else works flowlessly).
The first one is when I create a new file throught the FZ CLient GUI.
I receive the STOR command, but I do not see any connection attempt on the data port (ie no connection after the PASV request).
I was wondering if no connection was established because there is no data to send since the file which is created is empty.
Or if FZ Client opened and closed the connection very quicly.
The second one is when sending a big file from the FZ Client to the server (with STOR again), if the transfer takes longer than the client's timeout (20 secs in my case),
the client thinks the connection was lost and connects again to retry the data transfer.
If I set the timeout to 0 (ie no timeout) the transfer works without errors.
So my question is the following one : should the server give a feedback while receiving a file with the number of bytes received from the client ?
Nothing like this that I have read is specified in the RFC 959.
Again a big thank you to who will take the time to help me.
If you need more information do not hesitate to ask me.
First of all.
Thank you in advance for all the help you will be able to provide me with.
So here is the situation :
I'am currently developing a FTP server on a MCU (the ESP8266).
In order to be complient with the FTP protocol, I followed the RFC 959 (or at least what I understood of it).
Finally for testing purposes, I'am using FileZilla FTP client.
The only mode supported by the server for now is passive FTP.
Issues
I'am facing 2 issues with the STOR command, (everything else works flowlessly).
The first one is when I create a new file throught the FZ CLient GUI.
I receive the STOR command, but I do not see any connection attempt on the data port (ie no connection after the PASV request).
I was wondering if no connection was established because there is no data to send since the file which is created is empty.
Or if FZ Client opened and closed the connection very quicly.
The second one is when sending a big file from the FZ Client to the server (with STOR again), if the transfer takes longer than the client's timeout (20 secs in my case),
the client thinks the connection was lost and connects again to retry the data transfer.
If I set the timeout to 0 (ie no timeout) the transfer works without errors.
So my question is the following one : should the server give a feedback while receiving a file with the number of bytes received from the client ?
Nothing like this that I have read is specified in the RFC 959.
Again a big thank you to who will take the time to help me.
If you need more information do not hesitate to ask me.