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