nghttp: Print error if all connect() syscall faild

This commit is contained in:
Tatsuhiro Tsujikawa 2015-06-18 18:03:25 +09:00
parent 39eb8b8a6b
commit 25d1de0278
1 changed files with 2 additions and 0 deletions

View File

@ -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);