Commit Graph

3666 Commits

Author SHA1 Message Date
Trustin Lee
4d13ccc109 Fixed failing tests 2008-08-25 11:04:01 +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
4f276cf52e Moved inner classes out to top level classes for easier testing 2008-08-25 10:16:56 +00:00
Trustin Lee
b4d84ce73b Fixed issue: NETTY-28 (Channel.compareTo() can return 0 for different channels.)
* Changed AbstractChannel.compareTo(Channel) to use the id of the channels instead of the identity hash codes
2008-08-25 08:57:03 +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
5a63b91c49 Removed unused constructor in MapBackedSet 2008-08-25 05:00:13 +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
a0d9a59206 Fixed issue: NETTY-26 (Infinite blocking in old blocking I/O transport.)
* Added a proper interrupt() call in OioWorker.close() to wake the worker thread up
2008-08-23 10:23:54 +00:00
Trustin Lee
b4c6d82be7 Fixed issue: NETTY-25 (Unnecessarily logged exception in the blocking I/O server socket)
* Suppressed the expected exception logging
2008-08-22 11:39:02 +00:00
Trustin Lee
abdefea703 [maven-release-plugin] prepare for next development iteration 2008-08-21 06:11:35 +00:00
Trustin Lee
71d876d0dd [maven-release-plugin] prepare release netty-3.0.0.CR2 2008-08-21 06:11:17 +00:00
Trustin Lee
9dd9b00851 Fixed issue: NETTY-24 (Move ChannelBuffer.EMPTY_BUFFER to ChannelBuffers.) 2008-08-21 05:54:59 +00:00
Trustin Lee
ff8f148990 Made sure debug mode is turned off if no, false, or 0 is specified. 2008-08-21 05:46:49 +00:00
Trustin Lee
5ac5611e51 Resolved issue: NETTY-23 (Simplify an exception stack trace.)
* Added DebugUtil and StackTraceSimplifier
* DefaultExceptionEvent and InternalLoggerFactory simplifies the stack trace unless Netty debug mode is enabled.
2008-08-21 05:38:43 +00:00
Trustin Lee
84ea016931 Forgot to check in ... 2008-08-20 08:22:05 +00:00
Trustin Lee
07f17cfd4f Fixed silly NPE in SslHandler 2008-08-20 07:06:10 +00:00
Trustin Lee
66f7d5a800 Fixed NETTY-21 and NETTY-22:
* ChannelBuffer.setBytes() and writeBytes() doesn't work when a NIO channel is specified.
* ChannelBuffer.setBytes() and writeBytes() should return -1 if the connection is closed.
* Changed NioWorker.read() to use ChannelBuffer.writeBytes()
2008-08-20 03:09:23 +00:00
Trustin Lee
edd969b384 Fixed slow write performance on some circumstance 2008-08-20 02:14:52 +00:00
Trustin Lee
e9e1b0ebe6 Even more optimization in NioWorker.write() 2008-08-20 01:38:21 +00:00
Trustin Lee
96e1cf0385 Fixed a problem with NIO constraint level detection in JRE 1.5 2008-08-20 01:37:15 +00:00
Trustin Lee
1ec42526d5 Related issue: NETTY-18 (Performance degradation when Channel.write() is called from outside an I/O thread (NIO transport)
* More precise constraint level detection.
2008-08-19 23:52:20 +00:00
Trustin Lee
4247232f51 Updated error message 2008-08-19 14:02:27 +00:00
Trustin Lee
e53b802def Relates issue: NETTY-18 (Performance degradation when Channel.write() is called from outside an I/O thread (NIO transport)
* Allowed a user to specify the NIO provider constraint level using the system property
* Added detectConstraintLevel() method to implement the constraint level autodetection
2008-08-19 14:01:41 +00:00
Trustin Lee
795b14a7b1 Relates issue: NETTY-18 (Performance degradation when Channel.write() is called from outside an I/O thread (NIO transport)
* Extracted NioWorker.WAKEUP_REQUIREMENT_LEVEL to NioProviderMetadata
2008-08-19 13:50:42 +00:00
Trustin Lee
3828b3754a Relates issue: NETTY-18 (Performance degradation when Channel.write() is called from outside an I/O thread (NIO transport)
* The bottleneck was too frequent wakeups.  I found that recent NIO implementations don't require wakeups to get / set interestOps.
2008-08-19 13:21:22 +00:00
Trustin Lee
07e0bf9413 Removed unused code in DefaultChannelFuture 2008-08-19 10:21:04 +00:00
Trustin Lee
65eda0902d Fixed an issue: NETTY-20 (Incorrect object length constraint in ObjectEncoder and ObjectEncoderOutputStream) 2008-08-19 10:17:00 +00:00
Trustin Lee
c76451b874 ObjectEncoder should allow zero estimated length as we did in DynamicChannelBuffer 2008-08-19 10:08:20 +00:00
Trustin Lee
6460f2a70f Runnable should be declared first as declared in the constructor 2008-08-19 10:06:55 +00:00
Trustin Lee
4d17646743 NETTY-19 Investigate if there's any copyright issue related with MINA
* Replaced NamePreservingRunnable with a new ThreadRenamingRunnable
2008-08-19 10:06:07 +00:00
Trustin Lee
094a4aaa8d Fixed issue: NETTY-17 (NioSocketChannelConfig.setWriteSpinCount() does nothing.)
* Added an assignment statement
2008-08-18 16:51:06 +00:00
Trustin Lee
1837b20051 Fixed an issue: NETTY-16 (SSL handshake failure should be reported to the ChannelPipeline.)
* Added SslHandler.newHandshakeFuture() and replaced all handshake future creation code with it
2008-08-18 11:30:58 +00:00
Trustin Lee
49bac1aa73 Fixed an issue: NETTY-15 (NullPointerException in SslHandler if handshake() method is not called explicitly.)
* Modified SslHandler.setHandshakeSuccess/Failure(..) to create a new handshakeFuture if not created yet.
2008-08-18 11:24:04 +00:00
Trustin Lee
2d6cfe9af6 Fixed an issue: Netty-14 (IllegalArgumentException when creating a dynamic buffer with 0 estimatedLength)
* Allowed zero initial capacity
* Made the exception message more specific
2008-08-18 11:17:42 +00:00
Trustin Lee
a7c73d2e52 Fixed issue: NETTY-13 (Stack overflow when an exception is thrown while processing ExceptionEvent)
* Renamed notifyException to notifyHandlerException
* Prevented infinite recursion caused by failure on exceptionCaught
2008-08-18 11:11:55 +00:00
Trustin Lee
a05905f64a Removed PMD and Cobertura plugin from the pom.xml - IDE will take care of them 2008-08-18 03:48:01 +00:00
Trustin Lee
4fe7536dbf Added reports directory to svn:ignore 2008-08-18 03:39:11 +00:00
Trustin Lee
a2eed846b4 Fixed NETTY-10 (Bootstrap.getPipeline() shold throw an IllegalStateException if pipelineFactory property is in use.) and NETTY-12 (Bootstrap.setPipeline() doesn't update the pipeline property at all.) 2008-08-18 03:07:05 +00:00
Trustin Lee
bd51f12fb7 More test cases for Bootstrap 2008-08-18 03:01:24 +00:00