RFR: 8349670: HttpServer: sending interim responses fails after JDK-7026262 [v8]
Josiah Noel
duke at openjdk.org
Thu Oct 9 02:09:12 UTC 2025
On Wed, 8 Oct 2025 21:58:09 GMT, robert engels <duke at openjdk.org> wrote:
> ServerImpl.java already automatically sends a 100-Continue...
You truly learn something new every day. Crazy the things you miss.
> So, this is more an issue of connection upgrades.
For me that's pretty much the long and short of it, but I took another look at the jira issue and @Michael-Mc-Mahon did seem to mention an issue with the current implementation.
> The current partial support for 100 Continue is that if an Expect: 100-Continue header was sent in the request we automatically prepend the final response with the 100 Continue. This is obviously not helpful for code that really wants to do 100 continue the way it was intended. The sequence would normally be (for example):
>
> Request. ---------------------------------->
> Content-Length: 10000000
> Expect: 100 Continue
> Interim response <---------------------- 100 Continue
> Request body ----------------------------->
> FInal response headers <-----------------------
> Response body <---------------------------
>
> So it definitely needs to be possible to send the interim response before reading the request body (as it may be delayed until receipt of the 100 response)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27069#issuecomment-3383793708
More information about the net-dev
mailing list