Commit Graph

385 Commits

Author SHA1 Message Date
Trustin Lee
81d29bafc2 Fixed warnings reported by FindBugs 2008-11-07 02:26:21 +00:00
Trustin Lee
9d35088801 & -> && 2008-11-07 02:10:44 +00:00
Trustin Lee
d8cd49c1b7 Fixed a warning reported by FindBugs in CompositeChannelBuffer 2008-11-07 02:08:36 +00:00
Trustin Lee
33187d0285 Fixed issue: NETTY-62 ChannelBuffers.EMPTY_BUFFER is not final 2008-11-07 02:05:09 +00:00
Trustin Lee
3a2a7a3a3c Made sure NioWorker.cleanUpWriteBuffer() is called even if the worker thread is not running. 2008-11-07 02:00:07 +00:00
Trustin Lee
b50cc2b025 Removed an unused import 2008-11-07 01:50:51 +00:00
Trustin Lee
ea1a68cb83 Made sure that NioWorker.wakenUp is set to true only when its selector is really waken up 2008-11-06 17:31:07 +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
22f33539c1 Fixed a problem where NPE is thrown when NioWorker.write() is called too early 2008-11-06 15:01:08 +00:00
Trustin Lee
85e63a2c98 Potential fix for NPE during SocketChannel.register(..) 2008-11-06 12:56:45 +00:00
Trustin Lee
59abaa1657 Tiny code cleanup 2008-11-06 11:41:01 +00:00
Trustin Lee
00ec5be6dd Fixed a bug where NioWorker.register() hangs up with high CPU consumption when it failed to open a selector. 2008-11-06 11:39:17 +00:00
Trustin Lee
7f1ff668f7 Fixed a bug where NioWorker.register() hangs up with high CPU consumption when it failed to open a selector. 2008-11-06 11:19:48 +00:00
Trustin Lee
486218ab28 Potential fix for NPE during SocketChannel.register(..) 2008-11-06 10:55:56 +00:00
Trustin Lee
b15fe51e95 RegisterTask should be a static class. 2008-11-06 08:49:00 +00:00
Trustin Lee
87b4f886a6 Code cleanup 2008-10-06 13:25:27 +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
b378c083ec A little bit of rephrasing 2008-10-02 05:06:10 +00:00
Trustin Lee
8f9769f8e9 Removed unnecessary links 2008-10-02 05:02:46 +00:00
Trustin Lee
b6d9755ba5 Updated the getting started guide which is simpler thanks to the recent changes in SimpleChannelHandler 2008-10-02 04:58:04 +00:00
Trustin Lee
5120c1172c Simplfied the factorial example using the new SimpleChannelHandler 2008-10-02 04:44:06 +00:00
Trustin Lee
ca1f11ff67 Forgot to add the 'throws' clause 2008-10-02 04:43:02 +00:00
Trustin Lee
da04e2cae9 Fixed issue: NETTY-54 (Improve SimpleChannelHandler to implement ChannelDownstreamHandler)
Fixed issue: NETTY-55 (Channel.unbind() method is missing.)
2008-10-02 04:40:46 +00:00
Trustin Lee
6c2230aac2 Swallow AsynchronousCloseException 2008-10-01 13:14:28 +00:00
Trustin Lee
4376cd5a91 Fixed a bug: NETTY-53 (ClassNotFoundException when an ObjectDecoder with no ClassLoader specified tries to decode an object.)
* Explicitly acquired the current thread's context class loader if a user specified no or null class loader.
2008-10-01 11:06:18 +00:00
Trustin Lee
8d5d8fd172 Fixed another race condition which occurs when OP_WRITE and OP_READ flags are set/cleared at the same time 2008-10-01 08:42:26 +00:00
Trustin Lee
cfa6794292 Potential fix for NETTY-52 (IllegalArgumentException when trying to change the current interestOps) 2008-10-01 05:25:01 +00:00
Trustin Lee
dae3b05ebb Replaced FastQueue with LinkedTransferQueue 2008-10-01 04:49:10 +00:00
Trustin Lee
6d372c367b Added LinkedTransferQueue 2008-10-01 03:18:36 +00:00
Trustin Lee
2f4e20ce7a Made more generic 2008-09-30 14:23:38 +00:00
Trustin Lee
44c409ca24 More accurate default receive buffer size predictor implementation 2008-09-30 13:02:41 +00:00
Trustin Lee
0831b32090 Decreased the default maximum receive buffer size to 64KiB - it's enough for more cases. 2008-09-30 06:29:16 +00:00
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
e1f4053d41 At last but not least 2008-09-25 16:31:03 +00:00
Trustin Lee
33c1932353 Dunno why but SocketChannel.accept() sometimes returns null. 2008-09-25 11:05:45 +00:00
Trustin Lee
bc60f01b58 section -> chapter 2008-09-24 12:38:52 +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
60eec52dab Typo 2008-09-24 09:56:10 +00:00
Trustin Lee
0b8687cdeb More explanation on the characteristics of bootstraps 2008-09-24 09:55:19 +00:00
Trustin Lee
008f7c394e Added the PNG version of the architecture diagram 2008-09-24 09:50:38 +00:00
Trustin Lee
aaa6efcda4 Fires -> Sends 2008-09-24 09:49:23 +00:00
Trustin Lee
6a759f0c63 Fixed grammar, typo, and brevity in Javadoc comments 2008-09-24 09:48:32 +00:00
Trustin Lee
ec06cbf57a Made the diagram more compact 2008-09-24 05:32:43 +00:00
Trustin Lee
880a093c9f Added the architecture diagram 2008-09-24 04:45:39 +00:00
Trustin Lee
891751b396 Updated XSLT to make the documentation point the correct URL 2008-09-24 03:39:21 +00:00
Trustin Lee
705d4f183c Excluded unwritten chapters temporarilly 2008-09-24 03:17:27 +00:00
Trustin Lee
48bf1d543a Better description 2008-09-24 03:14:16 +00:00
Trustin Lee
8c2f314154 Better explanation of what Netty is 2008-09-24 02:30:10 +00:00
Trustin Lee
45b6c74b84 Another rephrasing 2008-09-22 11:05:43 +00:00
Trustin Lee
a85c3688a8 Another rephrasing 2008-09-22 11:03:49 +00:00
Trustin Lee
95a5af1707 Slight rephrasing 2008-09-22 11:02:28 +00:00
Trustin Lee
f206c5359b Finished the first chapter 2008-09-22 11:00:18 +00:00
Trustin Lee
8d8c7c0227 * Updated PDF XSL
* proven approach for -> proven approach to
* Keep writing the guide...
2008-09-22 05:47:10 +00:00
Trustin Lee
d3f24589a4 * Fixed too frequent plugin update
* Keep writing the guide...
2008-09-22 02:10:31 +00:00
Trustin Lee
da8fa65aca More tweak for PDF guide 2008-09-20 10:44:51 +00:00
Trustin Lee
bacabc9a12 * Reformatted XSL files
* A little bit of tweaking in PDF stylesheet
2008-09-20 10:23:18 +00:00
Trustin Lee
ea7c7e769c * Replaced callout-bug with simple co tags
* Stylesheet update
2008-09-20 09:11:54 +00:00
Trustin Lee
0f3edc8cd8 Fixed cosmetic errors by overriding the default stylesheets 2008-09-20 06:38:56 +00:00
Trustin Lee
6e696ffc51 * Added more shortcut entities 2008-09-19 11:52:30 +00:00
Trustin Lee
3c0d4a5c40 * Extracted common entities into custom.dtd
* Keep writing the getting started chapter
2008-09-19 11:16:28 +00:00
Trustin Lee
0547b35559 Defined four entities related with Netty 2008-09-19 08:23:51 +00:00
Trustin Lee
032226521d Fixed incorrect docbook location 2008-09-19 07:37:55 +00:00
Trustin Lee
b571bdc0e2 * Updated to the latest version of jdocbook plugin and jbossorg styles
* Writing the getting started chapter...
2008-09-19 07:28:48 +00:00
Trustin Lee
ac5a2a2f03 Renamed introduction to getting started 2008-09-19 06:16:14 +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
0caeb69ae6 Added a link to the project 2008-09-16 12:32:31 +00:00
Trustin Lee
a668e5066a * Added 'State Management' chapter (just a placeholder for now)
* Wrote the preface
2008-09-16 12:27:15 +00:00
Trustin Lee
3759a9b0d6 A little bit of comments on how version.txt is generated 2008-09-16 09:24:27 +00:00
Trustin Lee
38b4da7f3b * Added cross reference to the distribution
* Tarball and zip distribution are not attached to save deployment time
2008-09-16 09:20:17 +00:00