Changeset 4168
- Timestamp:
- Dec 13, 2007, 11:43:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/tracker.c
r4166 r4168 40 40 /* maximum number of concurrent tracker socket connections */ 41 41 MAX_TRACKER_SOCKETS = 16, 42 43 /* maximum number of concurrent tracker socket connections during shutdown. 44 * all the peer connections should be gone by now, so we can hog more 45 * connections to send `stop' messages to the trackers */ 46 MAX_TRACKER_SOCKETS_DURING_SHUTDOWN = 64, 42 47 43 48 /* unless the tracker says otherwise, rescrape this frequently */ … … 871 876 socketIsAvailable( tr_handle * handle ) 872 877 { 873 int max = MAX_TRACKER_SOCKETS;874 if( handle->tracker->isShuttingDown )875 max *= 2;878 const int max = handle->tracker->isShuttingDown 879 ? MAX_TRACKER_SOCKETS_DURING_SHUTDOWN 880 : MAX_TRACKER_SOCKETS; 876 881 return handle->tracker->socketCount < max; 877 882 }
Note: See TracChangeset
for help on using the changeset viewer.