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 {
|
match read {
|
||||||
Ok(n) => {
|
Ok(n) => {
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
return Ok(Some(true));
|
return Ok(Some(false));
|
||||||
} else {
|
} else {
|
||||||
read_some = true;
|
read_some = true;
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in New Issue