lbryio / lbryio/lbry.go

Handle short reads in stream encoder

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
31
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate Encoder.Next() and inspect how each read creates a blob. Verify that short reads are accumulated until a full blob is available or EOF is reached, while preserving the expected behavior at EOF.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.