You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
Currently the maximum message size Crust allows to send is 2 MB. The limit is there for a reason: we don't want upper layers to put too big TCP packets on the stream because it would simply clog the line. Basically this is head-of-line blocking problem. Crust users might and should not be aware of it - we strive for simplicity.
Design the changes so that Service::send(msg_100mb) would not delay Service::send(msg_10kb) delivery for too long.
Solution
Crust should fragment the data it's given before sending over TCP.
Then on the other side packets should be defragmented, buffered and proper crust events dispatched when a full packet arrives.
The Problem
Currently the maximum message size Crust allows to send is 2 MB. The limit is there for a reason: we don't want upper layers to put too big TCP packets on the stream because it would simply clog the line. Basically this is head-of-line blocking problem. Crust users might and should not be aware of it - we strive for simplicity.
Design the changes so that
Service::send(msg_100mb)
would not delayService::send(msg_10kb)
delivery for too long.Solution
The text was updated successfully, but these errors were encountered: