Integrated: 8326568: jdk/test/com/sun/net/httpserver/bugs/B6431193.java should use try-with-resource and try-finally
Darragh Clarke
dclarke at openjdk.org
Wed Apr 10 11:15:13 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
This pull request has now been integrated.
Changeset: 86cb7672
Author: Darragh Clarke <dclarke at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/86cb76728dd164faa8fe69cd07db85977e79be29
Stats: 50 lines in 1 file changed: 9 ins; 20 del; 21 mod
8326568: jdk/test/com/sun/net/httpserver/bugs/B6431193.java should use try-with-resource and try-finally
Reviewed-by: dfuchs, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/18514
More information about the net-dev
mailing list