Commit Graph

1937 Commits

Author SHA1 Message Date
Trustin Lee
195df8bec4 Fixed wrong comment 2011-02-07 20:05:37 +09:00
Trustin Lee
420431cabb Added missing @Overrides annotations 2011-02-07 20:03:40 +09:00
Trustin Lee
4d6581fe3d * Fixed a documentation error in ChannelBuffer javadoc
* Clearly specified that FrameDecoder is an implementation of ChannelHandler
2011-02-07 19:58:48 +09:00
Trustin Lee
eb02c57619 Fixed Javadoc error 2011-02-01 13:43:23 +09:00
Trustin Lee
d786a38139 Fixed NETTY-381 channelDisconnected event is sometimes not triggered when Channel.close() is called by multiple threads.
* Internal state variable should never be set to ST_CLOSED until the close channel future is set
2011-02-01 13:43:12 +09:00
Trustin Lee
4c9b4329f2 Fixed issue: NETTY-372 NullPointerException in ChunkedWriteHandler 2011-02-01 12:20:43 +09:00
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
d8ff180610 NioDatagramWorker should reject the write attempt on an unbound
socket, raising NotYetBoundException.
2011-02-01 11:45:09 +09:00
Trustin Lee
dfe960855f Fixed issue: NETTY-380 releaseExternalResources() hang indefinitely
when called from a handler

* Replaced IoWorkerRunnable with DeadLockProofWorker
* ExecutorUtil now checks dead lock
2011-02-01 10:56:59 +09:00
Trustin Lee
8eb2d8eb43 ChannelGroup.write() should not write to a server channel 2011-01-31 15:25:22 +09:00
Trustin Lee
ad320f6cae Fixed NETTY-365 HashedWheelTimer.stop() enters an infinite loop when
called from TimerTask
Fixed NETTY-379 Intermittent slippery task timeout in HashedWheelTimer
* Throw an IllegalStateException if HashedWheelTimer.stop() is called
from TimerTask
* Reschedule the slipped task accurately instead of delaying it by one
round
2011-01-31 14:48:01 +09:00
Trustin Lee
23f33629ca Fixed a race condition in MemoryAwareThreadPoolExecutor
Replaced a semaphore with a custom concurrency construct to fix a
known race condition in MemoryAwareThreadPoolExecutor
2011-01-13 14:56:38 +09:00
Trustin Lee
9f55834823 Fixed incorrect usage of ByteBuffer.arrayOffset()
* NETTY-368 Wrappedbuffer does not honour posiiton()
* and similar mistakes found during a review
2011-01-12 19:23:50 +09:00
Trustin Lee
d7c27d1b71 Fixed Javadoc warnings 2011-01-12 19:11:32 +09:00
Trustin Lee
6bfd2d6cec Fixed issue: NETTY-374 ChunkedWriteHandler and handling messages after
channel close

Fixed a bug where a write requests made after closure are not
discarded
2011-01-12 18:27:34 +09:00
Trustin Lee
8ad04dc6ca Fixed issue: NETTY-377 messageReceived could happen before
channelConnected when using local channels

More precise LocalChannel state management to avoid incorrect event
order
2011-01-12 18:03:03 +09:00
Trustin Lee
7866282d52 Fixed indentation 2011-01-04 14:53:24 +09:00
iainmcgin
4f9e6dcb13 Fix for NETTY-370 - documentation updated to reflect the correct behaviour of
high / low water marks on the interest ops of nio channels.
2011-01-04 14:50:49 +09:00
Benoit Sigoure
1f1b8d8325 Add a new faster, memory efficient URL decoder.
Query string parameters need to be decoded as per RFC 3986, Section 2.
The implementation of the URLDecoder in the JDK is slow because it takes
long and inefficient code paths, and it generates a lot more garbage
than necessary.  This decoder is about 2x faster and doesn't allocate
any memory in the easy case where the decoded string is unchanged.
When the string needs to be changed, only one buffer is allocated for
the decoded string.
2011-01-04 14:44:36 +09:00
Bruce Mitchener
3d85d56631 Correct variable name in code samples. 2011-01-04 14:38:57 +09:00
Trustin Lee
1ffb1aea75 NETTY-364 Application level IP filter
* Merged Frederic's ipfilter patch (needs some review and documentation)
2010-11-12 10:20:03 +09:00
Trustin Lee
34b181236a NETTY-363 Traffic shaper
* Merged Frederic's traffic shaper patch (needs some review and documentation)
2010-11-12 10:16:51 +09:00
Trustin Lee
c0c9f689f6 NETTY-333 Support File Uploading in Netty HTTP Server
* Merged the Frederic's HttpPost patch (still needs some design and naming review + documentation)
2010-11-12 09:49:43 +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
f700f9b14f Fixed misleading Javadoc in ReplayingDecoder 2010-11-09 05:35:24 +00:00
Trustin Lee
1f2285f57e Fixed issue: NETTY-360 Changing Channel.interestOps sometimes does not work under heavy write traffic in NIO transport
* Made sure all setRawInterestOps() calls are protected by interestOpsLock
Fixed a race condition in the HexDumpProxy example
2010-10-24 18:24:20 +00:00
Trustin Lee
f13e7053fe Fixed an OOME in the HexDumpProxy example 2010-10-23 11:38:34 +00:00
Trustin Lee
b85731e59f Sync with upstream 2010-10-20 11:33:23 +00:00
Trustin Lee
35a2326e82 Fixed compilation errors in some compilers 2010-10-19 06:11:34 +00:00
Trustin Lee
4399c1e90b Removed nagging compiler warnings introduced by Eclipse Helios 2010-10-19 06:00:42 +00:00
Trustin Lee
57dc0b3bc8 Fixed issue: NETTY-359 Missing support for HTTP 'Expect: 100-continue' header.
* Improved HttpHeaders.is100ContinueExpected() to conform to the RFC
* HttpChunkAggregator now sends "HTTP/1.1 100 Continue" response automatically.
* Added some TODO items which should be done in 4.0.
2010-10-19 05:40:44 +00:00
Trustin Lee
d093ed4a54 Fixed a potential thread safety issue in SslHandler.handleRenegotiation() - it seems to cause the first handshake attempt to fail rarely on some platform (Solaris SPARC?) 2010-10-19 04:05:28 +00:00
Trustin Lee
4fd034ab5d Fixed issue: NETTY-359 Missing support for HTTP 'Expect: 100-continue' header.
* Improved the snoop example to support the 100-continue header
* Fixed a problem in HttpClientCodec, HTtpContentDecoder and HttpContentEncoder where 100-continue response causes incorrect behavior
2010-10-18 08:19:03 +00:00
Trustin Lee
04430cd6d3 Fixed issue: NETTY-359 Missing support for HTTP 'Expect: 100-continue' header.
* Added HttpHeaders.is/set100ContinueExpected()
* HttpMessageDecoder converts unchunked messages into chunked ones if Expect: 100-continue header exists.
2010-10-17 18:34:03 +00:00
Trustin Lee
13a1b73cd1 Fixed issue: NETTY-356 WebSocket encoder regression
* Fixed a bug where WebSocketFrameEncoder does not set MSB of the length field
2010-09-09 10:59:22 +00:00
Trustin Lee
0cc728a9f0 Resolved issue: NETTY-346 ReplayingDecoderBuffer doesn't support array()
* Added ReplayingDecoder.internalBuffer() so that a brave user accesses the internal buffer directly at one's own risk
2010-08-30 06:02:08 +00:00
Trustin Lee
d4438170c9 Fixed a buffer rewrite trap which occurs when DirectChannelBufferFactory is used 2010-08-26 06:15:06 +00:00
Trustin Lee
2eb2901c1c Fixed a bug where the CodecEmbedder implementations do not generate the close request - this issue prevented some encoders like ZlibEncoder from generating the footer 2010-08-26 05:38:34 +00:00
Trustin Lee
d223c2905d Fixed issue: NETTY-345 HttpChunkAggregator doesn't support retrieving trailing headers
* Merge the trailing headers into the aggregated message
2010-08-26 05:06:40 +00:00
Trustin Lee
ffccf71fa5 Fixed issue: NETTY-350 Copy/paste error in org.jboss.netty.handler.codec.http.HttpMessageDecoder constructor 2010-08-26 04:18:53 +00:00
Trustin Lee
e8fcbd4e75 Fixed a bug where some ChannelPipelineSinks do not always release its shutdownLock on an Error 2010-08-26 03:13:14 +00:00
Trustin Lee
30d5136973 Fixed a dead lock where MemoryAwareThreadPoolExecutor does not release its semaphore completely 2010-08-26 02:55:10 +00:00
Trustin Lee
1c13d8c9f3 Fixed a bug where HttpMessage.chunked flag is not cleared by HttpChunkAggregator 2010-08-26 02:07:11 +00:00
Trustin Lee
d68c5160ed Added parentId to ThreadNamingRunnable 2010-08-25 02:31:00 +00:00
Trustin Lee
3659847859 More strict thread naming rule 2010-08-25 02:12:57 +00:00
Trustin Lee
4680cd0bb3 Improved performance of ProtobufDecoder using array directly when possible (Thanks Ian - iswett@yahoo.com) 2010-08-16 05:57:34 +00:00
Trustin Lee
21db320f0e Fixed issue: NETTY-342 Small typo in the user guide 2010-08-16 05:24:50 +00:00
Trustin Lee
e36d2dc3de Fixed issue: NETTY-331 (Regression NETTY-262: Server bootstrap bound channel pipeline has become immutable)
* ServerBootstrap now always uses the default pipeline instead of the static one
2010-07-07 07:55:37 +00:00
Trustin Lee
1c6813a06d Fixed issue: NETTY-337 Multi-line headers truncated 2010-07-07 06:43:34 +00:00
Trustin Lee
3156ed5dd5 * Added WebSocketFrame.CLOSING_HANDSHAKE
* WebSocketFrameDecoder discards data if closing handshake was received before
2010-07-07 05:07:39 +00:00