mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
Fixed broken build on wrong variable usage (#440)
This commit is contained in:
parent
8c89c90c50
commit
f8e5d7c6c1
@ -307,11 +307,11 @@ impl StreamHandlerType {
|
|||||||
let _ = io.set_nodelay(true);
|
let _ = io.set_nodelay(true);
|
||||||
let io = TcpStream::from_std(io, &Handle::default())
|
let io = TcpStream::from_std(io, &Handle::default())
|
||||||
.expect("failed to associate TCP stream");
|
.expect("failed to associate TCP stream");
|
||||||
self.settings.ssl_conn_add();
|
h.ssl_conn_add();
|
||||||
|
|
||||||
current_thread::spawn(TlsAcceptorExt::accept_async(acceptor, io).then(
|
current_thread::spawn(TlsAcceptorExt::accept_async(acceptor, io).then(
|
||||||
move |res| {
|
move |res| {
|
||||||
self.settings.ssl_conn_del();
|
h.ssl_conn_del();
|
||||||
match res {
|
match res {
|
||||||
Ok(io) => current_thread::spawn(HttpChannel::new(
|
Ok(io) => current_thread::spawn(HttpChannel::new(
|
||||||
h, io, peer, http2,
|
h, io, peer, http2,
|
||||||
@ -330,11 +330,11 @@ impl StreamHandlerType {
|
|||||||
let _ = io.set_nodelay(true);
|
let _ = io.set_nodelay(true);
|
||||||
let io = TcpStream::from_std(io, &Handle::default())
|
let io = TcpStream::from_std(io, &Handle::default())
|
||||||
.expect("failed to associate TCP stream");
|
.expect("failed to associate TCP stream");
|
||||||
self.settings.ssl_conn_add();
|
h.ssl_conn_add();
|
||||||
|
|
||||||
current_thread::spawn(SslAcceptorExt::accept_async(acceptor, io).then(
|
current_thread::spawn(SslAcceptorExt::accept_async(acceptor, io).then(
|
||||||
move |res| {
|
move |res| {
|
||||||
self.settings.ssl_conn_del();
|
h.ssl_conn_del();
|
||||||
match res {
|
match res {
|
||||||
Ok(io) => {
|
Ok(io) => {
|
||||||
let http2 = if let Some(p) =
|
let http2 = if let Some(p) =
|
||||||
@ -362,11 +362,11 @@ impl StreamHandlerType {
|
|||||||
let _ = io.set_nodelay(true);
|
let _ = io.set_nodelay(true);
|
||||||
let io = TcpStream::from_std(io, &Handle::default())
|
let io = TcpStream::from_std(io, &Handle::default())
|
||||||
.expect("failed to associate TCP stream");
|
.expect("failed to associate TCP stream");
|
||||||
self.settings.ssl_conn_add();
|
h.ssl_conn_add();
|
||||||
|
|
||||||
current_thread::spawn(ServerConfigExt::accept_async(acceptor, io).then(
|
current_thread::spawn(ServerConfigExt::accept_async(acceptor, io).then(
|
||||||
move |res| {
|
move |res| {
|
||||||
self.settings.ssl_conn_del();
|
h.ssl_conn_del();
|
||||||
match res {
|
match res {
|
||||||
Ok(io) => {
|
Ok(io) => {
|
||||||
let http2 = if let Some(p) =
|
let http2 = if let Some(p) =
|
||||||
|
Loading…
Reference in New Issue
Block a user