private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }
private void processWindowUpdateFrame(final Http2Session http2Session, final Http2Frame frame) throws Http2StreamException, Http2SessionException { WindowUpdateFrame updateFrame = (WindowUpdateFrame) frame; final int streamId = updateFrame.getStreamId(); final int delta = updateFrame.getWindowSizeIncrement(); updateFrame.recycle(); if (streamId == 0) { if (delta == 0) { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } http2Session.getOutputSink().onPeerWindowUpdate(delta); } else { if (delta == 0) { throw new Http2StreamException(streamId, ErrorCode.PROTOCOL_ERROR, "Illegal WINDOW_UPDATE with a delta of 0."); } final Http2Stream stream = http2Session.getStream(streamId); //noinspection Duplicates if (stream != null) { stream.getOutputSink().onPeerWindowUpdate(delta); } else { throw new Http2SessionException(ErrorCode.PROTOCOL_ERROR); } } }