kinode-dao / kit

Development toolkit for Kinode OS
Apache License 2.0
11 stars 3 forks source link

bug: can overflow buffer and block #145

Closed nick1udwig closed 1 month ago

nick1udwig commented 1 month ago

Describe the bug

We hold output from nodes in a pipe and then print on error. However, if this output is large (e.g. if user puts node verbosity at 3) then this pipe buffer can be maxed out which will mysteriously block

https://github.com/kinode-dao/kit/blob/25b474abec180f6ae63b3f2c13f459a180b5be73/src/boot_fake_node/mod.rs#L329-L330

Expected behavior Don't block