Comments (2)
From a security perspective, you want to avoid that an attacker with few resources can allocate a lot of the peer's resources.
Some questions that come to my mind. Regarding 1., can different streams of the same connection share a buffer or should each stream have an exclusive buffer?
An exclusive buffer would be quite taxing on the memory footprint of a connection. If you want the buffer to be big enough to store several max. size ILP packets, say 5, and there are max. 10 streams, the buffer size for a connection would be ~32kb * 5 * 10 = ~1.6Mb.
On the other hand, having a shared buffer for all streams of a connection is more efficient, but I assume also more complicated to implement.
from ilp-protocol-stream.
can different streams of the same connection share a buffer or should each stream have an exclusive buffer?
There isn't actually a buffer that's allocated until data comes in for the specific streams.
We can set a connection-level limit that's different than the sum of the max for the number of open streams. The question is what that limit should be to avoid letting attackers use too much of the server's resources.
from ilp-protocol-stream.
Related Issues (20)
- receiveTotal resolves before fulfillment is sent HOT 1
- Unable to establish connection, no packets meeting the minimum exchange precision of 3 digits made it through the path. HOT 1
- Probing/exchange rates are not a STREAM concern HOT 10
- An in-range update of @types/chai-as-promised is breaking the build 🚨 HOT 1
- Update connection.totalDelivered before outgoing_money
- Unique id per money event HOT 10
- Send-only mode HOT 5
- Stateless STREAM Server
- An in-range update of @types/webpack is breaking the build 🚨 HOT 7
- verifyReceipt function signature
- Connection Timeout HOT 1
- Inactivity Timeout HOT 1
- Connection Timeout HOT 1
- Server connection can't send money on 'connection' event HOT 11
- An in-range update of ilp-logger is breaking the build 🚨 HOT 6
- An in-range update of @types/node is breaking the build 🚨 HOT 29
- An in-range update of oer-utils is breaking the build 🚨 HOT 4
- Don't serialize JSON for logging unless debug is on HOT 1
- An in-range update of @types/sinon is breaking the build 🚨 HOT 2
- Try compiling using Assemblyscript? HOT 2
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 ilp-protocol-stream.