Skip to content

Commit

Permalink
http: fix keepalive for lws_serve_http_file
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jun 22, 2019
1 parent 7901265 commit c1c82b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c1c82b1

Please sign in to comment.