From 3b3ea8cac80081047b119e9c4a60c6b8b327c981 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 13 Mar 2018 06:16:11 +0000 Subject: [PATCH] Don't log orderly shutdowns, even at debug level. This is mostly because my jsexec includes debug output... and this is super-normal. --- src/sbbs3/js_socket.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/js_socket.c b/src/sbbs3/js_socket.c index 3b5e17dca4..2ff7683f71 100644 --- a/src/sbbs3/js_socket.c +++ b/src/sbbs3/js_socket.c @@ -120,7 +120,8 @@ static bool do_CryptFlush(js_socket_private_t *p) p->unflushed = 0; return true; } - GCES(ret, p, estr, "flushing data"); + if (ret != CRYPT_ERROR_COMPLETE) + GCES(ret, p, estr, "flushing data"); return false; } return true; @@ -180,7 +181,8 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i buf=((uint8_t *)buf) + copied; } else { - GCES(ret, p, estr, "popping data"); + if (ret != CRYPT_ERROR_COMPLETE) + GCES(ret, p, estr, "popping data"); if (total > 0) return total; do_js_close(p); @@ -216,7 +218,8 @@ static ptrdiff_t js_socket_sendsocket(js_socket_private_t *p, const void *msg, s msg=((uint8_t *)msg) + copied; } else { - GCES(ret, p, estr, "pushing data"); + if (ret != CRYPT_ERROR_COMPLETE) + GCES(ret, p, estr, "pushing data"); if(flush) do_CryptFlush(p); return total; -- GitLab