lbry.go
lbry.go copied to clipboard
Handle short reads in stream encoder
In Encoder.Next(), every read creates a blob even if you only read one byte. Instead it should keep reading until it has a full blob's worth of data or hits EOF.