~ne02ptzero/pistache

76b5e1ad0d9c71fa46fef037c7002619ea282014 — Louis Solofrizzo 2 months ago de68bc3 work/louis/async_ssl
ssl: Enable partial write on SSL context

This patch enables the partial write mode on the SSL server context,
giving us "normal" behavior on non-blocking sockets.

Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
1 files changed, 1 insertions(+), 0 deletions(-)

M src/server/listener.cc
M src/server/listener.cc => src/server/listener.cc +1 -0
@@ 138,6 138,7 @@ namespace Pistache::Tcp
                throw std::runtime_error(err);
            }

            SSL_CTX_set_mode(GetSSLContext(ctx), SSL_MODE_ENABLE_PARTIAL_WRITE);
            return ctx;
        }