]> Sergey Matveev's repositories - btrtrc.git/commit
Limit peer request data allocation
authorMatt Joiner <anacrolix@gmail.com>
Tue, 14 Feb 2023 01:46:23 +0000 (12:46 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 14 Feb 2023 01:46:49 +0000 (12:46 +1100)
commit2cb7121a93c7f534b9d78c98d0f3a3ab7e97043c
treefca64912921b5b98f8e482b4479812cbb1a40fe6
parentceb7b2443ab9f744c87bdaa4ac06268021ef208d
Limit peer request data allocation

This follows up from abb5cbc96e301a4ca1f5df698b105ae8553ce1e9. We currently limit how many requests peers can send us, but didn't really check that peers didn't make us allocate huge amounts of space to buffer their requests. I'm sure there's some rough edges here.
client.go
config.go
internal/alloclim/alloclim_test.go [new file with mode: 0644]
internal/alloclim/l.go [new file with mode: 0644]
internal/alloclim/r.go [new file with mode: 0644]
peerconn.go
test/leecher-storage.go
test/transfer_test.go