Changeset 11957


Ignore:
Timestamp:
Feb 18, 2011, 12:43:49 AM (11 years ago)
Author:
jch
Message:

Don't attempt uTP connexions to peers learned from PEX that didn't signal support.

File:
1 edited

Legend:

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

    r11952 r11957  
    38543854    tr_bool utp = tr_sessionIsUTPEnabled(mgr->session) && !atom->utp_failed;
    38553855
     3856    if( atom->fromFirst == TR_PEER_FROM_PEX )
     3857        /* PEX has explicit signalling for uTP support.  If an atom
     3858           originally came from PEX and doesn't have the uTP flag, skip the
     3859           uTP connection attempt.  Are we being optimistic here? */
     3860        utp = utp && (atom->flags & ADDED_F_UTP_FLAGS);
     3861
    38563862    tordbg( t, "Starting an OUTGOING%s connection with %s",
    38573863            utp ? " µTP" : "",
Note: See TracChangeset for help on using the changeset viewer.