The old code was using zero n_tries to detect the first connection
attempt,
but n_tries is not incremented when we are opening a new connection
rather
than reusing an old one. Perhaps n_tries should be updated differently
as
well, but this change simply makes %<tt (hier.total_response_time)
management
independent from that [complex] counter.
debugs(17, 3, "fwdConnectStart: " << entry->url());
- if (n_tries == 0) // first attempt
+ if (!request->hier.first_conn_start.tv_sec) // first attempt
request->hier.first_conn_start = current_time;
/* connection timeout */