[Feature request] Add an option to retry invalid link
Hello,
Occasionally, when the network connection is poor, httpdirfs fails to retrieve metadata from a remote file. As a result, the file is marked as "Invalid link," and no further action is taken.
It would be great to have an option for a lazy retry mechanism—where the system automatically retries at regular intervals (e.g., every 1 minute) to resolve the invalid link.
Thank you.
This is not a bad idea, feel free to contribute a pull request or something.
Relevant error:
Warning:../src/link.c:1053:Link_download_cleanup: Could not download http://localhost:10002/TEST_ISO_ARCH_124.iso, HTTP 302
Error:../src/link.c:1096:Link_download: req_size != recv, req_size: 8388608, recv: -2
Error:../src/cache.c:1113:Cache_read: thread ffff6c0 received -2 bytes, which doesn't make sense
Error:../src/cache.c:1127:Cache_read: received -2 rather than 8388608, possible network error.
double free or corruption (!prev)
https://github.com/fangfufu/httpdirfs/issues/174#issuecomment-2523057177
@trixprod, this is now done. Please give it a go.