TomcatHttpHandlerAdapter continues after 0 bytes

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
This commit is contained in:
Arjen Poutsma 2022-04-12 16:52:13 +02:00
parent 8b39698553
commit 3b4ae7b028
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class TomcatHttpHandlerAdapter extends ServletHttpHandlerAdapter {
return EOF_BUFFER;
}
else {
return null;
return AbstractListenerReadPublisher.EMPTY_BUFFER;
}
}
finally {