httpdirfs icon indicating copy to clipboard operation
httpdirfs copied to clipboard

[Feature request] Add an option to retry invalid link

Open trixprod opened this issue 1 year ago • 3 comments

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.

trixprod avatar Nov 28 '24 18:11 trixprod

This is not a bad idea, feel free to contribute a pull request or something.

fangfufu avatar Dec 01 '24 03:12 fangfufu

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

fangfufu avatar Dec 07 '24 06:12 fangfufu

@trixprod, this is now done. Please give it a go.

fangfufu avatar Aug 11 '25 22:08 fangfufu