fix memory leak in closing connections
This commit is contained in:
parent
b0d74880dd
commit
de3248c3c6
7 changed files with 98 additions and 42 deletions
|
|
@ -139,7 +139,9 @@ where
|
|||
self.change_protocol(&protocol);
|
||||
break 'outer;
|
||||
}
|
||||
Err(err) if err.kind() == ErrorKind::UnexpectedEof => return Ok(()),
|
||||
Err(err) if err.kind() == ErrorKind::UnexpectedEof => {
|
||||
increment_counter(self.counter);
|
||||
return Ok(())},
|
||||
Err(e) => return Err(e),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue