From 9985f6c6309bdaabf09f266432847e09642d749a Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 29 Dec 2020 00:23:50 +0000 Subject: [PATCH] openssl s/connect/accept --- actix-tls/src/accept/openssl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-tls/src/accept/openssl.rs b/actix-tls/src/accept/openssl.rs index 054a5582..44877b24 100644 --- a/actix-tls/src/accept/openssl.rs +++ b/actix-tls/src/accept/openssl.rs @@ -115,7 +115,7 @@ impl Future for AcceptorServiceResponse { type Output = Result, SslError>; fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { - ready!(Pin::new(self.stream.as_mut().unwrap()).poll_connect(cx))?; + ready!(Pin::new(self.stream.as_mut().unwrap()).poll_accept(cx))?; Poll::Ready(Ok(self.stream.take().expect("SSL connect has resolved."))) } }