Commit Graph

60 Commits

Author SHA1 Message Date
Trustin Lee
ab0facdee5 * Discard too long frame in a more robust manner (i.e. should continue decoding after raising TooLongFrameException) 2010-06-24 01:53:51 +00:00
Trustin Lee
bae46eca49 Discard too long frame in a more robust manner 2010-06-24 01:45:32 +00:00
Trustin Lee
93f9c4a2d6 * Added LengthFieldBasedFrameDecoder.extractFrame()
* ObjectDecoder overrides extractFrame() to avoid memory copy
2010-05-13 14:13:07 +00:00
Trustin Lee
48696d909f Updated APIviz tags 2010-04-16 04:12:43 +00:00
Trustin Lee
a61d5b2e6b 2010-02-02 02:00:04 +00:00
Trustin Lee
4a3495b1c8 * Added @Sharable annotation which replaces @ChannelPipelineCoverage
* Removed annotations from the examples because it's not essential part of learning the framework - User guide will explain about it later
2010-02-02 00:38:07 +00:00
Trustin Lee
3362114248 * Replaced e-mail addresses into homepage/blog URL anywhere possible
* Added Amit to COPYRIGHT.txt
2010-01-26 09:04:19 +00:00
Trustin Lee
2c3ab480a2 Related issue: NETTY-253 (Add several useful getters and setters to ChannelBuffer class)
* Added getters and setters for char, float, and double
2009-11-25 06:51:43 +00:00
Trustin Lee
8eeb72cbbf Reverted the previous optimization because it might perform very bad as the number of components in the composite buffer increases 2009-11-17 15:46:34 +00:00
Trustin Lee
902ab48820 * Rewrote FrameDecoder by utilizing the latest improvement in CompositeChannelBuffer
** A user doesn't need to make a copy of the cumulative buffer anymore.
*** Modified all FrameDecoder subtypes to use slice() instead of readBytes()
* Reduced the maximum length of the random writes in AbstractSocketFixedLengthEchoTest to increase the probability of composite buffer occurances
2009-11-17 15:11:31 +00:00
Trustin Lee
2b2d53ff62 * Correct byte order
* All encoders should ignore the message whose type is unknown to the encoder
2009-10-16 04:50:50 +00:00
Trustin Lee
eca6033456 Updated author information. I want to get messages about Netty in my gmail account. 2009-10-14 05:46:40 +00:00
Trustin Lee
0180db1c2c Improved javadoc 2009-09-25 01:55:19 +00:00
Trustin Lee
e069c7c958 Wrong number 2009-09-25 01:50:49 +00:00
Trustin Lee
50012fd8e6 Improved Javadoc of LengthFieldBasedFrameDecoder 2009-09-25 01:39:43 +00:00
Trustin Lee
b11ef6ca9b Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
Trustin Lee
338a5cba4a Added documentation on how to implement protocol multiplexer 2009-07-23 07:10:30 +00:00
Trustin Lee
90329ef978 Updated APIviz tags (work in progress) 2009-07-17 12:49:32 +00:00
Trustin Lee
cc13dba498 Traceable exception message 2009-06-30 09:52:00 +00:00
Trustin Lee
82c55287a2 Javadoc 2009-06-19 09:10:35 +00:00
Trustin Lee
2b0ec506ec Javadoc 2009-06-18 12:32:22 +00:00
Trustin Lee
10009a05fb Javadoc 2009-06-18 12:30:38 +00:00
Trustin Lee
a26ebc2bc1 Javadoc 2009-06-18 12:21:46 +00:00
Trustin Lee
f38fb2b742 Typo 2009-06-18 12:19:59 +00:00
Trustin Lee
d4a8631e62 Javadoc 2009-06-18 12:18:43 +00:00
Trustin Lee
4d0facee9f Javadoc 2009-06-18 12:16:25 +00:00
Trustin Lee
230113c0c6 Javadoc 2009-06-18 11:31:31 +00:00
Trustin Lee
cad86962ef Javadoc 2009-06-18 11:29:29 +00:00
Trustin Lee
e410abed02 Fixed issue: NETTY-173 Do not use Class.isArray() in ReplayingDecoder and FrameDecoder
* Modified FrameDecoder and ReplayingDecoder not to use Class.isArray() anymore.
2009-06-15 07:29:12 +00:00
Trustin Lee
583ddfe992 Fixed compiler warnings 2009-06-09 10:19:29 +00:00
Trustin Lee
345a5512ab Made sure to clean up the cumulative buffer on channelDisconnected or channelClosed 2009-06-04 08:49:33 +00:00
Trustin Lee
c4bfb45183 Fixed issue: NETTY-165 FrameDecoder and ReplayingDecoder must call decodeLast even if there's no data in the buffer.
* Made sure decodeLast() is called even if the cumulative buffer is empty so that a decoder implementation always get notified when the connection is closed
* Updated Javadoc to explain that the buffer can be empty
2009-06-04 06:00:26 +00:00
Trustin Lee
031c26482c Fixed issue: NETTY-158 Can't set the default byte order to little endian on the client side if FrameDecoder or ReplayingDecoder is used.
* FrameDecoder and ReplayingDecoder now create their internal buffers only on demand so that a user has a chance to decide what ChannelBufferFactory FrameDecoder and ReplayingDecoder will use.
2009-05-21 11:58:40 +00:00
Trustin Lee
69ac7d174c Replaced the usage of SimpleChannelHandler with SimpleChannelUpstreamHandler whereever possible 2009-04-17 07:33:32 +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
90c4999c74 Removed unnecessary parameters of the convenient methods in org.jboss.netty.channel.Channels and deprecated old ones. 2009-02-02 05:47:20 +00:00
Trustin Lee
bd403bdb98 Fixed incorrect exception messages 2009-01-07 12:56:11 +00:00
Trustin Lee
5a9d99743d Sanity check 2009-01-07 12:55:44 +00:00
Trustin Lee
fc2b456b98 Oops - silly mistake 2009-01-07 12:52:53 +00:00
Trustin Lee
3d5a35e45f Added lengthIncludesLengthFieldLength option 2009-01-07 12:51:20 +00:00
Trustin Lee
d1838f4af7 Added ChannelPipelineCoverage annotation to LengthFieldPretender 2009-01-07 04:06:17 +00:00
Trustin Lee
5f15d91c41 Added LengthFieldPrepender to prepend a length field easily 2009-01-07 02:14:12 +00:00
Trustin Lee
8bba7ccb5b Merged LengthPrefixedFrameDecoder into LengthFieldBasedFrameDecoder by introducing initialBytesToStrip option 2009-01-06 05:59:42 +00:00
Trustin Lee
73a6716c4b Added LengthPrefixedFrameDecoder 2009-01-06 05:47:41 +00:00
Trustin Lee
5d6ef046cd Removed unnecessary 'else' 2009-01-06 05:32:44 +00:00
Trustin Lee
247251420a More robust exception handling for incorrect length and too large frames 2009-01-06 05:31:59 +00:00
Trustin Lee
7fa20dcb07 Made sure corrupted frame data is skipped 2009-01-06 05:20:16 +00:00
Trustin Lee
7ea187df89 Resolved issue: NETTY-102: Allow DelimiterBasedFrameDecoder to include the delimiter in the frame.
* Added stripDelimiter option
* Much more efficient and accurate handling of discarding the frame that exceeds maxFrameLength
2009-01-06 05:11:55 +00:00
Trustin Lee
afcd2b8315 Resolved issue: NETTY-95 Length-prefixed frame decoder
* Added LengthFieldBasedFrameDecoder
* Added CorruptedFrameException
2008-12-17 11:39:45 +00:00
Trustin Lee
f5fb85a0af * Fixed compilation errors
* Made sure cumulative buffers are initialized as early as possible
2008-12-09 07:17:37 +00:00