Merge pull request #1705 from nghttp2/nghttp-ktls-fix

nghttp: Fix ktls support
This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-08 11:56:53 +09:00 committed by GitHub
commit a20cc23a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -677,7 +677,6 @@ int HttpClient::initiate_connection() {
return -1; return -1;
} }
SSL_set_fd(ssl, fd);
SSL_set_connect_state(ssl); SSL_set_connect_state(ssl);
// If the user overrode the :authority or host header, use that // If the user overrode the :authority or host header, use that
@ -878,6 +877,8 @@ int HttpClient::connected() {
ev_timer_stop(loop, &wt); ev_timer_stop(loop, &wt);
if (ssl) { if (ssl) {
SSL_set_fd(ssl, fd);
readfn = &HttpClient::tls_handshake; readfn = &HttpClient::tls_handshake;
writefn = &HttpClient::tls_handshake; writefn = &HttpClient::tls_handshake;