|
11 | 11 | import java.util.concurrent.BlockingQueue; |
12 | 12 | import java.util.concurrent.LinkedBlockingQueue; |
13 | 13 |
|
14 | | -import javax.naming.LimitExceededException; |
15 | | - |
16 | 14 | import net.tootallnate.websocket.Draft.HandshakeState; |
17 | 15 | import net.tootallnate.websocket.Framedata.Opcode; |
18 | 16 | import net.tootallnate.websocket.drafts.Draft_10; |
@@ -130,7 +128,6 @@ private void init( WebSocketListener listener, Draft draft, SocketChannel sockch |
130 | 128 | * @throws IOException |
131 | 129 | * When socket related I/O errors occur. |
132 | 130 | * @throws InterruptedException |
133 | | - * @throws LimitExceededException |
134 | 131 | */ |
135 | 132 | public void handleRead() throws InterruptedException , IOException { |
136 | 133 | if( !socketBuffer.hasRemaining() ) { |
@@ -167,7 +164,6 @@ public void handleRead() throws InterruptedException , IOException { |
167 | 164 | HandshakeBuilder response = wsl.onHandshakeRecievedAsServer( this, d, handshake ); |
168 | 165 | channelWrite( d.createHandshake( d.postProcessHandshakeResponseAsServer( handshake, response ), role ) ); |
169 | 166 | draft = d; |
170 | | - this.handshakeComplete = true; |
171 | 167 | open(); |
172 | 168 | handleRead(); |
173 | 169 | return; |
@@ -199,7 +195,6 @@ public void handleRead() throws InterruptedException , IOException { |
199 | 195 | handshake = draft.translateHandshake( socketBuffer ); |
200 | 196 | handshakestate = draft.acceptHandshakeAsClient( handshakerequest, handshake ); |
201 | 197 | if( handshakestate == HandshakeState.MATCHED ) { |
202 | | - this.handshakeComplete = true; |
203 | 198 | open(); |
204 | 199 | handleRead(); |
205 | 200 | } else if( handshakestate == HandshakeState.MATCHING ) { |
|
0 commit comments