I'm receiving buffers through a stream and I'm concerned that a malicious peer could stream /dev/urandom until my hard drive is full. Is there a way to enforce a maximum item size? It looks like pull-reader or pull-block would allow me to count the bytes but my intuition is that this is a solved problem with an idiomatic solution.
I'm receiving buffers through a stream and I'm concerned that a malicious peer could stream
/dev/urandomuntil my hard drive is full. Is there a way to enforce a maximum item size? It looks like pull-reader or pull-block would allow me to count the bytes but my intuition is that this is a solved problem with an idiomatic solution.