panda - downloader now logs the start of all http requests (method and url) and reports url for connection timeouts

This commit is contained in:
Ken Patel 2010-09-28 23:22:35 +00:00
parent fbd5477d7b
commit 0949ebd92a
1 changed files with 7 additions and 1 deletions

View File

@ -1079,7 +1079,9 @@ run_connecting_wait() {
// Time to give up.
downloader_cat.info()
<< "Timeout connecting to "
<< _request.get_url().get_server_and_port() << ".\n";
<< _request.get_url().get_server_and_port()
<< " for " << _request.get_url()
<< ".\n";
_status_entry._status_code = SC_timeout;
_state = S_try_next_proxy;
return false;
@ -2442,6 +2444,10 @@ void HTTPChannel::
begin_request(HTTPEnum::Method method, const DocumentSpec &url,
const string &body, bool nonblocking,
size_t first_byte, size_t last_byte) {
downloader_cat.info()
<< method << " " << url << "\n";
reset_for_new_request();
_wanted_nonblocking = nonblocking;