File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub struct H1RemoteConnectionReadPart<
1313 TNetworkReadPart : NetworkStreamReadPart + Send + Sync + ' static ,
1414> {
1515 pub h1_reader : Mutex < Option < H1Reader < TNetworkReadPart > > > ,
16- disconnected : UnsafeValue < bool > ,
16+ disconnected : Box < UnsafeValue < bool > > ,
1717}
1818
1919impl < TNetworkReadPart : NetworkStreamReadPart + Send + Sync + ' static >
8282 write_part : write_half,
8383 read_half : H1RemoteConnectionReadPart {
8484 h1_reader : Mutex :: new ( Some ( H1Reader :: new ( read_part, HttpTimeouts :: default ( ) ) ) ) ,
85- disconnected : false . into ( ) ,
85+ disconnected : Box :: new ( false . into ( ) ) ,
8686 }
8787 . into ( ) ,
8888 ssh_session_handler,
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ impl RemoteConnection {
200200 ) -> bool {
201201 match & mut self . inner {
202202 RemoteConnectionInner :: Http1Direct ( connection) => {
203+ println ! ( "Disconnected: {}" , connection. is_disconnected( ) ) ;
203204 if connection. is_disconnected ( ) {
204205 return false ;
205206 }
You can’t perform that action at this time.
0 commit comments