Commit Graph

356 Commits

Author SHA1 Message Date
Norman Maurer
4bf2257d1a Try to add a testcase to reproduce #343 2012-05-19 20:51:25 +02:00
Norman Maurer
33df31d7b7 Fix formatting 2012-05-19 20:39:00 +02:00
Norman Maurer
a2b3fc8367 Remove @Override annotation from interface implements 2012-05-19 20:34:24 +02:00
blucas
c052f90410 #337 back-port ipfilter and traffic to 3 branch (Fix test package method override) 2012-05-18 18:00:16 +01:00
blucas
31eb8595be #337 back-port ipfilter and traffic to 3 branch (Fix test package) 2012-05-18 17:57:30 +01:00
blucas
98b06c6237 #337 back-port ipfilter and traffic to 3 branch 2012-05-18 17:33:19 +01:00
Jeff Pinner
ba76d5b515 SPDY: fix for mozilla firefox bug 754766 2012-05-17 11:36:57 +09:00
norman
f603494424 Make sure CompositeChanneBuffer does not throw a UnsupportedOperationException if discardReadBytes() discard the whole content of the buffer. See #325 2012-05-15 13:14:23 +02:00
Norman Maurer
7b7c585cf3 Hide the TooBigObjectException and just throw a TooLongFrameException 2012-05-14 20:10:58 +02:00
norman
1f866fc7ad Add decoder/encoder for jboss marshalling
Use property for version
2012-05-14 17:15:45 +02:00
Trustin Lee
d24c48cbfb Code clean up 2012-05-14 23:06:14 +09:00
Trustin Lee
b6aa509f32 Add ChannelFuture.sync() and syncUninterruptibly()
- Deprecate rethrowIfFailed() which is inferior to the new ones
2012-05-14 22:24:45 +09:00
norman
33cee3dc9d Backport support for nio udp multicast to 3 branch. See #216 2012-05-10 10:15:40 +02:00
norman
d920c6dc95 Backport support for nio udp multicast to 3 branch. See #216 2012-05-10 09:35:24 +02:00
Norman Maurer
cfc52b9d49 Add more tests for ChunkedWriteHandler 2012-05-06 19:30:50 +02:00
Norman Maurer
ccfa196b3b Add test for fix of regression in ChunkedWriteHandler. See #310 2012-05-06 19:30:41 +02:00
Norman Maurer
7e00f614d3 Remove benchmakr which use used as proof of concept 2012-04-24 20:20:17 +02:00
Norman Maurer
f0f152085a Merge pull request #271 from netty/gathering_write_support
Use gathering writes if java version is >= 7 . See #269
2012-04-24 11:06:30 -07:00
Norman Maurer
c134a522c3 Allow to specify the local address when connect. See #276 2012-04-21 15:51:51 +02:00
Norman Maurer
510692d7e7 Add benchmark for gathering writes. See #269 2012-04-19 17:45:41 +02:00
Norman Maurer
3d762a7594 Make it configurable if the HttpClientCodec should throw an exception on close when the response and request count does not match. Default is false. See #266 2012-04-17 20:15:20 +02:00
Norman Maurer
fdc27db45d Add also tests for HttpClientCodec that tests handling chunked responses. See #256 amd #259 2012-04-15 20:54:57 +02:00
Norman Maurer
ad7c25866e Add test for HttpClientCodec that tests handling of missing responses. See #256 amd #259 2012-04-15 15:39:35 +02:00
Norman Maurer
d1ec95a320 Add test for HttpClientCodec that tests handling of missing responses. See #256 amd #259 2012-04-15 15:37:39 +02:00
Trustin Lee
2c2d64a75e Merge branch '3' of github.com:netty/netty into 3 2012-04-12 14:15:02 +09:00
Trustin Lee
1d74c13fe7 Remove Redis client codec (will continue work on master) 2012-04-12 14:13:21 +09:00
Norman Maurer
ef530698c5 Take care of releasing the local channel when releaseExternalResources() is called. See #235 2012-04-09 20:06:20 +02:00
Norman Maurer
403fdb2035 Add test case to show that issue #235 is due some incorrect usage 2012-04-09 16:30:36 +02:00
Norman Maurer
ef6056f5f9 Let the test pass in osx also 2012-04-04 19:05:57 +02:00
norman
6995701f20 Fix UDP nio impl and add some tests for it 2012-04-03 07:44:28 +02:00
Trustin Lee
3e1a055f36 Overall Redis codec cleanup (more to come)
- Prefer ChannelBuffer over byte[]
- Hide the methods that users are not usually interested in
- Rename RedisEncoder/Decoder to RedisCommandEncoder/ReplyDecoder
- Add getter methods to Replies
- Rename getX() to X() because I like it for read-only properties
2012-03-30 22:29:04 +09:00
Trustin Lee
6cdd9ac711 Code cleanup 2012-03-30 12:22:56 +09:00
norman
b98ce36608 Move RedisClient to example package and license header 2012-03-12 07:08:00 +01:00
Norman Maurer
eabad22663 Fix up tests 2012-03-11 20:55:18 +01:00
Sam Pullara
f7a1ec61f2 Fixed several bugs in the replay state implementation 2012-03-10 22:12:17 -08:00
Sam Pullara
a0a59d916d passes the JDK5 and license stuff wow 2012-03-10 12:04:05 -08:00
Sam Pullara
b3cdeff919 suggestions from both repositories applied 2012-03-10 10:04:26 -08:00
Sam Pullara
0776911ed1 Redis client codec 2012-03-10 10:04:26 -08:00
Trustin Lee
1df328034f Fix #202 - Remove Twitter license
Twitter signed CCLA today.
2012-03-01 14:01:31 -08:00
norman
c12717bfed Correctly decode URI in QueryStringDecoder. See #189 2012-02-15 08:35:53 +01:00
Trustin Lee
6e8e836b2e Fix license headers 2012-02-07 17:40:16 +09:00
Jeff Pinner
3f9e89c17d Merge remote-tracking branch 'upstream/3.2' into spdy_framing_layer_3_2 2012-02-03 16:23:41 -08:00
Jeff Pinner
9fcb4643b1 SPDY Protocol Framing Layer Tests 2012-02-03 16:22:39 -08:00
Trustin Lee
0ee43f770f Remove a unused field 2012-02-02 16:18:27 +09:00
Jeff Pinner
aecce011e8 Fix #164: HttpContentCompressor accepts encodings whose qvalue is 0 2012-01-31 14:34:21 -08:00
Trustin Lee
c95f9314f3 Fix #153: Add ChannelFuture.rethrowIfFailed() 2012-01-19 13:34:28 +09:00
Trustin Lee
009300fad3 Overall cleanup / Add lost old jzlib headers 2012-01-13 17:39:53 +09:00
Trustin Lee
e2109b236b Fix various checkstyle violations
Backported from master
2012-01-11 20:17:47 +09:00
Trustin Lee
72a8159344 Issue #141: hashdos security vulnerability in QueryStringDecoder and possibl
* Limited maximum number of parameters to 1024 by default and made the limitation configurable
* QueryStringDecoder is now able to handle an HTTP POST content
* Backported the improvements from master
2011-12-30 18:00:42 +09:00
Norman Maurer
43f72b42f7 Rename test class to be more inline with the rest of the project 2011-12-11 11:28:31 +01:00
Chavdar Botev
f93e356003 fix for issue 113 2011-12-10 14:58:27 -08:00
Trustin Lee
2231c31f9f Fix license headers / Remove JBoss.org style 2011-12-09 14:16:33 +09:00
Trustin Lee
683d678c17 Remove @author and @version / Remove COPYRIGHT.txt
* The new copyright header replaces @author
* COPYRIGHT.txt is irrelevant to us now.
2011-12-09 13:44:53 +09:00
Trustin Lee
f9b879e73f http://jboss.org/netty/ to http://netty.io/ 2011-12-09 12:47:26 +09:00
norman
9424c26caf Merge pull request #75 to the 3.2 branch. Also remove @override
annotation for interface implementation to make it possible to compile
and use with java5
2011-11-23 15:07:02 +01:00
Trustin Lee
0da39901c8 Consistent fail-fast property
* DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder must
expose the fail-fast option consistently
* Renamed failImmediatelyOnTooLongFrame to failFast
2011-11-22 18:39:11 +09:00
norman
852e0a1ed8 Revert "Revert "Adjust to current master""
This reverts commit 91ea9028f4.
2011-11-11 08:38:10 +01:00
norman
91ea9028f4 Revert "Adjust to current master"
This reverts commit 16792a22be.
2011-11-11 08:36:12 +01:00
norman
16792a22be Adjust to current master 2011-11-10 09:28:07 +01:00
norman
6231030f2b Add failImmediatelyOnTooLongFrame option to DelimiterBasedFrameDecoder
and LengthFieldBasedFrameDecoder
2011-11-10 09:03:56 +01:00
Trustin Lee
b0d0502413 Added a TooLongFrameException recovery test for DelimiterBasedFrameDecoder 2011-08-19 11:11:16 +09:00
Trustin Lee
3effb0d1b0 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:05:24 +09:00
Trustin Lee
5cdcc67086 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:25:26 +09:00
Trustin Lee
2d35bf2155 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:29 +09:00
nibin
bc8b92e1f7 * 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

Conflicts:

	src/test/java/org/jboss/netty/handler/codec/http/CookieEncoderTest.java
2011-07-29 13:09:33 +09:00
Daniel Bevenius
66566a1acd 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:17 +09:00
Trustin Lee
e395aacbd4 Imported the 3.2 branch from Netty SVN repository 2010-11-12 00:28:17 +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
Trustin Lee
55b0bc2c2c Related issue: NETTY-257 Add the getters and setters for a String and a char[] to ChannelBuffer
* Added getString() and readString()
* Renamed toString(int, int, Charset) to getString(...)
* Removed some toString() methods which were added in the previous alpha releases - I will add an alternative method later
2010-01-14 11:44:11 +00:00
Trustin Lee
33766a1f4f Removed the deprecated tests 2009-12-29 05:54:38 +00:00
Trustin Lee
24b59bbfa9 Resolved issue: NETTY-268 (Use Charset instead of String to represent a character set.)
* Replaced String charsetName with Charset
* Added o.j.n.util.CharsetUtil
2009-12-29 05:52:00 +00:00
Trustin Lee
578def7a9b Fixed issue: NETTY-260 ZlibEncoder.close() and SslHandler.handshake/close() methods do not require a parameter
* SslHandler implements LifeCycleAwareChannelHandler to retrieve its context
* SslHandler.handshake() and close() do not need an argument anymore
* Deprecated the old methods
2009-12-17 08:44:38 +00:00
Trustin Lee
4649d57097 More strict testing 2009-11-19 10:09:40 +00:00
Trustin Lee
abe2a88d60 Resolved issue: NETTY-255 (Make CookieDecoder more robust)
* Modified CookieDecoder not to recognize commas and semicolons as attribute separators if it's impossible to decode the next entry.
* Added a test case for decoding Google Analytics cookie which raised this issue initially
2009-11-19 09:46:30 +00:00
Trustin Lee
9e44dbada5 Resolved issue: NETTY-254 Do not do lazy-initialization in dynamic buffer
* No lazy initialization anymore for DynamicChannelBuffer - it just causes confusion to users!
2009-11-19 08:38:46 +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
20798ee429 This test case cannot reproduce the problem - removing 2009-10-27 04:11:43 +00:00
Trustin Lee
d0890c1af0 Wrong author 2009-10-27 01:18:45 +00:00
Trustin Lee
c079291012 Added a test case that makes sure the workaround for the 'spinning selector' bug works. 2009-10-27 01:18:17 +00:00
Trustin Lee
8eba49c0cd Resolved issue: NETTY-203 Encoding frames as Google Protocol Buffer base 128 varints (32-bit)
* Applied Tomasz's patch
* Renamed ProtobufVariant32FieldPrepender to ProtobufVariant32LengthFieldPrepender
* Code cleanup
2009-10-14 06:27:53 +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
42df101341 Added missing header 2009-10-14 05:34:18 +00:00
Trustin Lee
ca4c32df68 * Merged Frederic's 'aggregate' branch
* Refactored Frederic's test cases
* Code clean up
2009-10-13 07:54:18 +00:00
Trustin Lee
b11ef6ca9b Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
Trustin Lee
1509f64db1 Relaxed assertion in discardReadBytes test 2009-08-28 05:53:16 +00:00
Trustin Lee
d842533135 Fixed a failing test 2009-08-21 04:29:48 +00:00
Trustin Lee
c861adf6e0 Fixed a test failure where OioSocketServerBootstrapTest blocks indefinitely 2009-08-19 09:26:01 +00:00
Trustin Lee
f59f480fb7 Code clean up 2009-07-14 05:28:07 +00:00
Trustin Lee
caf0a97ba3 Fixed license headers 2009-06-19 17:48:17 +00:00
Trustin Lee
70e90fc85e Fixed issue: NETTY-176 toByteBuffer() and slice() sometimes do not respect byte order
* Added tests to make sure all ChannelBuffer implementations are fixed
* Fixed the byte order problem in HeapChannelBuffer
2009-06-17 08:08:11 +00:00
Daniel Bevenius
40bf0a63f1 Unittest and javadoc. 2009-06-13 11:30:02 +00:00
Trustin Lee
0067371e24 Organized imports 2009-06-12 02:53:26 +00:00
Trustin Lee
899b16678f * Merged recent changes in the trunk to the NIO UDP transport
* Other miscellaneous modifications like typo fix
2009-06-11 06:10:46 +00:00
Trustin Lee
3473135c7b Updated @author tags 2009-06-11 05:03:53 +00:00
Trustin Lee
d202db83f0 Updated license headers 2009-06-11 05:00:48 +00:00
Daniel Bevenius
c01e997a45 Added some javadocs and removed unsed code and excessive comments. 2009-06-11 04:33:07 +00:00
Trustin Lee
effbe32fdb Merged Daniel's NIO UDP transport into trunk - needs more review and cleanup but looks OK in general 2009-06-11 00:48:49 +00:00
Trustin Lee
734a5a46d4 Fixed issue: NETTY-172 Let user choose the I/O thread names
* Added ThreadNameDeterminer
* Moved ThreadRenamingRunnable from org.jboss.netty.util.internal to org.jboss.netty.util because it should be accessible by user
2009-06-10 08:56:37 +00:00
Trustin Lee
ffe2831502 Fixed issue: NETTY-162 directBuffer cannot create buffer with LITTLE_ENDIAN endianness
* Added test case for little endian direct buffer
* Fixed a problem where the sliced buffer's endianness is not set
2009-05-30 06:50:09 +00:00
Trustin Lee
1f6591feb2 Suppressed error log which occurs only in Windows on connection attempt failure, because it can mislead the developer to think there's a bug in the test / impl 2009-05-22 05:41:47 +00:00
Trustin Lee
58ef4d1cc2 More timing tolerance to CookieDecoderTest 2009-04-21 03:32:11 +00:00
Trustin Lee
69ac7d174c Replaced the usage of SimpleChannelHandler with SimpleChannelUpstreamHandler whereever possible 2009-04-17 07:33:32 +00:00
Trustin Lee
5a67c13279 A newline between methods 2009-04-16 05:09:51 +00:00
Trustin Lee
f61412c828 More tolerance in CookieEncoderTest 2009-04-16 05:09:03 +00:00
Trustin Lee
9252f449bd Better diagnosis message for AbstractSocketSslEchoTest 2009-04-15 13:50:06 +00:00
Trustin Lee
8c172a5a1d More diagnosis message for AbstractSocketSslEchoTest 2009-04-15 13:45:05 +00:00
Trustin Lee
e3fc229b03 A test case for NETTY-142 ReplayingDecoder calls decodeLast with unreplayable buffer 2009-04-08 07:24:14 +00:00
Trustin Lee
ec0b3fe3f2 * Moved internal utility classes to org.jboss.netty.util.internal
* Made org.jboss.netty.util public
* Moved ObjectSizeEstimator and its implementation to org.jboss.netty.util
2009-04-03 07:41:54 +00:00
Trustin Lee
0aa5803632 0.9 sec -> 1.0 sec 2009-03-22 15:10:13 +00:00
Trustin Lee
acf7a9d46f Made sure the sleeping Runnable in ImmediateExecutorTest sleeps more than 1 sec 2009-03-22 15:09:40 +00:00
Trustin Lee
a5ab271dc7 Deprecated CompatibleObjectDecoder 2009-03-16 07:52:19 +00:00
Trustin Lee
880241366b Removed unnecessary System.out.println 2009-03-16 04:38:43 +00:00
Trustin Lee
c4269c1697 Changed ImmediateExecutorTest to use nanoTime 2009-03-16 03:59:31 +00:00
Trustin Lee
701d8a8aaa Made sure the encoded cookie conforms to the RFC 2009-03-14 13:35:10 +00:00
Trustin Lee
eaca45eb8a * Reimplemented CookieDecoder to understand quoted-strings 2009-03-14 13:13:28 +00:00
Trustin Lee
3e2bf2e163 A little bit more tolerance 2009-03-13 17:09:31 +00:00
Trustin Lee
f78ac1f29a A little bit more tolerance 2009-03-13 17:08:25 +00:00
Trustin Lee
e4c283fb89 Avoid timing errors 2009-03-13 16:43:39 +00:00
Trustin Lee
9e0e310ffe * Improved CookieDecoder to be more tolerant
* Added a test case for comma delimited cookies
2009-03-13 16:33:49 +00:00
Trustin Lee
dc61906620 Fixed test failures 2009-03-13 15:53:52 +00:00
Trustin Lee
3e6f638449 Removed the unnecessary last semicolon 2009-03-13 15:48:23 +00:00
Trustin Lee
efd5af9313 Brought back the encode() method of CookieEncoder 2009-03-13 15:46:41 +00:00
Trustin Lee
b6cfc24127 Handles client-side cookie much better now 2009-03-13 15:29:54 +00:00