Update code

This commit is contained in:
Nick Peng
2018-11-03 21:46:16 +08:00
parent 9ef1a7a2ef
commit 307ebe234f
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -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: