mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
uTP peers need tr_peerIoFlush() to work during the handshake phase.
This commit is contained in:
parent
f6a85cb16b
commit
9626aa4506
1 changed files with 5 additions and 0 deletions
|
@ -1156,6 +1156,11 @@ static int
|
|||
tr_peerIoTryWrite( tr_peerIo * io, size_t howmuch )
|
||||
{
|
||||
int n = 0;
|
||||
const size_t old_len = evbuffer_get_length( io->outbuf );
|
||||
dbgmsg( io, "in tr_peerIoTryWrite %zu", howmuch );
|
||||
|
||||
if( howmuch > old_len )
|
||||
howmuch = old_len;
|
||||
|
||||
if(( howmuch = tr_bandwidthClamp( &io->bandwidth, TR_UP, howmuch )))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue