Skip to content

Commit

Permalink
Use closeQuietly for SSLException handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ooeunz committed Nov 27, 2024
1 parent 1b2709a commit 4bd75b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ public ClassicHttpResponse execute(
}
return response;

} catch (final HttpException | SSLException ex) {
Closer.closeQuietly(conn);
throw ex;
} catch (final IOException | RuntimeException ex) {
Closer.close(conn, CloseMode.IMMEDIATE);
throw ex;
} catch (final HttpException ex) {
Closer.closeQuietly(conn);
throw ex;
}
}

Expand Down

0 comments on commit 4bd75b9

Please sign in to comment.