geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit fe5c840d34c12bc38be14397144731b9f46ecec8
parent d1bda986e611c9ca93670ffa2d10aae178fb2067
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:
Mmain.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

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;