Commit Graph

27 Commits

Author SHA1 Message Date
Trustin Lee
a5aef71218 Fixed issue: NETTY-373 Deadlock in ChunkedWriteHandler on channel
close.

* channelInterestChanged event is not fired anymore when a socket is
closing because it is unnecessary
2011-02-01 11:45:17 +09:00
Trustin Lee
0dbdbcdb96 Added @Override annotations which were disallowed in Java 5 but not anymore in Java 6. 2010-11-12 09:45:39 +09:00
Trustin Lee
aa4b8a2a6c * Changed the type of WriteCompletionEvent.amount from int to long
* Added back FileRegion since mapped buffer does not outperform transferTo()
* Refactored SocketSendBufferPool to support FileRegion
2010-02-23 07:18:58 +00:00
Trustin Lee
d9de1675d0 Applied send buffer pool to nio datagram transport 2010-02-19 03:28:11 +00:00
Trustin Lee
2f601dcbaf WriteBuffer -> WriteRequestQueue 2010-02-19 01:41:32 +00:00
Trustin Lee
f650a8bcee Rewrote DirectBufferPool using preallocation strategy (like DirectChannelBufferFactory does) 2010-02-18 01:52:48 +00:00
Trustin Lee
dd7f588916 * Removed a solved question from the comment
* Applied the same optimization applied to the TCP transport to the UDP transport
2010-02-10 08:17:58 +00:00
Trustin Lee
8e82a1621a Reverted back the opportunistic write optimization due to unstability 2010-02-03 10:06:46 +00:00
Trustin Lee
686ef795f9 * Added NonReentrantLock
* Replaced ReentrantLock or monitor object with NonReentrantLock
2010-02-01 06:21:49 +00:00
Trustin Lee
102b69d14f * Fixed a bug where write requests are allowed to be reentrant
* Fixed a bug where writeLock is not used properly - what a dumb mistake
2010-01-28 16:01:49 +00:00
Trustin Lee
4bf4d5f814 Overhaul on NIO datagram writes
* Write operation is made in the caller thread opportunistically 
* QOTM example uses NIO datagram transport now
* This modification still requires more performance analysis and testing
2010-01-28 07:50:28 +00:00
Trustin Lee
36e804bbec Resolved issue: NETTY-282 Reduce memory copy between heap buffers and direct buffers in NIO transport
* Replaced JDK's internal direct buffer pool with a custom pool optimized for Netty
* Added ChannelBuffer.isDirect()
* Cleaned up NioWorker.writeNow() and NioDatagramWorker.writeNow()
2010-01-27 05:07:32 +00:00
Trustin Lee
3362114248 * Replaced e-mail addresses into homepage/blog URL anywhere possible
* Added Amit to COPYRIGHT.txt
2010-01-26 09:04:19 +00:00
Trustin Lee
3ff8cd46c9 * Backported LinkedTransferQueue from the latest upstream revision (1.71)
** Replaced the use of sun.misc.Unsafe with Atomic*FieldUpdater
** Added ThreadLocalRandom
2009-12-24 03:10:34 +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
ab2283ee98 Removed unnecessary indirect call in NioSocketChannel.isConnected() 2009-09-30 07:00:07 +00:00
Trustin Lee
b11ef6ca9b Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
Trustin Lee
f59f480fb7 Code clean up 2009-07-14 05:28:07 +00:00
Trustin Lee
c0267a9e4f Store datagram channel's remoteAddress as much as possible within the extent that does not cause a race condition 2009-06-30 09:17:50 +00:00
Trustin Lee
590ebcc394 Fixed issue: NETTY-180 Channel.getRemoteAddress() can return null for a received MessageEvent when ExecutionHandler is in the pipeline.
* DatagramChannel implementations cache localAddresses now
* DatagramChannel implementations don't cache remoteAddress because a user can disconnect and then connect again.  However, MessageEvent.getRemoteAddress() will always have correct remoteAddress value, so it shouldn't be a problem at all.
2009-06-23 07:52:12 +00:00
Trustin Lee
2b33c26e72 Javadoc 2009-06-18 07:33:37 +00:00
Trustin Lee
7a4f00201a Renamed NioUdpWorker to NioDatagramWork 2009-06-12 02:47:57 +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
1a309bff34 Updated @author tags 2009-06-11 05:06:14 +00:00
Trustin Lee
4b263dfb0e Updated license headers 2009-06-11 05:02:39 +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