| Do shuflen TLS_WANT only for tls_write. - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit fe5c840d34c12bc38be14397144731b9f46ecec8 | |
| parent d1bda986e611c9ca93670ffa2d10aae178fb2067 | |
| Author: Christoph Lohmann <[email protected]> | |
| 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(-) | |
| --- | |
| diff --git a/main.c b/main.c | |
| @@ -1128,10 +1128,10 @@ read_selector_again: | |
| shuflen = tls_read(tls… | |
| shufbuf, | |
| sizeof(shufbuf… | |
| - } | |
| - if (shuflen == TLS_WANT_POLLIN… | |
| - || shuflen == … | |
| - continue; | |
| + if (shuflen == TLS_WAN… | |
| + || shu… | |
| + continue; | |
| + } | |
| } | |
| if (shuflen == -1 && errno == … | |
| continue; |