lbryio / lbry.go

MIT License
29 stars 20 forks source link

Handle short reads in stream encoder #88

Open lyoshenka opened 3 years ago

lyoshenka commented 3 years ago

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.