Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: Constrain worker channel size
Merged did:key:z6MksFqX...wzpT opened 1 year ago

To avoid buffering large amounts of data in the process, we set the worker channel size to 1. Keep in mind that this is one ChannelEvent, not one byte. ChannelEvent::Data can already contain an arbitrary amount of data via its Vec<u8>.

This forces the worker to block as long as no one is reading data on the other side.

We also remove an unused function, and move the flushing to the ChannelFlushWriter.

did:key:z6MksFqX...wzpT opened with revision 24d407f6 on base f7d8f1b8 +4 -24 1 year ago

To avoid buffering large amounts of data in the process, we set the worker channel size to 1. Keep in mind that this is one ChannelEvent, not one byte. ChannelEvent::Data can already contain an arbitrary amount of data via its Vec<u8>.

This forces the worker to block as long as no one is reading data on the other side.

We also remove an unused function, and move the flushing to the ChannelFlushWriter.

did:key:z6MksFqX...wzpT pushed revision 2 487aaff3 on base 38592955 +5 -20 1 year ago

Update.

did:key:z6MksFqX...wzpT merged revision 487aaff3 at a79ca5e8 1 year ago