control end close message
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
8667d68c6f
commit
0812dc79b8
2 changed files with 9 additions and 0 deletions
|
|
@ -1133,6 +1133,10 @@ impl Connection {
|
|||
Some(Instant::now().into()),
|
||||
);
|
||||
}
|
||||
Some(misc::Union::CloseReason(_)) => {
|
||||
self.on_close("Peer close", true);
|
||||
return false;
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
_ => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue