1
0
Fork 0
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:
Jordan Lee 2011-02-18 00:40:01 +00:00
parent f6a85cb16b
commit 9626aa4506

View file

@ -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 )))
{