From d8bc5f07f2c46a50e0c10b0bb3ff021a2697f09f Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 15 Apr 2009 22:06:01 +0000 Subject: [PATCH] Broken pipe error is reported instead of Connection reset in HPUX --- src/main/java/org/jboss/netty/handler/ssl/SslHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java b/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java index d79994902d..75a449f78e 100644 --- a/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java +++ b/src/main/java/org/jboss/netty/handler/ssl/SslHandler.java @@ -109,8 +109,9 @@ public class SslHandler extends FrameDecoder { private static final ByteBuffer EMPTY_BUFFER = ByteBuffer.allocate(0); - private static final Pattern CONNECTION_RESET = - Pattern.compile("^.*Connection\\s*reset.*$", Pattern.CASE_INSENSITIVE); + private static final Pattern CONNECTION_RESET = Pattern.compile( + "^.*(Connection\\s*reset|Broken\\s*pipe).*$", + Pattern.CASE_INSENSITIVE); private static SslBufferPool defaultBufferPool;