mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
WIP: aquatic_ws: continue work on simplifying network code
This commit is contained in:
parent
91590858b9
commit
05844e9645
3 changed files with 66 additions and 93 deletions
|
|
@ -63,13 +63,16 @@ pub fn close_and_deregister_connection(
|
|||
connection: &mut Connection,
|
||||
){
|
||||
match connection.stage {
|
||||
ConnectionStage::Stream(ref mut stream) => {
|
||||
ConnectionStage::TcpStream(ref mut stream) => {
|
||||
/*
|
||||
poll.registry()
|
||||
.deregister(stream)
|
||||
.unwrap();
|
||||
*/
|
||||
},
|
||||
ConnectionStage::TlsStream(ref mut stream) => {
|
||||
|
||||
}
|
||||
ConnectionStage::TlsMidHandshake(ref mut handshake) => {
|
||||
/*
|
||||
poll.registry()
|
||||
|
|
@ -77,7 +80,7 @@ pub fn close_and_deregister_connection(
|
|||
.unwrap();
|
||||
*/
|
||||
},
|
||||
ConnectionStage::WsHandshake(ref mut handshake) => {
|
||||
ConnectionStage::WsMidHandshake(ref mut handshake) => {
|
||||
/*
|
||||
poll.registry()
|
||||
.deregister(handshake.get_mut().get_mut())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue