Neater error for tcp connect problems.

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@415 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
wouter 2007-06-21 11:35:12 +00:00
parent e71fb81ddf
commit ccb373bc2b
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
- cleanup slumber list of runnable states.
- module_subreq_depth fails to work in slumber list.
- fixup query release for cached results to sub targets.
- neater error for tcp connection failure, shows addr in verbose.
20 June 2007: Wouter
- new -C option to enable coredumps after forking away.

View File

@ -1053,6 +1053,8 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error,
struct serviced_query* sq = (struct serviced_query*)arg;
struct comm_reply r2;
sq->pending = NULL; /* removed after this callback */
if(error != NETEVENT_NOERROR && verbosity >= VERB_DETAIL)
log_addr("tcp error for address", &sq->addr, sq->addrlen);
if(error==NETEVENT_NOERROR && LDNS_RCODE_WIRE(ldns_buffer_begin(
c->buffer)) == LDNS_RCODE_FORMERR &&
sq->status == serviced_query_TCP_EDNS) {