RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v3]
robert engels
duke at openjdk.org
Fri Apr 19 17:43:57 UTC 2024
On Fri, 19 Apr 2024 17:10:43 GMT, robert engels <duke at openjdk.org> wrote:
> > B4769350
>
> I don't understand this. If the handler "leaks it", isn't that a bug? If sending a chunked response I think you have to close the output stream or end the exchange otherwise it is a bug in the handler code.
>
> Also, in reviewing the code, I don't think the old code could have worked either. If you don't close() the stream or the exchange() then the write finished event is never fired so the internals will be messed up - and the connection will hang.
I tested B4769350 with these changes and it worked without failure.
Is there a command line to only run all of the httpserver tests?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18667#issuecomment-2067024817
More information about the net-dev
mailing list