From 25d1de0278feaaa4c87ad102affa30a1039b007e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 18 Jun 2015 18:03:25 +0900 Subject: [PATCH] nghttp: Print error if all connect() syscall faild --- src/nghttp.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nghttp.cc b/src/nghttp.cc index e4921054..fecec9e5 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -2036,6 +2036,8 @@ int communicate( client.record_domain_lookup_end_time(); if (client.initiate_connection() != 0) { + std::cerr << "[ERROR] Could not connect to " << host << ", port " << port + << std::endl; goto fin; } ev_run(loop, 0);