-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
id incrementation and resetId() #191
Comments
Actually both. The increment implementation is missing, i will fix that. Thank you for mentioning this. |
I think it is a problem also for synchronous multithreaded clients. I think the server can receive two or more requests with the same identifier ! Regards, |
Well that is true, nevertheless it is still not a problem because all servers are currently working connection oriented, so for each client there is a separate socket. So there is no way to mix up requests with responses. |
I'm think it was a confusion of interpretation of JSONRPC protocol. I can tell you other example about this but the main idea is that many JSONRPC clients is not always imply many TCP connection... |
@requinham could you share your implementation of the MQTT connector? |
Hi,
I'm wrinting to you to inquire about the "id" management in RpcProtocolClient class.
The comment mention that : "The id starts at 1 and is incremented for each request. To reset this value to one, call the jsonrpc::RpcProRpcProtocolClient::resetId() method."
But no incrementation is done in this class and no resetId() method is provided !!
Can someone clarify this please, is ther because the requesting is synchronous or it's not coded yet ?
Thanks in advance.
/Mohamed
The text was updated successfully, but these errors were encountered: