From: Shuanglei Tao Date: Sat, 22 Jun 2019 07:22:53 +0000 (+0800) Subject: http: fix keepalive for lws_serve_http_file X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=c1c82b1a1a61830fdd06da874cd91acd9e2842c6;p=ttyd.git http: fix keepalive for lws_serve_http_file --- 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);