You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2020/08/25 08:20:02 UTC
[httpcomponents-core] branch 4.4.x updated: HTTPCORE-647:
non-blocking connection terminated due to 'java.io.IOException: Broken
pipe' can enter an infinite loop flushing buffered output data
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 4.4.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/4.4.x by this push:
new 0ac7870 HTTPCORE-647: non-blocking connection terminated due to 'java.io.IOException: Broken pipe' can enter an infinite loop flushing buffered output data
0ac7870 is described below
commit 0ac7870dc9db1693c02be3651804e9120517b5a8
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Aug 20 14:56:43 2020 +0200
HTTPCORE-647: non-blocking connection terminated due to 'java.io.IOException: Broken pipe' can enter an infinite loop flushing buffered output data
---
.../src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
index 709dbf8..f68ca07 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncService.java
@@ -291,7 +291,7 @@ public class HttpAsyncService implements NHttpServerEventHandler {
if (cancellable != null) {
cancellable.cancel();
}
- if (cause instanceof SocketException) {
+ if (cause instanceof SocketException || cause.getClass() == IOException.class) {
// Transport layer is likely unreliable.
conn.shutdown();
return;