Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If t.Length is nil the client won't work #17

Open
LeonardoKaftal opened this issue Aug 11, 2024 · 0 comments
Open

If t.Length is nil the client won't work #17

LeonardoKaftal opened this issue Aug 11, 2024 · 0 comments

Comments

@LeonardoKaftal
Copy link

Some torrent file in their bencode does not have specified the Length value, (the one wich specify how many bytes the download will be), this mean that the client won't work because it won't allocate any bytes (0 bytes) for piece buffer.
Another problem is that if t.Length is 0 it won't be calculated the correct piece length for every piece work because calculateBoundForPiece() is also based on t.Length.
Another problem as other as already said is that if t.Length is very big like 16 gb the client can't simply download the torrent, it should write on disk every piece it download instead,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant