massive performance++
This commit is contained in:
parent
551addfdf5
commit
43d208a39f
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ impl Connection {
|
|||
self.is_nb
|
||||
}
|
||||
pub fn set_nonblocking(&mut self, nonblocking: bool) -> io::Result<()> {
|
||||
if self.is_nb == nonblocking {
|
||||
return Ok(());
|
||||
}
|
||||
self.is_nb = nonblocking;
|
||||
(self.set_nonblocking_thunk)(self.data, nonblocking)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue