From adbdc6fcda0bfbf7b92bee0376f7fad417f4227e Mon Sep 17 00:00:00 2001 From: woe Date: Thu, 16 Jun 2022 14:41:04 +0200 Subject: [PATCH] Ignore SSL_R_SHORT_READ --- client_http.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client_http.hpp b/client_http.hpp index f14e3f3..06ef9ae 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -675,8 +675,10 @@ namespace SimpleWeb { auto lock = session->connection->handler_runner->continue_lock(); if(!lock) return; - +# define SSL_R_SHORT_READ 219 auto ec = ec_ == error::eof ? error_code() : ec_; + if((ec.value() & 0xff) == SSL_R_SHORT_READ) + ec = error_code(); if(!ec) { {