128 works even better
This commit is contained in:
parent
371d1ff927
commit
04d8b5f7c8
1 changed files with 2 additions and 1 deletions
|
|
@ -1277,7 +1277,8 @@ impl PeerHandler {
|
||||||
trace!("we are unchoked");
|
trace!("we are unchoked");
|
||||||
self.locked.write().i_am_choked = false;
|
self.locked.write().i_am_choked = false;
|
||||||
self.unchoke_notify.notify_waiters();
|
self.unchoke_notify.notify_waiters();
|
||||||
self.requests_sem.add_permits(64);
|
// TODO: compute this better than hard coding.
|
||||||
|
self.requests_sem.add_permits(128);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_received_piece(&self, piece: Piece<ByteBuf>) -> anyhow::Result<()> {
|
fn on_received_piece(&self, piece: Piece<ByteBuf>) -> anyhow::Result<()> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue