Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and clarify the JSON-RPC queue full behaviour #809

Merged
merged 5 commits into from
Jun 23, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jun 23, 2023

Close #804

This fixes a change in behavior that was accidentally introduced in #793, and clarifies everywhere that "queue full" means "maximum number of pending requests reached".


cc @lexnv and maybe @skunert

This PR changes nothing compared to the previously released version (it fixes a bug in a PR made yesterday), but clarifies that the "queue full" error potentially returned by json_rpc_request simply means that Config::max_pending_requests has been reached.

For your specific use case, passing max_pending_requests: u32::max_value() (and same for the max subscriptions option) is the most appropriate.

@tomaka tomaka added this pull request to the merge queue Jun 23, 2023
Merged via the queue into smol-dot:main with commit f49ce4e Jun 23, 2023
@tomaka tomaka deleted the fix-804 branch June 23, 2023 15:41
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.

JSON-RPC queue is full too often
1 participant