Comments (1)
A question: In the Erlang world, it's more commonplace to use e.g. {packet, 4}
, adding some size bytes at the beginning of the message. This allows the receiver to know exactly how much to fetch, and eliminates the need for parsing to determine whether a complete message has arrived (which also opens some possibilities, e.g. when sending binary data which doesn't fit nicely inside JSON).
In Erlang, the size header processing is built in, so the user code only needs to pass the option when opening the socket. The socket logic then takes care of stripping the size header and delivering whole packets.
http://www.erlang.org/doc/man/inet.html#setopts-2
from rvi_core.
Related Issues (20)
- Javascript bridge needs to be cleaned up.
- Invalid/wrong device cert in credential throws warning, connection proceeds
- Cannot open device key protected by pass phrase
- Don't unregister services for a disconnected remote node that have already been re-registered. HOT 1
- Deadlock in service_discovery HOT 1
- Deadlock. HOT 3
- Service directory functions in service_edge HOT 1
- Backend configuration HOT 1
- rvi_common:get_static_node(Service) should return best-matching result
- RVI crashes on service invocation with malformed name
- Setting json_rpc as the internal RVI protocol creates crashes.
- Package URL 404'ing HOT 1
- rvi_0.4.0-1ubuntu1_amd64.deb missing runtime dependencies HOT 1
- Fix out of order execution on remote nodes
- escript is likely a build dependency HOT 4
- rebar compile error HOT 6
- Allow environment variables in node_service_prefix config.
- Services remain in service discovery after remote node disconnects. HOT 1
- Implement timeout notifications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvi_core.