Skip to content

Commit

Permalink
TomcatHttpHandlerAdapter continues after 0 bytes
Browse files Browse the repository at this point in the history
This commit makes sure that TomcatServerHttpRequest::readFromInputStream
follows the same contract as the method it overrides, and returns
AbstractListenerReadPublisher.EMPTY_BUFFER when 0 bytes are read.

See gh-28241
  • Loading branch information
poutsma committed Apr 12, 2022
1 parent 8b39698 commit 3b4ae7b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -153,7 +153,7 @@ else if (read == -1) {
return EOF_BUFFER;
}
else {
return null;
return AbstractListenerReadPublisher.EMPTY_BUFFER;
}
}
finally {
Expand Down

0 comments on commit 3b4ae7b

Please sign in to comment.