RFR: 8355572: Support HTTP Range requests in Simple Web Server [v12]

Daisuke Yamazaki dyama at openjdk.org
Sun Nov 30 15:17:54 UTC 2025


On Fri, 14 Nov 2025 14:56:58 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Daisuke Yamazaki has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Replace IOException with EOFException for unexpected EOF in FileServerHandler
>
> test/jdk/com/sun/net/httpserver/simpleserver/FileServerHandlerTest.java line 146:
> 
>> 144:                         1000L, "bytes=100-199,300-399,150-350",
>> 145:                         new FileServerHandler.RangeEntry(100,399)
>> 146:                 },
> 
> Can we add a test with duplicated ranges too? e.g.
> 
> `0-99,200-399,0-99,400-499,200-499`

I added a test case for duplicated ranges, thanks.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28021#discussion_r2573900611


More information about the net-dev mailing list