From 303a2391f6c5a4d606da02b52b4831de6ee1729b Mon Sep 17 00:00:00 2001 From: lxsang Date: Sat, 27 Oct 2018 16:21:12 +0200 Subject: [PATCH] fix read write pb --- libs/handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/handle.c b/libs/handle.c index d538615..799d056 100644 --- a/libs/handle.c +++ b/libs/handle.c @@ -319,12 +319,12 @@ int antd_recv(void *src, void* data, int len) while (readlen > 0 )//&& source->attempt < MAX_ATTEMPT { received = recv(((int) source->sock), ptr+read, readlen, 0); - LOG("Read : %c\n", *ptr); + //LOG("Read : %c\n", *ptr); if (received > 0) { read += received; readlen = (len - read) > BUFFLEN?BUFFLEN:(len-read); - LOG("Read len is %d\n", readlen); + //LOG("Read len is %d\n", readlen); } else if(errno != EAGAIN && errno != EWOULDBLOCK) {