Skip to content

Commit

Permalink
Merge pull request #23 from FusionAuth/degroff/debug-handshake-exception
Browse files Browse the repository at this point in the history
DEBUG log the SSLHandshakeException
  • Loading branch information
robotdan authored Apr 26, 2024
2 parents c930933 + 051a593 commit 50fe1b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/io/fusionauth/http/server/HTTPServerThread.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, FusionAuth, All Rights Reserved
* Copyright (c) 2022-2024, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
*/
package io.fusionauth.http.server;

import javax.net.ssl.SSLHandshakeException;
import java.io.Closeable;
import java.io.IOException;
import java.net.InetSocketAddress;
Expand Down Expand Up @@ -170,8 +171,8 @@ public void run() {
}

cancelAndCloseKey(key);
} catch (ClientAbortException e) {
// A client abort exception is common and should not be error logged.
} catch (ClientAbortException | SSLHandshakeException e) {
// A client abort exception or SSLHandshakeException are common and should not be error logged.
logger.debug("A client related exception was thrown during processing", e);
cancelAndCloseKey(key);
} catch (Throwable t) {
Expand Down

0 comments on commit 50fe1b8

Please sign in to comment.