-
Notifications
You must be signed in to change notification settings - Fork 45
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
ServerProxy seems to revert to protocol version 1.0 after xmlrpc response #74
Comments
Hi, looking at the problem, there is a default protocol version 1.0 set after each call if there is no This limits the usage serverproxy for second and consecutive calls because the default version ( I'd propose a fix that would set protocolVersion to the pair |
If I'm understanding your proposed solution correctly, it would cause the protocol version set in ctor to be kept for consecutive requests. This seems like a sensible solution to the problem so I am all for it. |
I mean if we can't get any protocol version from the server response, it's the only reasonable course of action, since we already did a call to the server before validating the protocol version anyway. Commenting out the else branch in frpcxmlunarshaller.cc should also work. |
Hi. I've recently encountered an issue where a second call with number that's serialized into
<i8>
on ServerProxy object fails with error:Provided are server and client scripts used to simulate this behavior, run using python2:
Seems to me like fastrpc does not only fallback from using binary when communicating with xmlrpc server but also to a lower protocol version. This is backed up by the fact that making only the call with a large number does not fail, eg. this script runs fine:
Versions as reported by dpkg:
The text was updated successfully, but these errors were encountered: