Re: [IO] Unintuitive behavior in BoundedInputStream.onMaxLength

2023-08-15 Thread Gary Gregory
Better documentation is quite reasonable :-) feel free to submit a PR Thank you! Gary On Tue, Aug 15, 2023, 10:13 AM James Reeves wrote: > I was looking into a bug in FileUpload 2.0.0-M1 and tracked it down to a > misuse of BoundedInputStream.onMaxLength. The reason I'm sending this email > bef

[IO] Unintuitive behavior in BoundedInputStream.onMaxLength

2023-08-15 Thread James Reeves
I was looking into a bug in FileUpload 2.0.0-M1 and tracked it down to a misuse of BoundedInputStream.onMaxLength. The reason I'm sending this email before submitting a patch to FileUpload is that I believe this behavior is unexpected enough to warrant a little extra in the onMaxLength docstring