Commit Graph

227 Commits

Author SHA1 Message Date
Trustin Lee
59f39cae75 Remove @author and @version / Remove COPYRIGHT.txt
* The new copyright header replaces @author
* COPYRIGHT.txt is irrelevant to us now.
2011-12-09 13:43:34 +09:00
Trustin Lee
015daec3fa http://jboss.org/netty/ to http://netty.io/ 2011-12-09 12:46:59 +09:00
Trustin Lee
7518e98525 org.jboss.netty -> io.netty 2011-12-09 12:40:29 +09:00
Trustin Lee
6fdb7d9116 org.jboss.netty -> io.netty 2011-12-09 12:38:59 +09:00
norman
51f69877a6 Fix compile errors 2011-12-07 07:57:56 +01:00
Cruz Bishop
ec9bcbd553 Removed @version tags and did some documentation
Some test classes are now documented
2011-12-01 21:34:25 +10:00
Norman Maurer
971a7364f6 Merge pull request #75 from alepar/master
ObjectDecoder performance optimization
2011-11-23 03:55:35 -08:00
alepar
cdbaeb86b0 adding class resolver with disabled cache, fixing unit tests 2011-11-23 02:57:32 +04:00
Trustin Lee
0850449b09 Consistent fail-fast property
* DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder must
expose the fail-fast option consistently
* Renamed failImmediatelyOnTooLongFrame to failFast
2011-11-22 18:37:36 +09:00
Craig P. Motlin
b6dc30b37b Inline redundant local variables. 2011-11-12 13:37:30 -05:00
Craig P. Motlin
f0520dad20 Remove unnecessary calls to 'super()'. 2011-11-12 13:19:37 -05:00
Craig P. Motlin
9b9ee79f27 Remove unnecessary 'return' statements. 2011-11-12 13:15:33 -05:00
Craig P. Motlin
d073e1d14d Replace constant array creation expression with array initializer. 2011-11-12 13:14:39 -05:00
Craig P. Motlin
41d4884194 Remove redundant array creations. 2011-11-12 13:08:00 -05:00
Craig P. Motlin
1c698494bb Make inner classes static where possible. 2011-11-11 07:53:11 -05:00
norman
3856f99c03 Make failImmediatelyOnTooLongFrame configurable via a constructor 2011-11-10 09:15:16 +01:00
Norman Maurer
193acdb36c Merge pull request #25 from aaronriekenberg/master
Add failImmediatelyOnTooLongFrame option to DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder
2011-11-09 23:30:39 -08:00
Craig P. Motlin
1fdab7bb95 Make fields final where possible. 2011-11-09 08:33:45 -05:00
Cruz Bishop
dab76e266c Added tests 2011-11-07 21:13:45 +10:00
Norman Maurer
56462ef91a Encoder and Decoder that wrap and unwraps the array of bytes. See
NETTY-357
2011-11-01 20:09:38 +01:00
Aaron Riekenberg
f474fc609a Add failImmediatelyOnTooLongFrameOption. 2011-08-20 19:58:23 -05:00
Trustin Lee
2fc18a00f6 Added a TooLongFrameException recovery test for DelimiterBasedFrameDecoder 2011-08-19 11:11:45 +09:00
Trustin Lee
f4ebcf7aed NETTY-435 LengthFieldBasedFrameDecoder fails to recover from TooLongFrameException
* Fixed a bug where TooLongFrameException is not raised immediately when the large frame was fully decoded at the first attempt
* Fixed a bug where LengthFieldBasedFrameDecoder does not reset its state completely after raising TooLongFrameException
2011-08-19 11:06:29 +09:00
Trustin Lee
bdeed00bbb NETTY-419 ObjectEncoder/ObjectDecoder fails with NPE when deserializing the java.lang.Class instance of an interface type
* Fixed a bug where deserializing an interface class fails due to wrong lookup.
* Implemented class lookup caching
2011-08-02 08:22:02 +09:00
Trustin Lee
acb1ac84e6 NETTY-425 ChannelBuffers.compare does not handle unsigned bytes correctly
* Fixed a bug where signed comparison is made where unsigned comparison is expected
2011-08-01 04:28:08 +09:00
nibin
65fc361eec * Fixed the bug in CookieEncoder if there are no cookie's set while
calling encode(). Without the fix, it ended up in calling the
exception "java.lang.StringIndexOutOfBoundsException".
* Also added test case to verify the patch

Change-Id: Ib96425e07ab50be027ade7be0748cceb6438a586
2011-07-29 13:03:55 +09:00
Trustin Lee
15792da167 Tabs to spaces 2011-05-11 18:11:36 +09:00
Trustin Lee
9db6bba913 NETTY-295 HTTP header getters/setters for date headers
* Added get/setDateHeader() methods that works with custom date
headers
* Removed get/setDateInMilliseconds() methods because they can be
simply represented with a chained getTime() call
* Fixed the inconsistent behavior & contract of
HttpHeaders.getContentLength() which does not throw an exception when
the header is missing or ill-formatted unless a default value is
specified
* Added clearHeaders() and removeHeader() to HttpHeaders
* Tabs to spaces
2011-05-11 18:09:49 +09:00
Rogiel Sulzbach
94cff9d041 NETTY-295 - HTTP header getters and setters for date headers
* Merged CookieDateFormat into HttpHeaderDateFormat, which can parse all
known date format variants related with HTTP
* Added HttpHeaders.get/setDate()
2011-05-11 17:02:11 +09:00
Trustin Lee
e1869db913 Fixed various compiler warnings
* Missing @Override annotations
* Indirect access to a private member from inner classes
* Incorrect @see javadoc tags (should not use the @link tag)
* ..
2011-05-03 11:05:06 +09:00
iainmcgin
a617bd3290 Fixed formatting to conform to project standards 2011-04-18 17:47:12 +09:00
iainmcgin
f7729bc8bb Moved http tunnel implementation into org.jboss.netty.channel.socket.http package, replacing the original implementation.
Existing usage example has been deleted and should be replaced by an updated example using the new API.
2011-04-18 17:46:52 +09:00
iainmcgin
12d2c8ad2e NETTY-246: adding implementation to netty trunk for the 4.0.0 release. In order to get the tests to pass,
I had to change the surefire fork policy from "never" to "once", as it seems the classloader settings used
by the maven process were preventing jmock from mocking package private interfaces.
2011-04-18 17:44:54 +09:00
Daniel Bevenius
98db0d3908 Added a timeout for the UdpClient so that the test cannot hang.
I noticed the build "hanging/halting" on the test when running the cobertura code coverage Eclipse plugin.
2011-04-18 16:57:03 +09:00
Trustin Lee
d1919d0e14 Fixed NETTY-336 Fine-grained control over thread renaming
Removed ThreadNameDeterminer and ThreadRenamingRunnable completely and let user specify the Executor with one's own ThreadFactory
2011-03-29 15:29:52 +09:00
Benoit Sigoure
1f1b8d8325 Add a new faster, memory efficient URL decoder.
Query string parameters need to be decoded as per RFC 3986, Section 2.
The implementation of the URLDecoder in the JDK is slow because it takes
long and inefficient code paths, and it generates a lot more garbage
than necessary.  This decoder is about 2x faster and doesn't allocate
any memory in the easy case where the decoded string is unchanged.
When the string needs to be changed, only one buffer is allocated for
the decoded string.
2011-01-04 14:44:36 +09:00
Trustin Lee
34b181236a NETTY-363 Traffic shaper
* Merged Frederic's traffic shaper patch (needs some review and documentation)
2010-11-12 10:16:51 +09:00
Trustin Lee
0dbdbcdb96 Added @Override annotations which were disallowed in Java 5 but not anymore in Java 6. 2010-11-12 09:45:39 +09:00
Trustin Lee
4399c1e90b Removed nagging compiler warnings introduced by Eclipse Helios 2010-10-19 06:00:42 +00:00
Trustin Lee
d68c5160ed Added parentId to ThreadNamingRunnable 2010-08-25 02:31:00 +00:00
Trustin Lee
9d89ad0837 * Resolved issue: NETTY-336 Fine-grained control over thread renaming
** Redefined ThreadNameDeterminer
* Improved caching in AbstractChannel.toString()
* Improved overall OIO thread naming (thread ID number is a large number which doesn't look good though.  will fix it later)
2010-06-30 09:17:08 +00:00
Trustin Lee
5518344bc3 NETTY-335 Remove deprecated elements 2010-06-30 05:48:23 +00:00
Trustin Lee
f88108e876 Fixed a bug: NETTY-329 ChannelBuffer.slice(index, length) returns a slice with wrong reader/writerIndex
* HeapChannelBuffer.slice(index, length) and ByteBufferBackedChannelBuffer.slice(index, length) should update indexes when they created a slice using duplicate()
* Added relevant test cases
2010-06-21 07:00:03 +00:00
Trustin Lee
cbe26db0e4 Replaced email with homepage url 2010-06-14 11:07:44 +00:00
Trustin Lee
2571564eb2 * Updated the author tag
* Added svn:keywords property
2010-06-14 11:06:45 +00:00
Trustin Lee
800fcd0ca2 More tests 2010-06-14 11:03:14 +00:00
Trustin Lee
6d0fb256c6 Fixed issue: NETTY-325 (QueryStringDecoder doesn't properly handle missing query string values and other corner cases)
* Rewrote QueryStringDecoder based on Benoit's work
* Added a test case for QueryStringDecoder
2010-06-14 10:57:48 +00:00
Trustin Lee
5edc4e16aa * StaticChannelPipeline's constructor should stop when a null is encountered
* Added a test case for StaticChannelPipeline
2010-05-06 07:00:52 +00:00
Trustin Lee
b134bfb974 Comment 2010-05-04 01:48:52 +00:00
Trustin Lee
8c490ed6e5 Wrong inception year 2010-05-04 01:47:43 +00:00