torrent: reduce network packet size, to increase network responsiveness (#4910)

This commit is contained in:
Alex Sharov 2022-08-03 09:39:08 +07:00 committed by GitHub
parent 311d18ae92
commit db0c4e9d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,7 @@ const DefaultPieceSize = 2 * 1024 * 1024
// DefaultNetworkChunkSize - how much data request per 1 network call to peer.
// default: 16Kb
// TODO: can we increase this value together with --torrent.upload.rate ?
const DefaultNetworkChunkSize = DefaultPieceSize
const DefaultNetworkChunkSize = 1 * 1024 * 1024
type Cfg struct {
*torrent.ClientConfig