Commit Graph

34 Commits

Author SHA1 Message Date
Trustin Lee
23a73f20d6 Fixed a bug where HttpMessage's content becomes an EMPTY_BUFFER after messageReceive event is already fired to process chunked encoding 2009-03-10 08:37:45 +00:00
Trustin Lee
a5ebbfb111 * all limit parameters are mandatory to create HTTP decoders now for better security
* chunks are not merged anymore for better security
* modified HTTP client example to handle HTTP chunks
2009-03-10 07:53:15 +00:00
Trustin Lee
4a72aafd56 Resolved issue: NETTY-133 Limit the length of HTTP header lines.
* Added maxHeaderSize option
* Added maxInitialLineLength option
* Overall HTTP code cleanup
2009-03-10 07:20:27 +00:00
Trustin Lee
832ed0c198 Fixed NETTY-130 (Chunked encoding emulation for a large non-chunked HTTP request)
* Replaced mergeChunks option with maxChunkSize
* if maxChunkSize is greater than 0 and any content or chunk larger than maxChunkSize is received, it's split into multiple chunks as if a chunked request is received.
* Added unfold option to FrameDecoder and ReplayingDecoder
2009-03-09 08:50:24 +00:00
Trustin Lee
1781e0e1dd Fixed find bugs warnings 2009-03-04 14:15:59 +00:00
Trustin Lee
4979cb6a21 A little bit of code clean up 2009-03-04 13:50:19 +00:00
Trustin Lee
6200d39bdd Reverted the unnecessary changes related with shutting FindBug up 2009-02-26 09:08:34 +00:00
Andy Taylor
fea082e689 fixed cookie support 2009-02-17 17:13:13 +00:00
Andy Taylor
1a96b48026 added ClientSocketChannelFactory to ServletClientSocketChannelFactory constructor 2009-02-16 10:21:44 +00:00
Trustin Lee
db18337762 * Fixed most Find Bugs warnings
* Added UnreplayableOperationException
2009-02-13 10:21:28 +00:00
Trustin Lee
7e8a1cd9c2 Code cleanup 2009-02-13 08:55:06 +00:00
Trustin Lee
431151b8e5 Fixed issue: NETTY-107 - HttpMessageDecoder can not handle the content with no 'Content-Length' header. 2009-02-12 07:32:53 +00:00
Trustin Lee
2d682dc2a3 Fixed NETTY-107 HttpMessageDecoder can not handle the content with no 'Content-Length' header.
* Added HttpMessage.getContentLength(int defaultValue)
* Renamed state enum values
2009-02-12 07:17:29 +00:00
Trustin Lee
602c99c532 Fixed a problem where the last chunk is decoded too early 2009-02-12 06:27:17 +00:00
Trustin Lee
ebe77cef21 Fixed a 'shouldn't reach here' error 2009-02-12 06:26:05 +00:00
Trustin Lee
5ee6da3892 Fixed a bug where HttpRequest message is decoded twice 2009-02-12 06:25:13 +00:00
Trustin Lee
44d56d2c1a Added HttpChunk message for users who want to receive the content chunk by chunk 2009-02-12 06:09:29 +00:00
Trustin Lee
b6c992de8b More optimistic initial line buffer size 2009-02-12 05:49:19 +00:00
Trustin Lee
a4fe52559b More robust CR/LF handling in chunked encoding 2009-02-12 05:48:25 +00:00
Trustin Lee
9125ff5616 Fixed more issues related with chunked encoding 2009-02-12 05:41:22 +00:00
Trustin Lee
fb74832dc8 * Removed the usage of unnecessary state variable
* Renamed READ_CRLF to READ_END_OF_CHUNK
2009-02-12 05:28:55 +00:00
Trustin Lee
66423e0c1d More robust chunk size parser 2009-02-12 05:23:39 +00:00
Trustin Lee
44498e067f * Improved the detection of chunked encoding
* Fixed broken chunk length parser
2009-02-12 05:16:38 +00:00
Trustin Lee
1243baa05b More robust HTTP message decoding 2009-02-12 05:10:25 +00:00
Trustin Lee
9cdc4a959e Better white space handling in HTTP 2009-02-12 05:02:22 +00:00
Trustin Lee
32738273e0 Related issue: NETTY-116 HTTP issues including chunked request / response patch
* Applied Dave's patch for HttpMessageDecoder
2009-02-12 04:37:48 +00:00
Trustin Lee
1fa791c4a4 Made sure all out-of-the-box encoders and decoders respect the ChannelBufferFactory configuration 2008-12-08 09:02:33 +00:00
Trustin Lee
fe98713cba * Added ChannelBufferFactory and its implementations
* Made sure ChannelBuffer implementations respect the associated ChannelBufferFactory
2008-12-08 08:20:34 +00:00
Trustin Lee
df2f9d9d50 Removed System.out.printlns 2008-12-05 02:05:42 +00:00
Trustin Lee
a30c36d8e2 * APIviz tagging
* Added missing @version tags
2008-12-03 09:00:29 +00:00
Trustin Lee
e213b54b71 Fixed a problem where HttpMessageDecoder doesn't finish decoding immediately when content-length is 0 (or there's no content) 2008-11-30 16:29:35 +00:00
Trustin Lee
d4348ab4d7 Fixed NETTY-86 (HttpResponseDecoder decodes the initial line incorrectly.) 2008-11-30 16:22:03 +00:00
Trustin Lee
8ac3b2905d StringBuffer -> StringBuilder 2008-11-20 08:15:20 +00:00
Trustin Lee
4ac032c657 Merged the HTTP branch into the trunk 2008-11-19 07:22:15 +00:00