Skip to content

Proxy file fixes - #40

Merged
protyposis merged 3 commits into
mainfrom
feat/proxy-fixes
Nov 19, 2025
Merged

protyposis merged 3 commits into
mainfrom
feat/proxy-fixes

Conversation

@protyposis

Copy link
Copy Markdown
Owner

This PR addresses 3 issues in the context of proxy files:

  • proxy files not updated after proxied files changed
  • proxy file creation randomly getting stuck forever
  • incompletely written proxy files unexpectedly used

The hash-based proxy file names were calculated only from the file path, so old proxies were reloaded when the proxied files changed. Now the file size and last modified timestamp is also taken into account to create a new proxy when a file changed.
The blocking stream had a race condition where the last read call got stuck forever when the end of the stream was signalled afterward.
When a proxy file wasn't fully written, e.g., due to errors or program termination, the incomplete file was used next time as if it were a complete file. Now proxy files are first written to a temporary file and promoted to the final proxy file only if complete.
@protyposis
protyposis merged commit 69ca6e1 into main Nov 19, 2025
3 checks passed
@protyposis
protyposis deleted the feat/proxy-fixes branch November 19, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant