fix tls close_notify error, empty data packet spam, compilation errors

This commit is contained in:
Toshit Chawda 2024-08-24 22:29:16 -07:00
parent 6f0e1e7feb
commit 028c0c1332
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
4 changed files with 111 additions and 23 deletions

View file

@ -269,8 +269,8 @@ impl EpoxyClient {
return Err(EpoxyError::WebSocketConnectFailed);
}
Ok((
Box::new(read) as Box<dyn WebSocketRead + Send + Sync>,
Box::new(write) as Box<dyn WebSocketWrite + Send + Sync>,
Box::new(read) as Box<dyn WebSocketRead + Send>,
Box::new(write) as Box<dyn WebSocketWrite + Send>,
))
})
}),
@ -311,8 +311,8 @@ impl EpoxyClient {
};
Ok((
Box::new(read) as Box<dyn WebSocketRead + Send + Sync>,
Box::new(write) as Box<dyn WebSocketWrite + Send + Sync>,
Box::new(read) as Box<dyn WebSocketRead + Send>,
Box::new(write) as Box<dyn WebSocketWrite + Send>,
))
}))
}),