From 726ab5236b5404848d823ec47079a62353ba4fab Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 21 Apr 2009 11:19:35 +0000 Subject: [PATCH] Fixed NotYetConnectedException --- .../channel/socket/http/HttpTunnelingClientSocketChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketChannel.java b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketChannel.java index 8c3f7ea298..ad66c5180b 100644 --- a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketChannel.java +++ b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelingClientSocketChannel.java @@ -152,7 +152,7 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel channel = clientSocketChannelFactory.newChannel(channelPipeline); } SocketAddress connectAddress = new InetSocketAddress(url.getHost(), url.getPort()); - channel.connect(connectAddress); + channel.connect(connectAddress).awaitUninterruptibly(); StringBuilder builder = new StringBuilder(); builder.append("POST ").append(url.getRawPath()).append(" HTTP/1.1").append(HttpTunnelingClientSocketPipelineSink.LINE_TERMINATOR). append("Host: ").append(url.getHost()).append(":").append(url.getPort()).append(HttpTunnelingClientSocketPipelineSink.LINE_TERMINATOR).