You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2018/05/31 21:02:11 UTC

[trafficserver] branch master updated: Log the errno from the connect failure.

This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e0e32c3  Log the errno from the connect failure.
e0e32c3 is described below

commit e0e32c3623dad1f1087a9a24c39b037881eb8e44
Author: Susan Hinrichs <sh...@apache.org>
AuthorDate: Thu May 31 15:09:46 2018 -0500

    Log the errno from the connect failure.
---
 proxy/http/HttpSM.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index ef53732..918a2b0 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -5148,8 +5148,10 @@ HttpSM::mark_host_failure(HostDBInfo *info, time_t time_down)
   if (info->app.http_data.last_failure == 0) {
     char *url_str = t_state.hdr_info.client_request.url_string_get(&t_state.arena, nullptr);
     Log::error("CONNECT: could not connect to %s "
-               "for '%s' (setting last failure time)",
-               ats_ip_ntop(&t_state.current.server->dst_addr.sa, addrbuf, sizeof(addrbuf)), url_str ? url_str : "<none>");
+               "for '%s' (setting last failure time) connect_result=%d",
+               ats_ip_ntop(&t_state.current.server->dst_addr.sa, addrbuf, sizeof(addrbuf)), url_str ? url_str : "<none>",
+               t_state.current.server->connect_result);
+
     if (url_str) {
       t_state.arena.str_free(url_str);
     }

-- 
To stop receiving notification emails like this one, please contact
shinrich@apache.org.