Skip to content

Fix assert in httplogger if a cached request is actuall send - #456

Merged
TheOneRing merged 1 commit into
mainfrom
work/http_logger
Aug 6, 2025
Merged

TheOneRing merged 1 commit into
mainfrom
work/http_logger

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

No description provided.

@TheOneRing
TheOneRing requested a review from Copilot August 6, 2025 09:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an assertion issue in the HTTP logger when a cached request is actually sent. The problem occurs when a file is cached and the finished signal is received before the request was sent, causing an unreachable code path to be executed.

  • Adds a flag to track when a cached request is sent after receiving a cached result
  • Modifies the assertion logic to handle this edge case with a warning instead of crashing
  • Reorders timer operations to prevent race conditions

Comment thread src/libsync/httplogger.cpp Resolved
Comment thread src/libsync/httplogger.cpp Resolved
Comment thread src/libsync/httplogger.cpp Resolved
@TheOneRing
TheOneRing enabled auto-merge (rebase) August 6, 2025 09:51
@TheOneRing
TheOneRing merged commit 72ab34b into main Aug 6, 2025
@TheOneRing
TheOneRing deleted the work/http_logger branch August 6, 2025 10:10
@openclouders openclouders mentioned this pull request Aug 6, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants