netty5/codec-http/src/test/java/io/netty/handler/codec/http
秦世成 1465e3ce06 Support handshake timeout in websocket handlers (#8856)
Motivation:

Support handshake timeout option in websocket handlers. It makes sense to limit the time we need to move from `HANDSHAKE_ISSUED` to `HANDSHAKE_COMPLETE` states when upgrading to WebSockets

Modification:

- Add `handshakeTimeoutMillis` option in `WebSocketClientProtocolHandshakeHandler`  and `WebSocketServerProtocolHandshakeHandler`.
- Schedule a timeout task, the task will trigger user event `HANDSHAKE_TIMEOUT` if the handshake timed out.

Result:

Fixes issue https://github.com/netty/netty/issues/8841
2019-05-22 13:56:36 +02:00
..
cookie Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
cors migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
multipart remove unused import statement (#8792) 2019-01-28 16:50:15 +01:00
websocketx Support handshake timeout in websocket handlers (#8856) 2019-05-22 13:56:36 +02:00
CombinedHttpHeadersTest.java Set-Cookie headers should not be combined (#8611) 2018-12-01 10:47:37 +01:00
DefaultHttpHeadersTest.java Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075) 2018-06-29 07:56:04 +02:00
DefaultHttpRequestTest.java Deprecation cleanup for HTTP headers 2015-09-09 14:30:21 -07:00
DefaultHttpResponseTest.java Correctly take status into account when compare DefaultHttpResponse (#7965) 2018-05-24 20:13:21 +02:00
HttpChunkedInputTest.java Fix possible NPE in HttpCunkedInput if wrapped ChunkedInput.readChunk(...) return null. 2016-06-17 06:27:04 +02:00
HttpClientCodecTest.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
HttpClientUpgradeHandlerTest.java Deprecate ChannelInboundHandlerAdapter and ChannelOutboundHandlerAdapter (#8929) 2019-03-13 09:46:10 +01:00
HttpContentCompressorTest.java Set result for decoded request and add test for #8721 (#8721) 2019-01-21 07:45:21 +01:00
HttpContentDecoderTest.java Ensure "full" ownership of msgs passed to EmbeddedChannel.writeInbound() (#9058) 2019-05-22 12:35:03 +02:00
HttpContentDecompressorTest.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
HttpContentEncoderTest.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
HttpHeadersTest.java Make headers.set(self) a no-op instead of throwing. Makes it consistent with setAll 2015-11-06 07:00:54 -08:00
HttpHeadersTestUtils.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
HttpInvalidMessageTest.java Deprecation cleanup for HTTP headers 2015-09-09 14:30:21 -07:00
HttpObjectAggregatorTest.java Do not manually reset HttpObjectDecoder in HttpObjectAggregator.handleOversizedMessage(...) (#9017) 2019-04-08 21:11:23 +02:00
HttpRequestDecoderTest.java Ensure "full" ownership of msgs passed to EmbeddedChannel.writeInbound() (#9058) 2019-05-22 12:35:03 +02:00
HttpRequestEncoderTest.java Remove support for marking reader and writerIndex in ByteBuf to reduce overhead and complexity. (#8636) 2018-12-11 14:00:49 +01:00
HttpResponseDecoderTest.java Ensure "full" ownership of msgs passed to EmbeddedChannel.writeInbound() (#9058) 2019-05-22 12:35:03 +02:00
HttpResponseEncoderTest.java Correctly handle responses with status 205 and payload. (#7891) 2018-05-03 11:25:06 +02:00
HttpResponseStatusTest.java HttpResponseStatus object allocation reduction 2018-01-24 22:01:52 -08:00
HttpServerCodecTest.java Remove the maxChunkSize parameter for HTTP codecs (#8671) 2018-12-20 07:37:51 +01:00
HttpServerExpectContinueHandlerTest.java Motivation: 2017-04-27 16:20:29 -07:00
HttpServerKeepAliveHandlerTest.java HttpServerKeepAliveHandler doesn't correctly handle VoidChannelPromise 2017-05-04 14:08:18 -07:00
HttpServerUpgradeHandlerTest.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
HttpUtilTest.java Fix HttpUtil.isKeepAlive to behave correctly when Connection is a comma separated list (#8924) 2019-03-13 14:30:46 +01:00
QueryStringDecoderTest.java Added QueryStringDecoder.rawPath() and rawQuery() 2017-10-24 09:32:06 +02:00
QueryStringEncoderTest.java Fix regression in QueryStringEncoder 2017-04-17 19:32:50 +02:00
ReadOnlyHttpHeadersTest.java ReadOnlyHttpHeaders 2017-11-06 21:58:16 -08:00