Skip to content

Commit

Permalink
fix: allow to read
Browse files Browse the repository at this point in the history
Signed-off-by: Florentin Dubois <[email protected]>
  • Loading branch information
FlorentinDUBOIS committed Oct 21, 2023
1 parent f89c770 commit 70a944c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ impl SocketHandler for FrontRustls {
while !self.session.wants_read() {
match self.session.reader().read(&mut buf[size..]) {
Ok(0) => break,
Ok(sz) => size += sz,
Ok(sz) => {
size += sz;
can_read = true;
},
Err(e) => match e.kind() {
ErrorKind::WouldBlock => {
break;
Expand Down

0 comments on commit 70a944c

Please sign in to comment.