diff --git a/src/Makefile b/src/Makefile index de75a54..67dc8e4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,7 +2,7 @@ BIN=smartdns OBJS_LIB=lib/rbtree.o lib/art.o lib/bitops.o OBJS=smartdns.o fast_ping.o dns_client.o dns_server.o dns.o util.o tlog.o conf.o dns_cache.o $(OBJS_LIB) -CFLAGS=-O2 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing +CFLAGS +=-O2 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing CFLAGS +=-Iinclude CFLAGS += -DBASE_FILE_NAME=\"$(notdir $<)\" CXXFLAGS=-O2 -Wall -std=c++11 diff --git a/src/dns_client.c b/src/dns_client.c index dae6a61..62962fd 100644 --- a/src/dns_client.c +++ b/src/dns_client.c @@ -1078,7 +1078,9 @@ static int _dns_client_socket_recv(SSL *ssl, void *buf, int num) ret = -1; break; case SSL_ERROR_SYSCALL: - tlog(TLOG_ERROR, "SSL syscall failed, %s, ", strerror(errno)); + if (errno != ECONNRESET) { + tlog(TLOG_ERROR, "SSL syscall failed, %s ", strerror(errno)); + } ret = -1; return ret; default: