mirror of https://github.com/fafhrd91/actix-web
Removed extra read, since it hangs the worker #2764
This commit is contained in:
parent
a9e89b0db9
commit
7998c2051f
|
@ -706,9 +706,6 @@ where
|
||||||
debug!("handler dropped payload early; attempt to clean connection");
|
debug!("handler dropped payload early; attempt to clean connection");
|
||||||
// ...in which case poll request payload a few times
|
// ...in which case poll request payload a few times
|
||||||
loop {
|
loop {
|
||||||
if this.read_buf.is_empty() {
|
|
||||||
Self::read_available_projected(&mut this, cx)?;
|
|
||||||
}
|
|
||||||
match this.codec.decode(this.read_buf)? {
|
match this.codec.decode(this.read_buf)? {
|
||||||
Some(msg) => {
|
Some(msg) => {
|
||||||
match msg {
|
match msg {
|
||||||
|
|
Loading…
Reference in New Issue