Changeset 2452


Ignore:
Timestamp:
Jul 21, 2007, 5:35:47 PM (15 years ago)
Author:
charles
Message:

fix looooong-standing bug that choked tracker connections

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r2343 r2452  
    330330
    331331    tr_lockLock( &gFd->lock );
    332     if( ( priority && gFd->reserved < TR_RESERVED_FDS ) ||
    333         ( !priority && gFd->normal < gFd->normalMax ) )
    334     {
     332
     333    if( priority && gFd->reserved >= TR_RESERVED_FDS )
     334        priority = FALSE;
     335
     336    if( priority || ( gFd->normal < gFd->normalMax ) )
    335337       if( ( s = socket( AF_INET, type, 0 ) ) < 0 )
    336        {
    337338           tr_err( "Could not create socket (%s)", strerror( errno ) );
    338        }
    339     }
     339
    340340    if( s > -1 )
    341341    {
  • trunk/libtransmission/torrent.c

    r2441 r2452  
    970970    }
    971971
     972    h->torrentCount--;
     973
     974    fprintf(stderr, "closing torrent %s... %d torrents left",
     975            tor->info.name, h->torrentCount );
     976
    972977    tr_free( tor );
    973 
    974     h->torrentCount--;
    975978
    976979    tr_sharedUnlock( h->shared );
Note: See TracChangeset for help on using the changeset viewer.