From c1c82b1a1a61830fdd06da874cd91acd9e2842c6 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 22 Jun 2019 15:22:53 +0800 Subject: [PATCH] http: fix keepalive for lws_serve_http_file --- src/http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/http.c b/src/http.c index e5d7026..38a94e3 100644 --- a/src/http.c +++ b/src/http.c @@ -155,6 +155,9 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, voi lws_callback_on_writable(wsi); break; + case LWS_CALLBACK_HTTP_FILE_COMPLETION: + goto try_to_reuse; + case LWS_CALLBACK_OPENSSL_PERFORM_CLIENT_CERT_VERIFICATION: if (!len || (SSL_get_verify_result((SSL *) in) != X509_V_OK)) { int err = X509_STORE_CTX_get_error((X509_STORE_CTX *) user); -- 2.43.4