Skip to content

Apply copied RPC credentials and timeouts - #236

Open
tolgahanbozkurt wants to merge 1 commit into
Beldex-Coin:devfrom
tolgahanbozkurt:fix/wallet-http-settings
Open

tolgahanbozkurt wants to merge 1 commit into
Beldex-Coin:devfrom
tolgahanbozkurt:fix/wallet-http-settings

Conversation

@tolgahanbozkurt

Copy link
Copy Markdown

Wallet long polling copies the daemon connection settings into a second HTTP client. The copy updates the stored credentials and timeout but never applies them to the HTTP session. This causes 401 responses from authenticated daemons and lets an existing session retain old credentials or timeouts.

Apply the copied settings before the next request, and return immediately on self-copy to avoid locking the same mutex twice.

Validated with the real HTTP client and a local HTTP server: copied, replaced and cleared credentials, timeout changes, and self-copy all pass. The original code fails the five request cases and hangs on self-copy.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: e6ebf7eb-2d81-457a-94b3-846a5ac86c07

📥 Commits

Reviewing files that changed from the base of the PR and between 4cd63fd and a4b710f.

📒 Files selected for processing (1)
  • src/rpc/http_client.cpp

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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