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
1 changed files with 5 additions and 0 deletions

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