RFR: 8349670: HttpServer: sending interim responses fails after JDK-7026262 [v21]

Josiah Noel duke at openjdk.org
Fri Oct 10 15:51:38 UTC 2025


On Fri, 10 Oct 2025 15:38:58 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> We heavily use the HttpServer to test the HttpClient HTTP/1.1 stack. In the Httpclient, we wanted to test that if the server didn't send 100, the client would send the body after a reasonable timeout. Then we wanted to test that the 100 would be ignored if it came after the client had started to send the body. We also wanted to test that additional 100 would be ignored.

Adding auto-send in `getRequestBody().read()` allows this though? put a sleep in the handler before `getRequestBody().read()`. You have control if/when the 100 is sent, no new public method required.

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

PR Comment: https://git.openjdk.org/jdk/pull/27069#issuecomment-3390863439


More information about the net-dev mailing list