sofastack / sofa-bolt-python Goto Github PK
View Code? Open in Web Editor NEWThe Python implementation of the SOFABolt protocol.
License: Apache License 2.0
The Python implementation of the SOFABolt protocol.
License: Apache License 2.0
Mosn do not support multiple process natively, register to mosn multiple times from different process may cause weird behaviors.
Java bolt client might send null in sofa header, which encoded as -1(\xff\xff\xff\xff) in bytestream.
will cause anthunder infinite loop (<0.5.5) or raise DecodeError (0.5.5)
Did this library support for JSON serialization or Hessian serialization?
Another question, could this library communicate via sofa-rpc with backend server in Java?
我在运行README.md中的server demo的时候,一直提示mesh_client客户端http://127.0.0.1:13330的访问被拒绝,这个还是写死的;
base_listener.py中的
self._mesh_client.startup()
Support bolt v2 codec.
the mainly change in bolt v2 is to support optional crc32 verification.
Spec:
Request command protocol for v2
** request definition **
0 1 2 4 6 8 10 11 12 14 16
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------+-----+-----+-----+-----+
|proto| ver1|type | cmdcode |ver2 | requestId |codec|switch| timeout |
+-----------+-----------+-----------+-----------+-----------+------------+-----------+-----------+
|classLen |headerLen |contentLen | ... |
+-----------+-----------+-----------+-----------+ +
| className + header + content bytes |
+ +
| ... ... | CRC32(optional) |
+------------------------------------------------------------------------------------------------+
Response command protocol for v2
** response definition **
0 1 2 3 4 6 8 10 11 12 14 16
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------+-----+-----+-----+-----+
|proto| ver1| type| cmdcode |ver2 | requestId |codec|switch|respstatus | classLen |
+-----------+-----------+-----------+-----------+-----------+------------+-----------+-----------+
|headerLen | contentLen | ... |
+-----------------------------------+ +
| className + header + content bytes |
+ +
| ... ... | CRC32(optional) |
+------------------------------------------------------------------------------------------------+
respstatus: response status
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.