Skip to content

Commit 76a150c

Browse files
committed
1 parent e27c23b commit 76a150c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,8 @@ public void handle(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
23972397
final boolean statusReceived = h.onStatusReceived(s) == STATE.UPGRADE;
23982398

23992399
if (!validStatus || !validUpgrade || !validConnection || !statusReceived) {
2400-
throw new IOException("Invalid handshake response");
2400+
abort(future, new IOException("Invalid handshake response"));
2401+
return;
24012402
}
24022403

24032404
String accept = response.getHeader("Sec-WebSocket-Accept");

0 commit comments

Comments
 (0)