remove burdensome spammage

This commit is contained in:
David Rose 2007-10-08 16:11:24 +00:00
parent 8764bdcda0
commit 40314b8e1b

View File

@ -405,11 +405,13 @@ run() {
return repeat_later; return repeat_later;
} }
/*
if (downloader_cat.is_spam()) { if (downloader_cat.is_spam()) {
downloader_cat.spam() downloader_cat.spam()
<< "begin run(), _state = " << _state << ", _done_state = " << "begin run(), _state = " << _state << ", _done_state = "
<< _done_state << "\n"; << _done_state << "\n";
} }
*/
if (_state == _done_state) { if (_state == _done_state) {
return reached_done_state(); return reached_done_state();
@ -460,10 +462,12 @@ run() {
_connect_count++; _connect_count++;
} }
/*
if (downloader_cat.is_spam()) { if (downloader_cat.is_spam()) {
downloader_cat.spam() downloader_cat.spam()
<< "continue run(), _state = " << _state << "\n"; << "continue run(), _state = " << _state << "\n";
} }
*/
switch (_state) { switch (_state) {
case S_try_next_proxy: case S_try_next_proxy:
@ -560,11 +564,13 @@ run() {
thread_consider_yield(); thread_consider_yield();
} while (!repeat_later || _bio.is_null()); } while (!repeat_later || _bio.is_null());
/*
if (downloader_cat.is_spam()) { if (downloader_cat.is_spam()) {
downloader_cat.spam() downloader_cat.spam()
<< "later run(), _state = " << _state << "later run(), _state = " << _state
<< ", _done_state = " << _done_state << "\n"; << ", _done_state = " << _done_state << "\n";
} }
*/
thread_yield(); thread_yield();
return true; return true;
@ -785,11 +791,13 @@ downcase(const string &s) {
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
bool HTTPChannel:: bool HTTPChannel::
reached_done_state() { reached_done_state() {
/*
if (downloader_cat.is_spam()) { if (downloader_cat.is_spam()) {
downloader_cat.spam() downloader_cat.spam()
<< "terminating run(), _state = " << _state << "terminating run(), _state = " << _state
<< ", _done_state = " << _done_state << "\n"; << ", _done_state = " << _done_state << "\n";
} }
*/
if (_state == S_failure) { if (_state == S_failure) {
// We had to give up. Each proxy we tried, in sequence, failed. // We had to give up. Each proxy we tried, in sequence, failed.