add back can_not_read bail

This commit is contained in:
Rob Ede 2022-02-03 05:34:25 +00:00
parent 0b3fa41234
commit deb7d070b2
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 3 additions and 1 deletions

View File

@ -696,7 +696,6 @@ where
if can_not_read {
log::debug!("cannot read request payload");
// if we cannot read request payload...
if let Some(sender) = &this.payload {
// ...maybe handler does not want to read any more payload...
if let PayloadStatus::Dropped = sender.need_read(cx) {
@ -750,6 +749,9 @@ where
}
}
}
} else {
// can_not_read and no request payload
return Ok(false);
}
}