Skip to content

Commit c0e4638

Browse files
committed
Fixes
1 parent 3ec290c commit c0e4638

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/h1_remote_connection/inner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1919
impl<TNetworkReadPart: NetworkStreamReadPart + Send + Sync + 'static>
@@ -82,7 +82,7 @@ impl<
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,

src/h1_remote_connection/remote_connection.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)