Fixed issue: NETTY-40 (SslHandler dead lock on Oio-Oio communication)
* More fine-grained lock acquisition
This commit is contained in:
parent
57c76d348d
commit
8da05713fe
@ -385,6 +385,12 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (pendingEncryptedWrites) {
|
||||
if (pendingEncryptedWrites.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
synchronized (pendingEncryptedWrites) {
|
||||
MessageEvent e;
|
||||
while ((e = pendingEncryptedWrites.poll()) != null) {
|
||||
|
@ -27,7 +27,6 @@ import java.util.concurrent.Executor;
|
||||
import org.jboss.netty.channel.ChannelFactory;
|
||||
import org.jboss.netty.channel.socket.oio.OioClientSocketChannelFactory;
|
||||
import org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author The Netty Project (netty-dev@lists.jboss.org)
|
||||
@ -47,10 +46,4 @@ public class OioOioSocketSslEchoTest extends AbstractSocketSslEchoTest {
|
||||
protected ChannelFactory newServerSocketChannelFactory(Executor executor) {
|
||||
return new OioServerSocketChannelFactory(executor, executor);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Override
|
||||
public void testSslEcho() throws Throwable {
|
||||
// FIXME Disabled temporarily
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user