Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5708fbe

Browse files
committed
Fix this craziness about singleton field
1 parentdd8a784 commit5708fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,6 @@ private final class WebSocketProtocol implements Protocol {
22642264
privatestaticfinalbyteOPCODE_TEXT =0x1;
22652265
privatestaticfinalbyteOPCODE_BINARY =0x2;
22662266
privatestaticfinalbyteOPCODE_UNKNOWN = -1;
2267-
protectedbytependingOpcode =OPCODE_UNKNOWN;
22682267

22692268
// We don't need to synchronize as replacing the "ws-decoder" will process using the same thread.
22702269
privatevoidinvokeOnSucces(ChannelHandlerContextctx,WebSocketUpgradeHandlerh) {
@@ -2351,6 +2350,7 @@ public void handle(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
23512350

23522351
finalWebSocketFrameframe = (WebSocketFrame)e.getMessage();
23532352

2353+
bytependingOpcode =OPCODE_UNKNOWN;
23542354
if (frameinstanceofTextWebSocketFrame) {
23552355
pendingOpcode =OPCODE_TEXT;
23562356
}elseif (frameinstanceofBinaryWebSocketFrame) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp