More tolerance in error message matching

This commit is contained in:
Trustin Lee 2009-04-15 23:02:08 +00:00
parent fb8e337293
commit 4bab7516d5
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import org.jboss.netty.channel.ChannelFuture;
class OioWorker implements Runnable {
private static final Pattern SOCKET_CLOSED_MESSAGE = Pattern.compile(
"^.*(?:Socket\\s*closed).*$", Pattern.CASE_INSENSITIVE);
"^.*(?:Socket.*closed).*$", Pattern.CASE_INSENSITIVE);
private final OioSocketChannel channel;

View File

@ -110,7 +110,7 @@ public class SslHandler extends FrameDecoder {
private static final ByteBuffer EMPTY_BUFFER = ByteBuffer.allocate(0);
private static final Pattern IGNORABLE_ERROR_MESSAGE = Pattern.compile(
"^.*(?:Connection\\s*reset|Broken\\s*pipe).*$",
"^.*(?:Connection.*reset|Broken.*pipe).*$",
Pattern.CASE_INSENSITIVE);
private static SslBufferPool defaultBufferPool;