}
static void
-tau_tracker_upkeep (struct tau_tracker * tracker)
+tau_tracker_upkeep_ex (struct tau_tracker * tracker,
+ bool timeout_reqs)
{
const time_t now = tr_time ();
const bool closing = tracker->close_at != 0;
return;
}
- tau_tracker_timeout_reqs (tracker);
+ if (timeout_reqs)
+ tau_tracker_timeout_reqs (tracker);
if ((tracker->addr != NULL) && (tracker->connection_expiration_time > now))
tau_tracker_send_reqs (tracker);
}
+static void
+tau_tracker_upkeep (struct tau_tracker * tracker)
+{
+ tau_tracker_upkeep_ex (tracker, true);
+}
+
/****
*****
***** SESSION
response_func,
user_data);
tr_ptrArrayAppend (&tracker->announces, r);
- tau_tracker_upkeep (tracker);
+ tau_tracker_upkeep_ex (tracker, false);
}
void
response_func,
user_data);
tr_ptrArrayAppend (&tracker->scrapes, r);
- tau_tracker_upkeep (tracker);
+ tau_tracker_upkeep_ex (tracker, false);
}
char * url = tier->currentTracker->scrape;
const uint8_t * hash = tier->tor->info.hash;
+ assert (url != NULL);
+
/* if there's a request with this scrape URL and a free slot, use it */
for (j=0; j<request_count; ++j)
{