farsightsec / nmsg

network message encapsulation library
Apache License 2.0
30 stars 8 forks source link

Stop IO when output fails #152

Closed kadealicious closed 3 months ago

kadealicious commented 3 months ago

When an output fails, its io->stop will be set to true.

kadealicious commented 3 months ago

This solution works when at least one input attempts to write to the failed output. However, if all inputs are idle, even if an output fails we will spin forever. Is this a problem? It seems a little frustrating to have an input spin forever until it receives a message, only realizing the output is bad when it attempts to write.