-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
Web Dav and FYSETC SD-WIFI-PRO? #956
Comments
Are there any limitations on the numbers of files or directors that can be used? I hit this issue when I try to access a folder with a large number of directories, 782 to be exact. If I go to a folder that has a small number of files and folders inside of it, things work fine. If it matters, I am trying to use this card to allow me to remotely access the files that my CPAP machine creates so I can load it into a tool that analyses the data. The CPAP machine creates a new directory with the data every day, and each directory will contain between 20-50 files depending on what it decides to capture that night. The CPAP only writes to the card and doesn't seem to modify the nightly data after it has been written. Are there any ways that I can optimize ESP to be able to deal with this large number of files and folder through WebDAV better? |
if large number of files is a triger then I will see if I can reroduce as I never tested with so many for sure. webdav and ftp I will work on webdav rewrite starting today but will try reproduce your issue first so just accessing such dir crash , right ? |
Yes, this is correct. |
so I should be easy to reproduce and to fix I have some idea of possible root cause |
well I did 999 files and copied on SD manualy from Windows explorer (Win 11) I still found a problem with creating a new folder under windows but I suspect a bug in long name - I will have a look at it so about your issue, I need more details like the names of the files, and files sizes and directory name or full path of location on SD to see if I can reproduce or guess the issue |
I did test this again and it looks like it does act the same way it does for you. I am able to list the 784 directories in about 5 minutes. I repeated this test multiple times, and never had an issue with the ESP locking up. I am not sure what I had done originally to cause it to lock up. I know you said you are working on seeing if there is a way to improve the directory listing speed, but is there any way for me to disable unneeded services to increase the speed of the WebDAV file system until then? |
You can disable telnet as I guess you do not use it, but that is all, and it won't speed up the transfert actually You may decrease the SPI Div to increase Sd access but be sure you do not get corrupted content if too low The webdav protocol is very chatty, especially on windows that does not seems actually follow it properly, it need to access each file, one by one, to stat the size and the file type (file or dir), and for each file it need to generate a part of xml response 5min x 60 x 1000 = 300000 ms / 780 files = 385ms per file, this time include: SD access + response generation + message send This time (385ms / file) is ok on few files but start to be terrible on long listing I was hoping to speed up display by sending partial content response but this feature is only for file transfert not for PROPFIND response which list the content of the directory, so I am not sure what can be done for the moment, I need to dig in |
Ok still digging back to code and cleaning a little - I have couple of things that I will do to speed up a little the webdav communications: There are some unecessary checks in code that can be safely removed so I will do it also I am not sure how much these change will improve but it worth a try |
Sounds great, thanks for your hard work on this! |
I have rewrite totaly the WebDav based on code I did for ESP3D-TFT, it simplify a lot many things but did not really improve response time for directory with huge amount of files |
It's no problem, I really apricate the time you've taken to work on this. I have no way to prove it, but using WebDAV now seems much more stable after the changes you made. |
I think i your case need a dedicated fw and dedicated client: many possibilities, it is project by itself actually |
I close issue as limitation for delay of displaying ~700 files |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
@y2kdread wrote :
When I try accessing the files through WebDAV (mapped through windows), everything works fine. Whenever I try copying from the SD to the PC, the ESP locks up. The file transfers never completes and the web UI locks up. The only way for this to recover is to eject the SD card fully and reinsert it.
The text was updated successfully, but these errors were encountered: