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

jsonrpc: always reply to requests that have an 'id' #2499

Merged
merged 2 commits into from Jun 7, 2019

Conversation

uwiger
Copy link
Member

@uwiger uwiger commented Jun 7, 2019

See PT #166537135

In JSON-RPC, the client indicates that a request is synchronous by including an "id" (some locally unique number). In this case, even if the method callback returns no_reply, the handler should reply something, or the client is likely to block 'forever'. We choose to reply "ok".

To test this change, the signing reply operation in aehttp_integration_SUITE was changed into a synchronous call. This made tests time out and fail before this fix was applied.

lucafavatella
lucafavatella previously approved these changes Jun 7, 2019
Copy link
Contributor

@lucafavatella lucafavatella left a comment

Choose a reason for hiding this comment

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

Worth a line in release notes (/docs/release-notes/next/) so users are aware of this fix in API?

@uwiger uwiger merged commit b01d53d into master Jun 7, 2019
@uwiger uwiger deleted the PT-166537135-json-rpc-calling-asynch-methods branch June 7, 2019 11:03
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.

None yet

3 participants