RFR: 8326568: jdk/test/com/sun/net/httpserver/bugs/B6431193.java should use try-with-resource and try-finally
Darragh Clarke
dclarke at openjdk.org
Tue Apr 2 11:55:12 UTC 2024
On Wed, 27 Mar 2024 14:58:48 GMT, Darragh Clarke <dclarke at openjdk.org> wrote:
> Currently this test occasionally doesn't cleanup between runs, sometimes not stopping the server or leaving Streams open
>
> Changes:
> - Use try-with-resources to ensure streams close.
> - Use try-finally to make sure the server stops before the test exits.
>
> I ran tiers 1-3 and ran this specific test on repeat and everything seems stable after the changes
Thanks for the suggestions, I've implemented those changes and reran tests to make sure everything is still stable.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18514#issuecomment-2031838939
More information about the net-dev
mailing list