mirror of https://github.com/fafhrd91/actix-web
Don't DISCONNECT from stream when reader is empty
This commit is contained in:
parent
1eb89b8375
commit
686cdbc165
|
@ -799,7 +799,7 @@ where
|
|||
match read {
|
||||
Ok(n) => {
|
||||
if n == 0 {
|
||||
return Ok(Some(true));
|
||||
return Ok(Some(false));
|
||||
} else {
|
||||
read_some = true;
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in New Issue