Changeset 11952


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

Try uTP connections by default.

File:
1 edited

Legend:

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

    r11950 r11952  
    38523852    tr_peerIo * io;
    38533853    const time_t now = tr_time( );
    3854     tr_bool utp = FALSE;
    3855 
    3856     /* Eventually, we'll want this to do something smart, like trying µTP
    3857        first and eventually falling back to TCP.  For now, only open µTP
    3858        connections if we have good reasons to believe the peer knows about
    3859        ÂµTP. */
    3860 
    3861     utp =
    3862         tr_sessionIsUTPEnabled(mgr->session) &&
    3863         (atom->flags & ADDED_F_UTP_FLAGS);
     3854    tr_bool utp = tr_sessionIsUTPEnabled(mgr->session) && !atom->utp_failed;
    38643855
    38653856    tordbg( t, "Starting an OUTGOING%s connection with %s",
Note: See TracChangeset for help on using the changeset viewer.