parent
9626134211
commit
554b8e3e0c
16
config.go
16
config.go
@ -50,13 +50,17 @@ type Config struct {
|
|||||||
// not altruistic, we'll upload slightly more than we download from each
|
// not altruistic, we'll upload slightly more than we download from each
|
||||||
// peer.
|
// peer.
|
||||||
Seed bool `long:"seed"`
|
Seed bool `long:"seed"`
|
||||||
// Events are data bytes sent in pieces. The burst must be large enough to
|
// Only applies to chunks uploaded to peers, to maintain responsiveness
|
||||||
// fit a whole chunk, which is usually 16 KiB.
|
// communicating local Client state to peers. Each limiter token
|
||||||
|
// represents one byte. The Limiter's burst must be large enough to fit a
|
||||||
|
// whole chunk, which is usually 16 KiB (see TorrentSpec.ChunkSize).
|
||||||
UploadRateLimiter *rate.Limiter
|
UploadRateLimiter *rate.Limiter
|
||||||
// The events are bytes read from connections. The burst must be bigger
|
// Rate limits all reads from connections to peers. Each limiter token
|
||||||
// than the largest Read performed on a Conn minus one. This is likely to
|
// represents one byte. The Limiter's burst must be bigger than the
|
||||||
// be the larger of the main read loop buffer (~4096), and the requested
|
// largest Read performed on a the underlying rate-limiting io.Reader
|
||||||
// chunk size (~16KiB).
|
// minus one. This is likely to be the larger of the main read loop buffer
|
||||||
|
// (~4096), and the requested chunk size (~16KiB, see
|
||||||
|
// TorrentSpec.ChunkSize).
|
||||||
DownloadRateLimiter *rate.Limiter
|
DownloadRateLimiter *rate.Limiter
|
||||||
|
|
||||||
// User-provided Client peer ID. If not present, one is generated automatically.
|
// User-provided Client peer ID. If not present, one is generated automatically.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user