Commit Graph

356 Commits

Author SHA1 Message Date
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
Trustin Lee
d1bafbc65f * Fixed a problem where 'Expires' cookie attribute is misinterpreted
* CookieEncoder now uses Cookie.getVersion() to determine the cookie version instead of constructor parameter
2009-03-13 14:45:43 +00:00
Trustin Lee
32ddc4541d Updated author tags 2009-03-13 13:57:24 +00:00
Trustin Lee
f04003abbe CookieEncoder / CookieDecoder should not urlencode/urldecode attributes except for the value 2009-03-13 13:53:53 +00:00
Trustin Lee
0da3fcbe51 Fixed a bug where CookieEncoder generates a cookie with 'version=2' 2009-03-13 12:59:29 +00:00
Trustin Lee
1912bfc81d Fixed test failures 2009-03-13 12:42:03 +00:00
Trustin Lee
b796a1d97b * Renamed Cookie.portList to Cookie.ports and its type from int[] to Set<Integer>
* Renamed CookieHeaderNames.PORTLIST to CookieHeaderNames.PORT
2009-03-13 12:32:47 +00:00
Andy Taylor
b8f03d60e4 added cookie v1 and v2 decoding support 2009-03-13 11:58:29 +00:00
Andy Taylor
395d57b6eb added cookie v1 and v2 encoding support 2009-03-13 10:12:51 +00:00
Trustin Lee
bd184cc665 Renamed TestOptions to TestUtil 2009-03-12 00:42:41 +00:00
Trustin Lee
ebdfec8ec0 Reduced the number of InetAddress.getLocalHost() calls in test cases 2009-03-12 00:14:17 +00:00
Trustin Lee
ebe5ad3ef2 JUnit should ignore TestOptions 2009-03-09 19:16:59 +00:00
Trustin Lee
ddd756b276 Better option handling 2009-03-09 19:07:11 +00:00
Trustin Lee
e6cc8fb5eb Printed a warning message when timing tests are disabled 2009-03-09 19:05:59 +00:00
Trustin Lee
a5a7181615 Renamed TimingTestUtil to TestOptions 2009-03-09 19:04:35 +00:00
Trustin Lee
0a72ffeacd Added an option to exclude timing tests 2009-03-09 19:03:48 +00:00
Trustin Lee
019f5f0292 Fixed a problem where *SocketServerBootstrapTest fails when an O/S doesn't allow modifying the buffer size. 2009-03-05 15:33:14 +00:00
Trustin Lee
ae22b0aaa1 Fixed failing tests 2009-02-21 19:34:22 +00:00
Trustin Lee
121c88d7e2 * Removed TimeBasedUuidGenerator
* Fixed a bug where DefaultChannelGroup doesn't recognize the new Integer ID
2009-02-16 12:02:06 +00:00
Trustin Lee
c4b1e5a011 * Renamed ExecutorShutdownUtil to ExecutorUtil
* Added ExternalResourceUtil
2009-01-19 05:23:41 +00:00
Trustin Lee
e9b841757a * Replaced duplicate executor shutdown code with ExecutorShutdownUtil.shutdown()
* Applied the same workaround which was applied to ExecutorShutdownUtil.shutdown() to NioProviderMetadata
2009-01-02 16:57:15 +00:00
Trustin Lee
22b3885fe5 Automatic code cleanup 2008-12-08 08:24:48 +00:00
Trustin Lee
43de025c7c More accurate client shutdown time test 2008-12-06 14:47:55 +00:00
Trustin Lee
0830444fc8 Resolved issue: NETTY-84 Replace ChannelFactory.getExternalResource() with ChannelFactory.releaseExternalResources() 2008-11-28 11:18:21 +00:00
Trustin Lee
96c98f636a Simplified some test code using ChannelFactoryResource.release() 2008-11-26 10:22:55 +00:00
Trustin Lee
5c494dd045 More precise shutdown time test 2008-11-25 02:57:04 +00:00
Trustin Lee
c979563dcd Trying to figure out who is failing NioServerSocketShutdownTimeTest .. 2008-11-20 11:50:01 +00:00
Trustin Lee
0e3679e919 Fixed a problem where AbstractSocketSslEchoTest doesn't close all channels when a connection attempt fails. 2008-11-16 16:25:08 +00:00
Trustin Lee
feac0d6a3d Fixed a problem where AbstractSocketSslEchoTest doesn't close all channels when handshake fails. 2008-11-16 16:22:27 +00:00
Trustin Lee
9aec8119cb Used logger instead of syserr 2008-11-16 13:34:24 +00:00
Trustin Lee
4cd9105eeb Made sure all exceptions are printed (2nd try) 2008-11-16 13:30:42 +00:00
Trustin Lee
ea94ea850b Fixed a problem where not all exceptions are logged immediately in AbstractSocketSslEchoTest 2008-11-16 11:43:44 +00:00
Trustin Lee
c848b8cc58 Fixed incorrect timing test due to slow MD5 algorithm initialization 2008-11-16 11:22:40 +00:00
Trustin Lee
b3f39c1bb3 Additional debug information in AbstractSocketSslEchoTest 2008-11-16 10:33:00 +00:00
Trustin Lee
09ef8e8964 Comment clean up as advised 2008-11-14 07:45:53 +00:00
Trustin Lee
c5a211e07a Used ExpectedError instead of Exception to tell that the failure is expected obviously 2008-11-08 11:59:23 +00:00
Trustin Lee
288c693f62 Code cleanup 2008-11-07 08:27:28 +00:00
Trustin Lee
fcc0087eb2 Reverted temporary code which was mistakenly checked in 2008-11-07 08:25:52 +00:00
Trustin Lee
87dd4adbc7 Adjusted regression test duration 2008-11-07 08:24:58 +00:00
Trustin Lee
7fe42c4c4f Increased test timeout to avoid Hudson false alarm 2008-11-07 02:43:27 +00:00
Trustin Lee
b50cc2b025 Removed an unused import 2008-11-07 01:50:51 +00:00
Trustin Lee
79fe2324c9 Fixed RejectedExecutionException in the OIO-OIO SSL echo test 2008-11-06 16:21:35 +00:00
Trustin Lee
7db3eacbb4 Potential fix for OIO-OIO SSL echo test 2008-11-06 15:56:05 +00:00
Trustin Lee
dddf14f79a Fixed a bug: NETTY-56 (The ChannFuture returned by SslHandler.handshake() is not completed when the associated Channel is closed during handshake.) 2008-10-03 02:53:57 +00:00
Trustin Lee
b14b4c8714 Incorrect option name 2008-09-10 12:24:58 +00:00
Trustin Lee
20bbd3e38f Workaround for blocking I/O transport write-write dead lock 2008-09-10 12:01:28 +00:00
Trustin Lee
d39fd30f09 Suppressed more warnings 2008-09-06 09:34:40 +00:00
Trustin Lee
beb0fb0d6f * Added DummyHandler for testing
* Suppressed unnecessary warning messages
2008-09-06 09:30:20 +00:00
Trustin Lee
ef6404ae0c Fixed ClosedChannelException in various integration tests 2008-09-05 02:07:10 +00:00
Trustin Lee
e1709c8e4b * Added another test case that checks shutdown time
* Optimized the hex dump table generation in ChannelBuffers
2008-09-05 00:57:22 +00:00
Trustin Lee
a056b9af63 * Fixed randomly failing ChannelBuffers.compareTo test
* Used shutdownNow instead of shutdown to shorten the test running time
* Added a test case that checks shutdown time
2008-09-05 00:01:33 +00:00
Trustin Lee
500f972367 Missing empty line between methods 2008-09-04 12:38:17 +00:00
Trustin Lee
79499476c1 * Added ReadOnlyChannelBufferTest
* Added ReadOnlyChannelBuffer.toByteBuffers
2008-09-04 12:37:37 +00:00
Trustin Lee
d9a37093e2 More test cases and trivial fixes 2008-09-04 11:53:44 +00:00
Trustin Lee
1d1e88397e Fixed a potential race condition in AbstractSocketStringEchoTest 2008-09-04 11:29:22 +00:00
Trustin Lee
486eff6378 Suppressed a warning log caused by AbstractSocketServerBootstrapTest 2008-09-04 11:25:16 +00:00
Trustin Lee
79743b0528 Tiny micro optimization on test data generation 2008-08-29 00:26:54 +00:00
Trustin Lee
8da05713fe Fixed issue: NETTY-40 (SslHandler dead lock on Oio-Oio communication)
* More fine-grained lock acquisition
2008-08-29 00:23:47 +00:00
Trustin Lee
506b7aeb05 Package renaming... (forgot to add 'codec') 2008-08-28 12:31:39 +00:00
Trustin Lee
e03ce3e661 Decreased the test loop count 2008-08-28 12:15:38 +00:00
Trustin Lee
7d1ec11787 * Fixed issue: NETTY-36 DelimiterBasedFrameDecoder can choose a wrong delimiter when more than one delimiter are specified.
* A bunch of integration tests (78% test coverage)
2008-08-28 11:36:26 +00:00
Trustin Lee
605ac3d35a * Improved socket echo integration test to check the state more strictly.
* Fixed issue NETTY-35 (ChannelFuture returned by Channel.close() is not notified if SslHandler is in the pipeline.)
2008-08-28 09:07:34 +00:00
Trustin Lee
ddbabc98ef Integration tests (echo test) 2008-08-27 13:14:28 +00:00
Trustin Lee
4144017b75 * Fixed a bug where CompositeChannelBuffer.order() returns a wrong order
* Fixed a bug where ChannelBuffer.wrappedBuffer() can generate a non-EMPTY_BUFFER when the buffer is actually empty
2008-08-27 12:21:04 +00:00
Trustin Lee
7741934601 More test cases.. 2008-08-27 07:17:41 +00:00
Trustin Lee
deb5760801 Added a test case for ChannelBufferIndexFinder 2008-08-27 05:45:45 +00:00
Trustin Lee
98f533db96 Improved Client/ServerBootstrapTest to run with both oio and nio socket transport 2008-08-26 16:09:00 +00:00
Trustin Lee
94831112ee More test cases 2008-08-26 15:57:21 +00:00
Trustin Lee
2878a47222 Added author and version tags 2008-08-26 15:39:34 +00:00
Trustin Lee
a7c181072e Fixed issue: NETTY-33 (CompositeChannelBuffer.copy() does not respect the byte order.)
* More test cases..
2008-08-26 15:37:08 +00:00
Trustin Lee
6f34eca0b6 More test cases 2008-08-26 14:15:10 +00:00
Trustin Lee
3b69dd7ddb Fixed issue: NETTY-32 (ChannelBuffer.duplicate() sometimes doesn't copy all properties) 2008-08-26 11:08:55 +00:00
Trustin Lee
a57e21aee7 More test cases 2008-08-26 10:54:42 +00:00
Trustin Lee
834b373a96 Fixed issue: NETTY-31 (ChannelBuffers.equals() fails to compare the buffers with different endianness)
* Same fix to compareTo
2008-08-26 10:52:21 +00:00
Trustin Lee
f4165b10e9 Fixed issue: NETTY-31 (ChannelBuffers.equals() fails to compare the buffers with different endianness)
* Made sure to swap the order if the two buffers have different orders
2008-08-26 10:35:36 +00:00
Trustin Lee
48929afd60 Fixed a bug where DuplicateChannelBufferTest doesn't test DuplicateChannelBuffer 2008-08-26 07:39:39 +00:00
Trustin Lee
57551914af * More tests
* Fixed bulk transfer bugs in the CompositeChannelBuffer
2008-08-26 07:30:41 +00:00
Trustin Lee
8f3799c02e * More tests
* Fixed bugs related with bulk byte transfer
2008-08-26 07:12:04 +00:00
Trustin Lee
6801298956 More test coverage 2008-08-26 05:43:41 +00:00
Trustin Lee
1ae5312777 Fixed compilation errors in JDK 1.6 and 1.5 - was using 1.7 :-( 2008-08-25 13:02:02 +00:00
Trustin Lee
db1ee35228 Can't reproduce anymore (!?) 2008-08-25 12:51:54 +00:00
Trustin Lee
e5f1639f24 * JdkLogger passes null method name now - it's allowed in the specification explicitly.
* Better failure tracking in ServerBootStrapTest (still not sure if it's reproduceable)
2008-08-25 12:46:33 +00:00
Trustin Lee
10bc616b4b Fixed issue: NETTY-30 (JDK Logging is slow.)
* Used logp instead of log
2008-08-25 12:06:27 +00:00
Trustin Lee
a4edbd444e * Added SucceededChannelFutureTest
* Added FailedChannelFutureTest
2008-08-25 11:35:12 +00:00
Trustin Lee
e2262e135a * Forgot to update the pom.xml
* Added CompleteChannelFutureTest
2008-08-25 11:27:30 +00:00
Trustin Lee
a8c5f840bd Fixed a problem where an executor shuts down too early 2008-08-25 11:12:06 +00:00
Trustin Lee
9dabeb4e47 Added test cases for the logging package 2008-08-25 11:02:30 +00:00
Trustin Lee
f22f07ec51 More test coverage 2008-08-25 10:17:17 +00:00
Trustin Lee
6ff5a87d01 * Removed SilentLoggerFactory which is not so useful
* Added ClientBootstrapTest
* Added ServerBootstrapTest
* Fixed a unexpected behavior when null localAddress or remoteAddress is specified
2008-08-25 08:44:35 +00:00
Trustin Lee
3dbe973735 * Simplified the SecurityManager implementation in DebugUtilTest
* Added ThreadRenamingRunnableTest
2008-08-25 06:05:21 +00:00
Trustin Lee
4d55da5c7e Added StackTraceSimplifierTest 2008-08-25 05:48:45 +00:00
Trustin Lee
60f08c5d9f Added SwitchableInputStreamTest 2008-08-25 05:26:54 +00:00
Trustin Lee
1194ac0f39 Added MapBackedSetTest 2008-08-25 05:15:33 +00:00
Trustin Lee
7b8d483044 Added ImmediateExecutorTest 2008-08-25 04:58:35 +00:00
Trustin Lee
1a5ccaf98d Added DebugUtilTest 2008-08-25 04:53:52 +00:00
Trustin Lee
ca249684a6 * Renamed ConvertUtil to ConversionUtil
* Added ConversionUtilTest
2008-08-25 04:42:18 +00:00
Trustin Lee
c84b1bc139 * Added MapUtilTest
* Added SilentLoggerFactory for a testing purpose
2008-08-25 04:31:44 +00:00
Trustin Lee
d2c157d32d Added one more minimal test case to TimeBasedUuidGeneratorTest 2008-08-25 04:01:07 +00:00
Trustin Lee
6b995456fe Added a test case for TimeBasedUuidGenerator 2008-08-25 03:58:01 +00:00
Trustin Lee
c95b219a56 * Extracted Bootstrap.isOrderedMap into util.MapUtil
* More test coverage for Bootstrap
2008-08-25 03:38:13 +00:00
Trustin Lee
bd51f12fb7 More test cases for Bootstrap 2008-08-18 03:01:24 +00:00
Trustin Lee
a421f94909 A couple more test cases for Bootstrap 2008-08-18 02:54:03 +00:00
Trustin Lee
82f4d193b1 Added test cases for Bootstrap 2008-08-18 02:46:41 +00:00
Trustin Lee
19fcbac575 Added unsigned integer access methods 2008-08-10 00:52:59 +00:00
Trustin Lee
0202a01cf1 * Changed all package names to org.jboss.netty.*
* Added .classpath, .project and target to svn:ignore
2008-08-08 01:40:10 +00:00
Trustin Lee
1bc79ea2a4 * Updated all license headers
* Added missing license headers
* Updated mailing list address and my e-mail address
2008-08-08 01:27:24 +00:00
Trustin Lee
aef2ab453a Initial import. Needs to:
* rename packages
* update license information
2008-08-08 00:37:18 +00:00