tmoravec / fastjsonrpc Goto Github PK
View Code? Open in Web Editor NEWJSON-RPC server and client, written in Python using Twisted
License: Other
JSON-RPC server and client, written in Python using Twisted
License: Other
Use plain Agent instead in Twisted 14.0.0+
I built an rpc daemon based on the ssl_server.tac in the examples section. It works, but it doesn't seem to be able to work in parallel. I have one rpc call that can take 15 to 30 seconds to complete, and while that is running no other rpc calls are able to be processed by the daemon. I'm assuming there is something in twisted that could be changed to fix this, but I'm having trouble finding anything (first time using twisted).
Any advice?
Even though the documentation says otherwise, there is certificate validation check in 14.0.0:
[Failure instance: Traceback: <class 'OpenSSL.SSL.Error'>: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
Also, WebClientContextFactory was replaced with BrowserLikePolicyForHTTPS, which does the same.
Tests fail under Twisted 14.0.0.
The Request object used by twisted.web.client.Agent automatically sets the Content-Length header, so adding a Content-Length header in Proxy.callRemote will cause some HTTP servers to reject the message, as having 2 Content-Length values is not proper HTTP.
Hi,
im sorry for this maybe stupid question but when i try to run the example code for examples/ssl_server.tac the program finished after maybe 2 seconds. no output, no errors. i replaced the cert & key file with my own.
Do you have any idea ?
Or at least faster? I assume the reference implementation was txJSON-RPC.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.