Ignore:
Timestamp:
Feb 18, 2011, 12:40:38 AM (11 years ago)
Author:
jordan
Message:

call UTP_RBDrained when our read buffer is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11942 r11943  
    11351135        if( io->utp_socket != NULL ) /* utp peer connection */
    11361136        {
    1137             /* currently a noop. tr-utp's call to UTP_CheckTimeouts()
    1138              * keeps the pump primed, so no need to call UTP_RBDrained() */
     1137            /* UTP_RBDrained notifies libutp that your read buffer is emtpy.
     1138             * It opens up the congestion window by sending an ACK (soonish)
     1139             * if one was not going to be sent. */
     1140            if( evbuffer_get_length( io->inbuf ) == 0 )
     1141                UTP_RBDrained( io->utp_socket );
    11391142        }
    11401143        else /* tcp peer connection */
Note: See TracChangeset for help on using the changeset viewer.