nghttp: Print error if all connect() syscall faild
This commit is contained in:
parent
39eb8b8a6b
commit
25d1de0278
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue