Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb3809f

Browse files
committed
fix(components): As2 note on stream closure design
1 parentdd49696 commiteb3809f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/AS2AsyncMDNServerConnection.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ public RequestHandlerThread(HttpService httpService, Socket inSocket) throws IOE
150150
}
151151
Http1Configcfg =Http1Config.custom().setBufferSize(DEFAULT_BUFFER_SIZE).build();
152152
// parses the received AS2MessageEntity
153-
AS2BHttpServerConnectioninConn =newAS2BHttpServerConnection(cfg);
153+
// NOTE: the connection will be closed after the execution of the process.
154+
AS2BHttpServerConnectioninConn =newAS2BHttpServerConnection(cfg);// NOSONAR
154155
inConn.bind(inSocket);
155156
// TODO Update once baseline is Java 21
156157
// setName(REQUEST_HANDLER_THREAD_NAME_PREFIX + threadId());
@@ -175,6 +176,7 @@ public void run() {
175176
this.serverConnection.close();
176177
}catch (finalIOExceptione) {
177178
// ignore
179+
LOG.warn("An exception happened while closing server connection: ignoring",e);
178180
}
179181
}
180182
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp