netty5/codec-http2/src/main/java/io/netty/handler/codec/http2
Scott Mitchell 83c4aa6ad8 HTTP/2 Writes GO_AWAY on channelInactive
Motivation:
Http2ConnectionHandler inherits from ByteToMessageDecoder. ByteToMessageDecoder.channelInactive will attempt to decode any remaining data by calling the abstract decode method. If the Http2ConnectionHandler is in server mode, and no data has been exchanged yet, it will try to treat this data as an invalid connection preface and write a GO_AWAY. This is noisy in the logs and creates an illusion that there is a protocol violation when there has not been.

Modifications:
- If the channel is inactive the connection preface decode should not be executed.

Result:
Log files don't include misleading error messages related to connection preface errors.
2016-02-18 19:47:42 -08:00
..
hpack Forking Twitter's hpack 2015-11-14 10:13:32 -08:00
AbstractHttp2ConnectionHandlerBuilder.java AbstractHttp2ConnectionHandlerBuilder validateHeaders cannot be set with encoder/decoder 2016-01-29 00:33:45 -08:00
AbstractInboundHttp2ToHttpAdapterBuilder.java Revamp InboundHttp2ToHttpAdapter builder API 2015-12-18 12:44:46 +09:00
CharSequenceMap.java fixed "sensative" typo to read "sensitive" 2016-02-17 08:18:11 -08:00
CompressorHttp2ConnectionEncoder.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
DecoratingHttp2ConnectionDecoder.java Http2ConnectionHandler Builder instead of constructors 2015-10-01 13:51:03 -07:00
DecoratingHttp2ConnectionEncoder.java Cleaning up the initialization of Http2ConnectionHandler 2015-03-30 11:23:02 -07:00
DecoratingHttp2FrameWriter.java Cleaning up the initialization of Http2ConnectionHandler 2015-03-30 11:23:02 -07:00
DefaultHttp2Connection.java HTTP/2 codec may not always call Http2Connection.onStreamRemoved 2016-02-12 16:01:37 -08:00
DefaultHttp2ConnectionDecoder.java HTTP/2 Don't Flow Control Iniital Headers 2016-02-01 13:37:43 -08:00
DefaultHttp2ConnectionEncoder.java HTTP/2 Don't Flow Control Iniital Headers 2016-02-01 13:37:43 -08:00
DefaultHttp2FrameReader.java Allow to set Http2HeaderEncoder.SensitivityDetector in the Http2ConnectionHandler 2015-12-10 14:34:04 +01:00
DefaultHttp2FrameWriter.java Allow to set Http2HeaderEncoder.SensitivityDetector in the Http2ConnectionHandler 2015-12-10 14:34:04 +01:00
DefaultHttp2Headers.java HttpConversionUtil does not account for COOKIE compression 2015-12-08 20:00:31 -08:00
DefaultHttp2HeadersDecoder.java Adjustable size of DefaultHeaders array 2015-11-23 15:38:08 -08:00
DefaultHttp2HeadersEncoder.java Forking Twitter's hpack 2015-11-14 10:13:32 -08:00
DefaultHttp2HeaderTableListSize.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
DefaultHttp2LocalFlowController.java Add HTTP/2 local flow control option for auto refill 2015-11-05 15:47:10 -08:00
DefaultHttp2RemoteFlowController.java HTTP/2 Don't Flow Control Iniital Headers 2016-02-01 13:37:43 -08:00
DelegatingDecompressorFrameListener.java Add HTTP/2 local flow control option for auto refill 2015-11-05 15:47:10 -08:00
EmptyHttp2Headers.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
Http2ClientUpgradeCodec.java HTTP/2 defines using String instead of CharSequence 2015-09-16 14:55:33 -07:00
Http2CodecUtil.java HTTP/2 Buffer Leak if UTF8 Conversion Fails 2016-02-02 11:22:17 -08:00
Http2Connection.java HTTP/2 codec may not always call Http2Connection.onStreamRemoved 2016-02-12 16:01:37 -08:00
Http2ConnectionAdapter.java Include error code and message in GOAWAY events. 2015-03-31 09:18:26 -07:00
Http2ConnectionDecoder.java Http2ConnectionHandler Builder instead of constructors 2015-10-01 13:51:03 -07:00
Http2ConnectionEncoder.java Cleaning up the initialization of Http2ConnectionHandler 2015-03-30 11:23:02 -07:00
Http2ConnectionHandler.java HTTP/2 Writes GO_AWAY on channelInactive 2016-02-18 19:47:42 -08:00
Http2ConnectionHandlerBuilder.java Revamp the Http2ConnectionHandler builder API 2015-12-17 14:08:13 +09:00
Http2DataWriter.java Allow HTTP2 frame writer to accept arbitrarily large frames 2015-11-24 11:44:06 -08:00
Http2Error.java InboundHttp2ToHttpAdapter leak and logic improvements 2016-02-01 12:38:40 -08:00
Http2EventAdapter.java Include error code and message in GOAWAY events. 2015-03-31 09:18:26 -07:00
Http2Exception.java HTTP/2 Graceful Shutdown Timeout 2015-08-20 13:27:18 -07:00
Http2Flags.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2FlowController.java HTTP/2 Flow Controller should use Channel.isWritable() 2015-07-16 14:38:48 -07:00
Http2FrameAdapter.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2FrameListener.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
Http2FrameListenerDecorator.java HTTP/2 Decoder reduce preface conditional checks 2015-03-28 18:52:35 -07:00
Http2FrameLogger.java Log the current channel in Http2FrameLogger 2016-01-18 10:52:08 +01:00
Http2FrameReader.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2FrameSizePolicy.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2FrameTypes.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2FrameWriter.java Http2DefaultFrameWriter direct write instead of copy 2015-02-06 11:56:14 -08:00
Http2Headers.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
Http2HeadersDecoder.java HTTP/2 limit header accumulated size 2015-07-07 13:25:03 -07:00
Http2HeadersEncoder.java Add Http2HeadersEncoder.ALWAYS_SENSITIVE instance 2015-12-10 12:59:04 +01:00
Http2HeaderTable.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2InboundFrameLogger.java Log the current channel in Http2FrameLogger 2016-01-18 10:52:08 +01:00
Http2LifecycleManager.java No HTTP/2 RST_STREAM if no prior HEADERS were sent 2015-11-25 13:46:32 -08:00
Http2LocalFlowController.java Add HTTP/2 local flow control option for auto refill 2015-11-05 15:47:10 -08:00
Http2NoMoreStreamIdsException.java HTTP/2 Graceful Shutdown Timeout 2015-08-20 13:27:18 -07:00
Http2OutboundFrameLogger.java Log the current channel in Http2FrameLogger 2016-01-18 10:52:08 +01:00
Http2PromisedRequestVerifier.java Http2 draft 17 2015-03-25 09:02:15 -07:00
Http2RemoteFlowController.java HTTP/2 Don't Flow Control Iniital Headers 2016-02-01 13:37:43 -08:00
Http2SecurityUtil.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
Http2ServerUpgradeCodec.java HTTP/2 defines using String instead of CharSequence 2015-09-16 14:55:33 -07:00
Http2Settings.java Make IntObjectHashMap extend Map 2015-07-22 15:52:27 -07:00
Http2Stream.java HTTP/2 Don't Flow Control Iniital Headers 2016-02-01 13:37:43 -08:00
Http2StreamVisitor.java Removing direct access to HTTP/2 child streams. 2015-04-10 08:52:26 -07:00
HttpConversionUtil.java Use ByteBufAllocator to allocate ByteBuf for FullHttpMessage Motivation: When converting SPDY or HTTP/2 frames to HTTP/1.x, netty always used an unpooled heap ByteBuf. 2016-02-17 19:55:52 -08:00
HttpToHttp2ConnectionHandler.java Http2Connection stream id generation to support queueing 2016-01-29 11:37:17 -08:00
HttpToHttp2ConnectionHandlerBuilder.java Revamp the Http2ConnectionHandler builder API 2015-12-17 14:08:13 +09:00
InboundHttp2ToHttpAdapter.java Use ByteBufAllocator to allocate ByteBuf for FullHttpMessage Motivation: When converting SPDY or HTTP/2 frames to HTTP/1.x, netty always used an unpooled heap ByteBuf. 2016-02-17 19:55:52 -08:00
InboundHttp2ToHttpAdapterBuilder.java Revamp InboundHttp2ToHttpAdapter builder API 2015-12-18 12:44:46 +09:00
InboundHttp2ToHttpPriorityAdapter.java Use ByteBufAllocator to allocate ByteBuf for FullHttpMessage Motivation: When converting SPDY or HTTP/2 frames to HTTP/1.x, netty always used an unpooled heap ByteBuf. 2016-02-17 19:55:52 -08:00
InboundHttp2ToHttpPriorityAdapterBuilder.java Revamp InboundHttp2ToHttpAdapter builder API 2015-12-18 12:44:46 +09:00
package-info.java Back port HTTP/2 codec from master to 4.1 2015-01-23 11:06:11 -05:00
StreamBufferingEncoder.java HTTP/2 Headers Type Updates 2015-10-30 15:29:44 -07:00
StreamByteDistributor.java Fix javadoc links and tags 2015-12-26 08:34:31 +01:00
UniformStreamByteDistributor.java HTTP/2 UniformStreamByteDistributor negative window shouldn't write 2015-12-23 10:14:24 -08:00
WeightedFairQueueByteDistributor.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00