Created attachment 21716 [details] Echo "OK" if the behaviour is correct, "KO" otherwise InputBuffer does not check "closed" in any read, mark, skip operation, thus bytes can be read even when the application has requested to close the inputstream. This causes programming problems to go unnoticed. See the attached test case.
This has been fixed in 6.0.x and will be included in the next release. It has been proposed for inclusion in 5.0.x.
This has been fixed in 5.5.x and will be included in 5.5.27 onwards.