@@ -3,8 +3,7 @@ use std::{cell::RefCell, future::Future, rc::Rc};
33use ntex:: codec:: { AsyncRead , AsyncWrite } ;
44use ntex:: connect:: { self , Address , Connect , Connector } ;
55use ntex:: framed:: { ReadTask , State , WriteTask } ;
6- use ntex:: service:: Service ;
7- use ntex:: util:: ByteString ;
6+ use ntex:: { service:: Service , time:: Seconds , util:: ByteString } ;
87
98#[ cfg( feature = "openssl" ) ]
109use ntex:: connect:: openssl:: { OpensslConnector , SslConnector } ;
@@ -131,7 +130,7 @@ where
131130 async move {
132131 let io = fut. await ?;
133132
134- let state = State :: with_params ( read_hw, write_hw, lw, 0 ) ;
133+ let state = State :: with_params ( read_hw, write_hw, lw, Seconds :: ZERO ) ;
135134 let io = Rc :: new ( RefCell :: new ( io) ) ;
136135 ntex:: rt:: spawn ( ReadTask :: new ( io. clone ( ) , state. clone ( ) ) ) ;
137136 ntex:: rt:: spawn ( WriteTask :: new ( io, state. clone ( ) ) ) ;
@@ -162,7 +161,7 @@ where
162161 async move {
163162 let io = fut. await ?;
164163
165- let state = State :: with_params ( read_hw, write_hw, lw, 0 ) ;
164+ let state = State :: with_params ( read_hw, write_hw, lw, Seconds :: ZERO ) ;
166165 let io = Rc :: new ( RefCell :: new ( io) ) ;
167166 ntex:: rt:: spawn ( ReadTask :: new ( io. clone ( ) , state. clone ( ) ) ) ;
168167 ntex:: rt:: spawn ( WriteTask :: new ( io, state. clone ( ) ) ) ;
0 commit comments