You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is a timeout here ideal at all?
I mean we should be able to see when the last update was to the file was performed, to see whether the file is still downloading.
The download of large file can just take time...
First, the job was registered by the socket thread only after the send
succeeded.
The job is now inserted before the message is posted, so no waiter can
observe the absence of a job it just posted.
Second, SharedMap now carries a condition variable and SharedMap::waitForJob()
blocks on it with a deadline.
Also made _transfer_id atomic.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Configuration conversion errors can terminate startup, socket initialization failures can hang the test, and reply-size documentation contradicts the implementation.
The unlimited-reply claim contradicts processSocketInput(): it discards buffered, unterminated data exceeding 100 KiB. A larger reply split across polling cycles can therefore be lost and cause a hydration timeout. Document this limit rather than promising arbitrary reply sizes.
Catch configuration type errors during startup parsing
src/openvfsfuse/main.cpp:100
A valid JSON config containing "hydrationTimeoutSeconds": "300" or null throws json::type_error here, outside the parsing catch. main() does not catch it, so startup terminates instead of reporting a controlled configuration error. Move setting extraction, including the ignoreApps conversions, inside the try block.
Check socket initialization before blocking on accept
src/openvfsfuse/tests/socketthreadtest.cpp:90
If socket initialization fails, CreateThread() returns false without connecting, but the test proceeds to a blocking accept() with no client. The test then hangs instead of reporting the startup failure. Check the return value before accepting.
About the timeout: The current built in timeout is the overall timeout after that a running request is stopped. It is true that it is independent of any progress on file download, but that is not in scope of this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.