Skip to content

Commit 215873a

Browse files
committed
Always try and close the socket on SocketException.
1 parent 967a5d1 commit 215873a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.savant

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ restifyVersion = "4.2.1"
1818
slf4jVersion = "2.0.17"
1919
testngVersion = "7.11.0"
2020

21-
project(group: "io.fusionauth", name: "java-http", version: "1.1.1", licenses: ["ApacheV2_0"]) {
21+
project(group: "io.fusionauth", name: "java-http", version: "1.1.2", licenses: ["ApacheV2_0"]) {
2222
workflow {
2323
fetch {
2424
// Dependency resolution order:

src/main/java/io/fusionauth/http/server/internal/HTTPWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ public void run() {
261261
if (Thread.currentThread().isInterrupted()) {
262262
// Close socket only. We do not want to potentially delay the shutdown at all.
263263
logger.debug("[{}] Closing socket. Server is shutting down.", Thread.currentThread().threadId());
264-
closeSocketOnly(CloseSocketReason.Expected);
265264
}
265+
closeSocketOnly(CloseSocketReason.Expected);
266266
} catch (IOException e) {
267267
logger.debug(String.format("[%s] Closing socket with status [%d]. An IO exception was thrown during processing. These are pretty common.", Thread.currentThread().threadId(), Status.InternalServerError), e);
268268
closeSocketOnError(response, Status.InternalServerError);

0 commit comments

Comments
 (0)