From 7858997c8f9e5e5fca4a920df3257782c14569ef Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 8 May 2022 11:07:33 +0900 Subject: [PATCH] nghttp: Fix ktls support --- src/nghttp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 46c777ea..e52e6825 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -677,7 +677,6 @@ int HttpClient::initiate_connection() { return -1; } - SSL_set_fd(ssl, fd); SSL_set_connect_state(ssl); // If the user overrode the :authority or host header, use that @@ -878,6 +877,8 @@ int HttpClient::connected() { ev_timer_stop(loop, &wt); if (ssl) { + SSL_set_fd(ssl, fd); + readfn = &HttpClient::tls_handshake; writefn = &HttpClient::tls_handshake;