Browse Source

print more details

pull/4/merge
Max Lv 11 years ago
parent
commit
1b40425bd1
1 changed files with 5 additions and 0 deletions
  1. 5
      src/server.c

5
src/server.c

@ -335,6 +335,10 @@ static void server_resolve_cb(EV_P_ ev_timer *watcher, int revents) {
return; return;
} }
if (verbose) {
LOGD("asyncns resolved.");
}
ev_timer_stop(EV_A_ watcher); ev_timer_stop(EV_A_ watcher);
err = asyncns_getaddrinfo_done(asyncns, query, &result); err = asyncns_getaddrinfo_done(asyncns, query, &result);
@ -344,6 +348,7 @@ static void server_resolve_cb(EV_P_ ev_timer *watcher, int revents) {
} else { } else {
struct remote *remote = connect_to_remote(result, server->timeout); struct remote *remote = connect_to_remote(result, server->timeout);
if (remote == NULL) { if (remote == NULL) {
LOGE("connect error.");
close_and_free_server(EV_A_ server); close_and_free_server(EV_A_ server);
return; return;
} }

Loading…
Cancel
Save