Do shuflen TLS_WANT only for tls_write. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit fe5c840d34c12bc38be14397144731b9f46ecec8 DIR parent d1bda986e611c9ca93670ffa2d10aae178fb2067 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 12 Aug 2023 20:39:57 +0200 Do shuflen TLS_WANT only for tls_write. Diffstat: M main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/main.c b/main.c @@ -1128,10 +1128,10 @@ read_selector_again: shuflen = tls_read(tlsclientctx, shufbuf, sizeof(shufbuf)-1); - } - if (shuflen == TLS_WANT_POLLIN \ - || shuflen == TLS_WANT_POLLOUT) { - continue; + if (shuflen == TLS_WANT_POLLIN \ + || shuflen == TLS_WANT_POLLOUT) { + continue; + } } if (shuflen == -1 && errno == EINTR) continue;