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
Trustin Lee
d4049710bb
* Fixed dangling HTTP header entries in the linked list
...
* Added a test case
2010-05-04 01:46:15 +00:00
Trustin Lee
901b1f099a
* Deprecated ChannelPipelineCoverage (Will be replaced with something I will introduce later)
...
* Revised JavaDoc so that a user can learn how to manage handler states
* Revised JavaDoc about using ExecutionHandler
2010-02-01 11:46:09 +00:00
Trustin Lee
829114c37f
Organized imports
2010-02-01 06:25:23 +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
d87d81e398
Removed TestUtil.timingTestEnabled because it's not used in the CI servers
2010-01-26 03:02:34 +00:00
Trustin Lee
eeb4e8f7b1
Potential fix for failing timing tests
2010-01-26 02:57:41 +00:00
Trustin Lee
7b6fb53fc1
Use yield instead of sleep
2010-01-25 13:09:31 +00:00
Trustin Lee
5a897af28d
Resolved issue: NETTY-278 ChannelBuffer.bytesBefore() as an alternative to indexOf()
...
* Added various bytesBefore() methods to ChannelBuffer
* Deprecated the methods that could be replaced by bytesBefore()
2010-01-20 05:55:16 +00:00
Trustin Lee
fe73de3497
Fixed a failing test
2010-01-15 07:12:07 +00:00
Trustin Lee
57bdb3a4a5
Related issue: NETTY-257 Add the getters and setters for a String and a char[] to ChannelBuffer
...
* Reverted the previous addition of get/readString(...)
2010-01-15 05:28:17 +00:00
Trustin Lee
238bdc90b8
Fixed failing test
2010-01-14 12:24:59 +00:00
Trustin Lee
4ba7ae3749
Merged MapUtil to Bootstrap
2010-01-14 12:19:49 +00:00
Trustin Lee
a36ea0f3a4
Moved SwitchableInputStream and its test class to org.jboss.netty.handler.codec.serialization because it's used only there.
2010-01-14 12:15:04 +00:00
Trustin Lee
4d9b3346c5
Moved ImmediateExecutor and its test class to org.jboss.netty.handler.ssl because it's used only there. Actually there was another unrelated reference, so I simply forked.
2010-01-14 12:04:11 +00:00
Trustin Lee
23943ac256
Moved MapUtil and its test class to org.jboss.netty.bootstrap because it's used only there
2010-01-14 11:58:50 +00:00
Trustin Lee
0dbea6f162
* SecureChatServerHandler should use ChannelGroup where possible
...
* Moved MapBackedSet and its test class to org.jboss.netty.util becuase it's used only there
2010-01-14 11:56:38 +00:00