Trustin Lee
950a386d3f
Code cleanup
2008-09-30 01:53:24 +00:00
Trustin Lee
7de92967c2
Made MemoryAwareThreadPoolExecutor.shouldCount() extensible
2008-09-30 01:52:02 +00:00
Trustin Lee
85dc8f93f5
Fixed a bug where per-channel memory limitation didn't work correctly
2008-09-30 01:49:22 +00:00
Trustin Lee
8c15102bc3
Fixed issue NETTY-51 (MemoryAwareThreadPoolExecutor and its subtypes should use long instead of int to store the counters)
2008-09-30 00:42:04 +00:00
Trustin Lee
6f18c940dd
Fixed issue NETTY-50 (Dead lock in MemoryAwareThreadPoolExecutor)
...
* Made sure that the max memory size properties become immutable
2008-09-30 00:31:32 +00:00
Trustin Lee
50f043fa3e
Fixed issue NETTY-50 (Dead lock in MemoryAwareThreadPoolExecutor)
...
* Fixed incorrect release condition
2008-09-30 00:16:42 +00:00
Trustin Lee
d7c53437e9
Fixed errors in JavaDoc about OIO-based transport shutdown
2008-09-29 06:51:41 +00:00
Trustin Lee
8fb2f7c789
It's actually enough with a simple shutdown lock because we have only one acceptor thread.
2008-09-28 15:07:47 +00:00
Trustin Lee
dccc9f8665
* Improved the throughput of the server-side accept operation
...
* Added FastQueue.isEmpty()
2008-09-28 15:01:21 +00:00
Trustin Lee
4d17db6eb1
Using LinkedList seems to yield same or better performance
2008-09-28 14:21:38 +00:00
Trustin Lee
40b1f26c34
Made sure all segments are evaluated on poll for potentially better throughput (still proof-of-concept - getting better)
2008-09-28 14:12:28 +00:00
Trustin Lee
597cbd870c
Isolated unchecked cast warning from FastQueue.poll()
2008-09-28 13:57:17 +00:00
Trustin Lee
6611563c8c
Fixed a race condition in FastQueue
2008-09-28 13:52:49 +00:00
Trustin Lee
5170838e79
Added direct buffer support (disabled by default and can't be enabled without recompilation for now - should be fixed in 3.1.)
2008-09-28 12:51:50 +00:00
Trustin Lee
b64124efd6
* Renamed WriteMessageQueue to FastQueue, made it generic and optimized it
...
* Added ConcurrentFastQueue (proof of concept yet - slow)
2008-09-27 14:22:52 +00:00
Trustin Lee
a0d132a4d8
Moved WriteMessageQueue to the util package
2008-09-27 11:53:00 +00:00
Trustin Lee
f2c1734636
Reduced contention between I/O thread and writer
2008-09-26 12:28:09 +00:00
Trustin Lee
90ea9aa047
Formatting
2008-09-26 09:05:41 +00:00
Trustin Lee
362ecf640b
Fixed a bug where DiscardClient didn't work since the last optimization
2008-09-26 09:04:02 +00:00
Trustin Lee
39086edae6
Introduced an intermediary write buffer to reduce the contention
2008-09-26 08:31:33 +00:00
Trustin Lee
0241120ace
Optimization.. (reduced volatiles)
2008-09-26 07:00:30 +00:00
Trustin Lee
22d79a501d
Replaced ConcurrentLinkedQueue with LinkedBlockingQueue in NioSocketChannel
2008-09-26 04:31:41 +00:00
Trustin Lee
9f5468f7a7
Made sure NioWorker.taskQueue doesn't contain the same WriteTask
2008-09-26 03:32:26 +00:00
Trustin Lee
5f1ecc9022
Fixed throughput issue when messages are written from different threads than I/O worker threads
2008-09-26 03:02:31 +00:00
Trustin Lee
ebdcb21421
Made sure StackTraceSimplifier is always loaded
2008-09-26 02:57:10 +00:00
Trustin Lee
824e0034c4
A little bit of optimization
2008-09-26 00:43:14 +00:00
Trustin Lee
33c1932353
Dunno why but SocketChannel.accept() sometimes returns null.
2008-09-25 11:05:45 +00:00
Trustin Lee
9c0b5d1949
Better table L&F
2008-09-24 12:01:50 +00:00
Trustin Lee
87390319c8
Added the list of available options
2008-09-24 11:28:46 +00:00
Trustin Lee
274fa4aac5
A little bit of duplication to help understanding of asynchronous operation
2008-09-24 10:49:39 +00:00
Trustin Lee
d0d99ff6bc
More detailed explanation on ChannelFuture
2008-09-24 10:46:58 +00:00
Trustin Lee
320b7133a2
More clarification on ChannelHandlerContext
2008-09-24 10:37:19 +00:00
Trustin Lee
92be78df49
Rephrased the description of ChannelHandlerContext
2008-09-24 10:08:30 +00:00
Trustin Lee
0b8687cdeb
More explanation on the characteristics of bootstraps
2008-09-24 09:55:19 +00:00
Trustin Lee
6a759f0c63
Fixed grammar, typo, and brevity in Javadoc comments
2008-09-24 09:48:32 +00:00
Trustin Lee
d52b238d62
* Fixed issue: NETTY-46 Excessive exception creation overhead when there are many pending write requests in a closed channel
...
* Added NioWorker.cleanUpWriteBuffer()
* Fixed issue: NETTY-47 Channel is not closed immediately when write operation fails due to closure.
* Made sure to call NioWorker.close() in NioWorker.write(Un)Fair() and to call NioWorker.cleanUpWriteBuffer() in NioWorker.close();
2008-09-18 03:15:48 +00:00
Trustin Lee
9d4e51c7e0
shutdown() should be OK too
2008-09-10 12:11:40 +00:00
Trustin Lee
e34d494496
Fixed a bug where AbstractChannelBuffer.writeBytes() decreases the writerIndex when the specified channel is closed.
2008-09-06 09:11:18 +00:00
Trustin Lee
33a4a9f8e1
It's more correct to remove the connector handler in ClientBootstrap
2008-09-06 09:04:11 +00:00
Trustin Lee
985d260c8b
Cosmetic changes related with apiviz
2008-09-05 11:54:13 +00:00
Trustin Lee
08f006c764
Cosmetic changes related with apiviz
2008-09-05 11:38:00 +00:00
Trustin Lee
b8c1472003
Cosmetic changes related with apiviz
2008-09-05 10:58:37 +00:00
Trustin Lee
27cc323dce
Made sure flushPendingEncryptedWrites are called only when necessary
2008-09-05 01:58:35 +00:00
Trustin Lee
ab4d7f7660
Fixed an instruction about graceful shutdown - should use shutdownNow instead of shutdown for faster shutdown (and it's safe yet)
2008-09-05 00:59:07 +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
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
f2267eb39c
Removed unnecessary warning logs related with ClientBootstrap
2008-09-04 11:19:49 +00:00
Trustin Lee
8b9f63e578
Fixed issue: NETTY-43 (channelBound event can be fired more than once for NIO client socket)
...
* Fixed NioWorker.register() to check NioClientSocketChannel.boundManually flag
2008-09-04 11:14:43 +00:00