norman
e6ef89263b
Remove @override annotation from interface implementation to make it
...
compile and usable with java5. This part of the backport of pull request
#75
2011-11-23 15:09:50 +01:00
norman
9424c26caf
Merge pull request #75 to the 3.2 branch. Also remove @override
...
annotation for interface implementation to make it possible to compile
and use with java5
2011-11-23 15:07:02 +01:00
norman
8d40487ff7
Backport fix for #72 . QueryStringDecoder should also support ;
2011-11-23 07:22:49 +01:00
Trustin Lee
dcaf6c8645
Include the duplicate name in an exception message
2011-11-23 14:06:07 +09:00
Trustin Lee
249ab1b5b4
Move a final field before non-finals
2011-11-23 14:04:28 +09:00
Trustin Lee
c3240a1ded
Merge branch '3.2' of github.com:netty/netty into 3.2
2011-11-23 14:02:35 +09:00
Trustin Lee
2a9c5efe8f
Add a missing close(SelectionKey) call
...
* Without calling close(SelectionKey), the client boss loop can fall
into an infinite loop.
2011-11-23 13:58:52 +09:00
Norman Maurer
82c852fc5e
failFast field should be final
2011-11-22 12:58:20 +01:00
Trustin Lee
0da39901c8
Consistent fail-fast property
...
* DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder must
expose the fail-fast option consistently
* Renamed failImmediatelyOnTooLongFrame to failFast
2011-11-22 18:39:11 +09:00
Trustin Lee
0d4dfefeb0
Backport the pull request #70
2011-11-22 16:34:35 +09:00
norman
13d0d84852
Revert "Fix NETTY-452, add an option for whether to count length field into packet length or not"
...
This reverts commit db5d74748b
.
2011-11-11 08:38:50 +01:00
norman
852e0a1ed8
Revert "Revert "Adjust to current master""
...
This reverts commit 91ea9028f4
.
2011-11-11 08:38:10 +01:00
norman
91ea9028f4
Revert "Adjust to current master"
...
This reverts commit 16792a22be
.
2011-11-11 08:36:12 +01:00
norman
16792a22be
Adjust to current master
2011-11-10 09:28:07 +01:00
norman
6231030f2b
Add failImmediatelyOnTooLongFrame option to DelimiterBasedFrameDecoder
...
and LengthFieldBasedFrameDecoder
2011-11-10 09:03:56 +01:00
Norman Maurer
db5d74748b
Fix NETTY-452, add an option for whether to count length field into
...
packet length or not
2011-11-09 20:43:50 +01:00
Jeff Pinner
5b46cb4cfe
ignore HttpOnly as a cookie name instead of throwing exception
2011-11-09 09:51:26 -08:00
Norman Maurer
9c1950606b
Merge branch '3.2' of ssh://git@github.com/netty/netty.git into 3.2
2011-11-06 20:18:18 +01:00
Norman Maurer
dd8ec0ea30
release replaying decoder cumulation buffer after firing upstream
2011-11-06 20:17:21 +01:00
Norman Maurer
a555949cb5
fix compareTo
2011-11-06 07:55:30 +01:00
Norman Maurer
e4bd678846
Remove not used SerialVersionUID fields
2011-11-03 20:30:44 +01:00
Norman Maurer
a91c56c84d
Remove iostream support from 3.2 branch. This will only go into 4.x
2011-11-03 19:29:22 +01:00
Norman Maurer
24e0b01e8d
Release the cumulation buffer after firing upstream so we don't end up
...
with a "leak" because of a very big ChannelBuffer. This patch is
extracted of the pull request 39. Thanks to arya for the patch. See
NETTY-453
2011-11-03 11:29:39 +01:00
Norman Maurer
d742a11c25
Merge pull request #22 from pfisterer/master. Which adds a
...
IOStreamChannelFactory which can be used to connect to InputStream and
OutputStream
2011-10-29 20:18:10 +02:00
norman
b1c27063a2
Make sure the fireExceptionCaught will not get fired while holding a
...
lock. This will prevent a deadlock which you may see if you have an
ChannelHandler that will trigger Channel.close() on an Exception. See
NETTY-443
2011-10-25 11:52:27 +02:00
norman
6728766158
ChannelLocal nows removes Channel instances from itself once the Channel
...
was closed. This is configurable via a constructor parameter to allow
the user to choose what to do. The default is to not remove the Channel
from the ChannelLocal to not break usage which depends on the "old"
behavior. See NETTY-447
2011-10-24 08:32:17 +02:00
Trustin Lee
e3386736c0
Fix NETTY-432 HttpContentEncoder should not encode if Content-Encoding is set already and it is not 'identity'
2011-10-22 22:08:49 -07:00
Trustin Lee
a67cdaeb48
Clean up FileRegion and its implementation changes
...
* Fix broken javadoc tags
* Remove unnecessary public modifier
* Reorder method
* Make releaseAfterTransfer immutable
2011-10-22 21:47:07 -07:00
Norman Maurer
2a4b91b59b
Only release FileRegion after transfer was done if its configured todo
...
so. The default is false to be sure we are compatible with earlier 3.2
releases. This should be changed to default true in the master branch.
See NETTY-440
2011-10-22 14:56:53 +02:00
Trustin Lee
4b9b421af2
NETTY-439 Call channelBound/Connected from worker
...
* Move channelBound() to RegisterTask
* Simplify the if block in RegisterTask
2011-10-21 15:42:02 -07:00
Trustin Lee
beadadecf7
Fix NETTY-445 Memory leak in SslHandler
...
* Ensure SSLEngine.closeInbound() and closeOutbound() is called on
handshake failure.
* Ensure connection is closed when a closure request is issued and
handshake failed.
2011-10-21 13:54:07 -07:00
norman
48c6793d30
Revert invalid fix
2011-10-17 15:56:38 +02:00
norman
4be22a42ef
ThreadNameDeterminer.CURRENT return the right name now. Was returning
...
null before all the time
2011-10-17 15:49:29 +02:00
norman
35401caac4
Remove unused imports and fix warnings
2011-10-13 12:08:06 +02:00
norman
fd1d11ec39
Add support for FileRegion in OIOWorker.
2011-10-12 17:09:02 +02:00
norman
2d25998eb4
Make sure FileRegion.releaseExternalResources() is called after the
...
write was done. See NETTY-440
2011-10-12 15:07:53 +02:00
norman
fb408778d1
Only handle the channelConnected in the worker thread. The channelOpen
...
and channelBound was moved back to the boss thread. This was done after
reading NETTY-154
2011-10-12 13:15:06 +02:00
norman
cb2e047f1d
Remove code which I committed by mistake
2011-10-12 13:04:37 +02:00
norman
bbdc2032f0
Make sure the ChannelOpen, ChannelBound and ChannelConnected events get
...
fired from within an IO-Worker Thread. This makes sure the Boss-Thread
will not get blocked by any user action
2011-10-12 13:02:50 +02:00
norman
28120aa778
Add javadoc entry to explain that some events are executed in the boss
...
thread.
2011-10-12 10:35:12 +02:00
Trustin Lee
ba72bf7235
NETTY-438 Re-enable SSL re-negotiation by default
...
* Re-enabled renegotiation
* Updated Javadoc
2011-10-10 20:47:32 +09:00
Norman Maurer
b89487c445
Add patch of NETTY-434 to the mix to fix Deadlock in
...
ChunkedWriteHandler. This patch was not written by me...
2011-10-10 18:00:32 +09:00
Evan Meagher
256621246c
Fix wording in "Summary" section.
2011-10-10 17:42:15 +09:00
Evan Meagher
f0b30aa8e1
Fix wording in "Advanced Components for More Rapid Development" section.
2011-10-10 17:42:07 +09:00
Evan Meagher
95b127748e
Fix wording in "Interceptor Chain Pattern" section.
2011-10-10 17:42:00 +09:00
Evan Meagher
56d6217b53
Fix wording in "Universal Asynchronous I/O API" section.
2011-10-10 17:41:52 +09:00
Evan Meagher
d1a15c9aff
Fix wording in "Rich Buffer Data Structure" section.
2011-10-10 17:41:45 +09:00
Trustin Lee
a78d37460c
Fixed a compilation error in the example
2011-08-26 13:24:17 +09:00
Trustin Lee
b0d0502413
Added a TooLongFrameException recovery test for DelimiterBasedFrameDecoder
2011-08-19 11:11:16 +09:00
Trustin Lee
3effb0d1b0
NETTY-435 LengthFieldBasedFrameDecoder fails to recover from TooLongFrameException
...
* Fixed a bug where TooLongFrameException is not raised immediately when the large frame was fully decoded at the first attempt
* Fixed a bug where LengthFieldBasedFrameDecoder does not reset its state completely after raising TooLongFrameException
2011-08-19 11:05:24 +09:00
Trustin Lee
58cc6aec86
NETTY-431 HashedWheelTimer's TimerTask may execute after call to Timeout.cancel()
...
* Replaced a volatile boolean flag and system date access with an atomic integer flag.
2011-08-12 14:03:48 +09:00
Trustin Lee
1345a00a1a
NETTY-430 ChunkedWriteHandler NPE
2011-08-12 13:39:18 +09:00
Trustin Lee
7eb39aaf93
NETTY-429 IllegalArgumentException when an HTTP server sends a '100 Continue' response to HttpContentDecoder.
...
* Fixed a silly coding mistake where I sent the event in the opposite direction
2011-08-03 21:26:31 +09:00
Trustin Lee
b969706832
NETTY-428 SslHandler does not trigger an exceptionCaught event for some handshake failure cases.
...
* Made sure SslHandler.handshake() and SslHandler.close() trigger an exceptionCaught event when failed
2011-08-02 15:39:25 +09:00
Trustin Lee
5f19f4c0b6
SSLEngine.beginHandshake() can throw a RuntimeException.
2011-08-02 15:09:35 +09:00
Trustin Lee
dc33e99872
NETTY-408 ChunkedStream generates 1-byte chunks for wrapped input streams that does have sane implementation of available() method
...
* Updated JavaDoc so that users don't specify an InputStream with poor available() implementation.
2011-08-02 09:48:34 +09:00
Trustin Lee
e0eb72618a
NETTY-384 Another deadlock in ChunkedWriteHandler
...
ChunkedWriteHandler.discard() do not issue write requests to trigger exceptionCaught events and to notify write futures anymore. Instead, it triggers exceptionCaught events and notifies write futures by itself. Therefore, no write lock is involved during discard(), avoiding the reported dead lock.
However, this is a temporary solution, and eventually Netty must introduce more robust event thread model.
2011-08-02 09:33:53 +09:00
Trustin Lee
654da6d02a
NETTY-422 Add getPipeline() to CodecEmbedder so that a user can modify the pipeline dynamically.
2011-08-02 08:49:13 +09:00
Trustin Lee
8f30a11c67
NETTY-423 Add ChannelPipeline.getNames()
2011-08-02 08:44:15 +09:00
Trustin Lee
4321135452
NETTY-420 HttpClientCodec doesn't handle HEAD requests with Transfer-Encoding: chunked responses
...
* Reverted back the workaround for servers that sends unnecessary zero-byte chunk in a HEAD response because it actually breaks the codec when the server that conforms to the RFC.
2011-08-02 08:35:12 +09:00
Trustin Lee
5cdcc67086
NETTY-419 ObjectEncoder/ObjectDecoder fails with NPE when deserializing the java.lang.Class instance of an interface type
...
* Fixed a bug where deserializing an interface class fails due to wrong lookup.
* Implemented class lookup caching
2011-08-02 08:25:26 +09:00
Trustin Lee
99daeebe4a
NETTY-417 client channel still open after close and wait
...
* Fixed a bug in SslHandler where a write attempt made after SSLEngine is closed result in unnotified future. Fixed by respecting the case where SslEngineResult.Status == CLOSED
2011-08-02 07:59:14 +09:00
Trustin Lee
07e9378423
NETTY-417 client channel still open after close and wait
...
* Fixed a race condition where NioSocketChannel's state variable is updated *after* its close future is notified
* Removed unnecessary use of ChannelFutureListeners in NioSocketChannel and AbstractChannel
Conflicts:
src/main/java/org/jboss/netty/channel/AbstractChannel.java
src/main/java/org/jboss/netty/channel/socket/nio/NioSocketChannel.java
2011-08-02 07:58:16 +09:00
Trustin Lee
caf8b39172
Fixed a bug where the future associated with the close request is not notified when the channel was closed already when SslHandler attempts to send a closure_notify.
...
This shouldn't be a problem to most applications because they usually do not specify their own future object for the close request.
2011-08-02 07:49:45 +09:00
Felix Trepanier
7e50bd5160
do not encode if empty content
2011-08-02 06:48:01 +09:00
Trustin Lee
483f093036
NETTY-415 ChannelFuture.setFailure() not called when exception thrown handling Channel.close()
...
* Made sure the ChannelFuture associated with a downstream event is marked as failure when an exception is raised before it reaches at ChannelSink.
2011-08-02 06:37:00 +09:00
Trustin Lee
a804c3495e
NETTY-418 isCompleteFailure() and isCompleteSuccess() are both true at the same time
...
* Fixed incorrect isPartialSuccess(), isPartialFailure(), isCompleteFailure() implementation
2011-08-01 06:12:01 +09:00
Trustin Lee
2d35bf2155
NETTY-425 ChannelBuffers.compare does not handle unsigned bytes correctly
...
* Fixed a bug where signed comparison is made where unsigned comparison is expected
2011-08-01 04:28:29 +09:00
Trustin Lee
fba8c7b7a4
NETTY-426 Prevent a user from reusing an upstream MessageEvent to write
...
something
Modified the pipeline implementations so that it rejects the attempt to
send an UpstreamMessageEvent to downstream
2011-08-01 04:17:39 +09:00
Trustin Lee
bf41f4b099
NETTY-410 NioWorker write deadlock
...
Applied the patch provided by Greg Dhuse.
2011-08-01 04:00:26 +09:00
Trustin Lee
d1b40a3c8b
NETTY-407 HttpTunnelingClientSocketChannel failed close() is not sent to
...
calling futures.
* HttpTunnelingClientSocketChannel.writeLastChunk should return a failed
future instead of raising an exception.
2011-08-01 03:54:47 +09:00
Trustin Lee
8f659833c6
NETTY-406 ProtobufEncoder should also support Message.Builder
...
* Added support for Message.Builder
2011-08-01 03:46:51 +09:00
Trustin Lee
7338267221
NETTY-389 java.lang.ClassCastException: org.jboss.netty.channel.FileRegion cannot be cast to org.jboss.netty.buffer.ChannelBuffer
...
* Updated JavaDoc to let users know that not all transports support FileRegion
* Added FIXME for future improvement
2011-08-01 03:39:31 +09:00
Trustin Lee
b2bf5e60af
NETTY-410 NioWorker write deadlock
...
Applied the patch provided by Greg Dhuse.
2011-08-01 01:33:20 +09:00
Trustin Lee
189567322f
Fixed code format
2011-07-29 13:11:19 +09:00
nibin
bc8b92e1f7
* Fixed the bug in CookieEncoder if there are no cookie's set while
...
calling encode(). Without the fix, it ended up in calling the
exception "java.lang.StringIndexOutOfBoundsException".
* Also added test case to verify the patch
Change-Id: Ib96425e07ab50be027ade7be0748cceb6438a586
Conflicts:
src/test/java/org/jboss/netty/handler/codec/http/CookieEncoderTest.java
2011-07-29 13:09:33 +09:00
Trustin Lee
349b03b467
Handle chunked encoding properly for non-200 responses
2011-05-26 12:11:02 +09:00
Trustin Lee
8f7efa0548
Made IdleStateHandler @Sharable and removed unnecessary lazy
...
initialization in ReadTimeoutHandler
2011-05-04 17:30:25 +09:00
Trustin Lee
098ca0342c
NETTY-401 - NullPointerException when ReadTimeoutHandler is
...
concurrently initialized and destroyed
* Made ReadTimeoutHandler @Sharable
* Updated the UptimeClient again
** no static fields for global state - just reuse the handlers.
2011-05-04 17:10:32 +09:00
Trustin Lee
c3d97acd03
Fixed a bug in the uptime example where uptime is reset even when it
...
shouldn't be.
2011-05-04 16:55:54 +09:00
Bruce Mitchener
2a2e57f618
Close bold tag.
2011-05-04 14:04:48 +09:00
Will
1734f5fd01
fix typo in exception message
2011-04-18 17:00:50 +09:00
Daniel Bevenius
66566a1acd
Added a timeout for the UdpClient so that the test cannot hang.
...
I noticed the build "hanging/halting" on the test when running the cobertura code coverage Eclipse plugin.
2011-04-18 16:57:17 +09:00
Trustin Lee
841043006c
NETTY-394 SslHandler does not work with a little endian buffer
...
Added SslHandler.getShort() which replaces ChannelBuffer.getShort() calls
2011-04-02 03:32:15 +09:00
Trustin Lee
2351797a43
NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
...
Increased the SSL buffer size by 1024 as advised
2011-04-02 03:09:05 +09:00
Trustin Lee
370160d0a5
Fixed an infinite loop on a certain NIO impl
2011-03-25 02:30:58 +09:00
Trustin Lee
77f79c3ea6
Fixed a typo
2011-03-09 00:21:11 +09:00
Trustin Lee
df656bf139
Fixed a compilation error. Doh!
2011-03-05 02:51:51 +09:00
Trustin Lee
2d7e9cab6d
Updated Javadoc
2011-03-03 02:02:18 +09:00
Trustin Lee
522bfc4664
Do not write an empty buffer unnecessarily when nextChunk() returned
...
null
2011-03-03 01:36:10 +09:00
Trustin Lee
bf043937af
Better variable naming / Fixed potential stall
2011-03-02 20:00:07 +09:00
Trustin Lee
8763c0b858
NETTY-383 deflate-raw support for HttpContentDecompressor
...
* Added ZlibWrapperType.ZLIB_OR_NONE for auto-detection and updated
the relevant Zlib implementation
2011-02-22 18:05:16 +09:00
Trustin Lee
0859ff782e
Fixed issue: NETTY-382 ChannelLocal.remove() should return the return
...
value of initialValue() instead of null when no value was set.
2011-02-22 16:54:25 +09:00
Trustin Lee
ad1f698cf1
* Fixed a documentation error in ChannelBuffer javadoc
...
* Clearly specified that FrameDecoder is an implementation of ChannelHandler
2011-02-07 19:59:53 +09:00
Trustin Lee
78104cbd28
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:39:20 +09:00
Trustin Lee
a8f3353d7c
Fixed Javadoc error
2011-02-01 12:28:40 +09:00
Trustin Lee
5276a92e71
Fixed issue: NETTY-372 NullPointerException in ChunkedWriteHandler
2011-02-01 12:20:57 +09:00
Trustin Lee
ae6a5ca82d
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:43:16 +09:00
Trustin Lee
5c75915f4c
NioDatagramWorker should reject the write attempt on an unbound
...
socket, raising NotYetBoundException.
2011-02-01 11:35:26 +09:00
Trustin Lee
be6cdb4a11
Fixed issue: NETTY-380 releaseExternalResources() hang indefinitely
...
when called from a handler
* Replaced IoWorkerRunnable with DeadLockProofWorker
* ExecutorUtil now checks dead lock
2011-02-01 11:04:13 +09:00
Trustin Lee
339c2a6641
ChannelGroup.write() should not write to a server channel
2011-01-31 15:25:39 +09:00
Trustin Lee
31df7fa9b1
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:30 +09:00
Trustin Lee
d1f05ea4e7
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:57:03 +09:00
Trustin Lee
5af93c2753
Fixed incorrect usage of ByteBuffer.arrayOffset()
...
* NETTY-368 Wrappedbuffer does not honour posiiton()
* and similar mistakes found during a review
2011-01-12 19:24:09 +09:00
Trustin Lee
5a3f8aeb82
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:17 +09:00
Trustin Lee
ed23803a87
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 17:58:49 +09:00
Trustin Lee
1481cee81a
Fixed indentation
2011-01-04 14:53:01 +09:00
iainmcgin
fa28d2824f
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:51:10 +09:00
Bruce Mitchener
2d00f07d6c
Correct variable name in code samples.
2011-01-04 14:39:22 +09:00
Trustin Lee
91d0ce74bb
Reverted back the changes in DynamicChannelBuffer which made the test fail
2010-11-15 18:12:26 +09:00
Trustin Lee
e395aacbd4
Imported the 3.2 branch from Netty SVN repository
2010-11-12 00:28:17 +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
Trustin Lee
35351701ff
More compact binary frame length encoding in WebSockets
2010-07-07 04:29:41 +00:00
Trustin Lee
d32e7ff865
Fixed wrong comment
2010-06-30 09:43:18 +00:00
Trustin Lee
8216a3fa5e
Commented out System.out.println
2010-06-30 09:42:48 +00:00
Trustin Lee
6bebbdad55
Javadoc
2010-06-30 09:35:47 +00:00
Trustin Lee
9d89ad0837
* Resolved issue: NETTY-336 Fine-grained control over thread renaming
...
** Redefined ThreadNameDeterminer
* Improved caching in AbstractChannel.toString()
* Improved overall OIO thread naming (thread ID number is a large number which doesn't look good though. will fix it later)
2010-06-30 09:17:08 +00:00
Trustin Lee
cd6e7f0c3e
Missing dots
2010-06-30 05:58:51 +00:00
Trustin Lee
5c790b5e8a
Fixed a documentation error
2010-06-30 05:54:47 +00:00
Trustin Lee
5518344bc3
NETTY-335 Remove deprecated elements
2010-06-30 05:48:23 +00:00
Trustin Lee
e3a5a8eea2
Do not change the readerIndex
2010-06-25 02:52:30 +00:00
Trustin Lee
56c0e6da07
larger -> wider
2010-06-24 02:13:12 +00:00
Trustin Lee
674af6ae12
Fixed infinite loop in ProtobufVarint32FrameDecoder when too large varint length is received
2010-06-24 02:12:48 +00:00
Trustin Lee
ab0facdee5
* Discard too long frame in a more robust manner (i.e. should continue decoding after raising TooLongFrameException)
2010-06-24 01:53:51 +00:00
Trustin Lee
bae46eca49
Discard too long frame in a more robust manner
2010-06-24 01:45:32 +00:00
Trustin Lee
c9555d01bf
Added a TODO to ProtobufVariant32FrameDecoder
2010-06-23 05:22:57 +00:00
Trustin Lee
b2ebe26a25
* Improved protocol buffers integration javadoc
...
* Changed the localtime example to use the base128 variant length header which is popular among protobuf users
2010-06-23 05:16:47 +00:00
Trustin Lee
685153663e
Fixed wrong content length for websocket handshake messages
2010-06-22 07:02:27 +00:00
Trustin Lee
7df28adfe3
Fixed wrong content length for websocket handshake messages
2010-06-22 07:01:47 +00:00
Trustin Lee
e0545ba583
Fixed issue: NETTY-330 HttpMessageDecoder cannot decode new handshake messages
...
* HttpHeaders.getContentLength() returns 10 and 18 for WebSocket handshake messages
* Updated the WebSocket server example to support the new handshake method
2010-06-21 09:39:49 +00:00
Trustin Lee
c35c9eb1c3
Mention WebSocket
2010-06-21 08:16:31 +00:00
Trustin Lee
f88108e876
Fixed a bug: NETTY-329 ChannelBuffer.slice(index, length) returns a slice with wrong reader/writerIndex
...
* HeapChannelBuffer.slice(index, length) and ByteBufferBackedChannelBuffer.slice(index, length) should update indexes when they created a slice using duplicate()
* Added relevant test cases
2010-06-21 07:00:03 +00:00
Trustin Lee
575b7fb073
More Javadoc based on community feed back
2010-06-17 14:23:59 +00:00
Trustin Lee
de90cd6a3c
System call needs to be made at least once so that it can fail when a user attempts to write on a closed channel
2010-06-16 03:33:29 +00:00
Trustin Lee
752e60a723
Suppress system calls when a user attempts to write an empty buffer
2010-06-16 03:28:30 +00:00
Trustin Lee
f753dc2b83
Replaced SslHandler.pendingEncryptedWrites with the thread-safe one
2010-06-16 03:12:00 +00:00
Trustin Lee
f2d490ef9f
Suppress system calls when a user attempts to write an empty buffer
2010-06-16 03:10:19 +00:00
Trustin Lee
4b0219ee9b
Potential fix for rare failure:
...
javax.net.ssl.SSLException: renegotiation attempted by peer; closing the connection
at org.jboss.netty.handler.ssl.SslHandler.handleRenegotiation(SslHandler.java:967)
at org.jboss.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:810)
at org.jboss.netty.handler.ssl.SslHandler.handshake(SslHandler.java:347)
2010-06-16 00:21:31 +00:00
Trustin Lee
cbe26db0e4
Replaced email with homepage url
2010-06-14 11:07:44 +00:00
Trustin Lee
2571564eb2
* Updated the author tag
...
* Added svn:keywords property
2010-06-14 11:06:45 +00:00
Trustin Lee
800fcd0ca2
More tests
2010-06-14 11:03:14 +00:00
Trustin Lee
6d0fb256c6
Fixed issue: NETTY-325 (QueryStringDecoder doesn't properly handle missing query string values and other corner cases)
...
* Rewrote QueryStringDecoder based on Benoit's work
* Added a test case for QueryStringDecoder
2010-06-14 10:57:48 +00:00
Trustin Lee
5097009f8c
* Fixed an infiniloop in NioDatagramWorker which is triggered when a user writes an empty buffer.
...
* Reduced system calls on empty buffer
2010-06-07 02:11:04 +00:00
Trustin Lee
c032708ed7
Updated Javadoc
2010-06-07 01:50:02 +00:00
Trustin Lee
659eedb970
Better package description
2010-06-03 09:04:56 +00:00
Trustin Lee
4a390a1983
More Javadoc
2010-06-03 09:01:46 +00:00
Trustin Lee
3a92fb8a9e
Fixed NETTY-320 ReplayingDecoderBuffer.toByteBuffer(int, int) throws java.lang.IndexOutOfBoundsException
...
* Added missing checkIndex() call
2010-06-01 09:19:19 +00:00
Trustin Lee
a55a1c6e72
Removed unnecessary lock
2010-06-01 08:38:51 +00:00
Trustin Lee
a2ef43cf3d
Streamline LinkedTransferQueue.isEmpty()
2010-05-28 02:59:17 +00:00
Trustin Lee
11705c9915
Removed System.out
2010-05-27 12:40:50 +00:00
Trustin Lee
0d0b0c56c3
Fixed NETTY-319 HttpMessageDecoder incorrect parsing status line
...
* Specified an empty reason phrase if no reason phrase was specified
2010-05-27 12:38:54 +00:00
Trustin Lee
7d11a5369f
Proper validation for HttpResponseStatus
2010-05-27 12:34:44 +00:00
Trustin Lee
d65cd371e7
Fixed a bug where HttpTunnelingClientSocketChannel's closeFuture is not notified if the connection is closed by the client
2010-05-27 12:02:49 +00:00
Trustin Lee
be544fa899
Added a TODO for 4.0 (or 3.3?)
2010-05-19 12:23:44 +00:00
Trustin Lee
c64e6866f6
Added a FIXME for later releases
2010-05-19 11:31:25 +00:00
Trustin Lee
d51ccd2211
The fix for RtspResponseDecoder should be applied to all RTSP decoders
2010-05-19 07:51:38 +00:00
Trustin Lee
0c9202ab75
Fixed a bug where RtspResponseDecoder does not decode a response with no 'Content-Length' header properly
2010-05-19 07:42:21 +00:00
Trustin Lee
3847fb00e5
Fixed issue: NETTY-310 Memory leak in netty-3.2.0.BETA1.jar
...
* Added a special internal use only constructor to AbstractChannel, which bypasses ID allocation
* EmbeddedChannel calls the special purpose constructor to avoid leak
2010-05-19 06:29:43 +00:00
Trustin Lee
93f9c4a2d6
* Added LengthFieldBasedFrameDecoder.extractFrame()
...
* ObjectDecoder overrides extractFrame() to avoid memory copy
2010-05-13 14:13:07 +00:00
Trustin Lee
d19aa4924e
Simplified and hardened ObjectDecoder by extending LengthFieldBasedFrameDecoder
2010-05-13 13:40:36 +00:00
Trustin Lee
23dfc03060
migrating to docs.jboss.org
2010-05-07 11:21:10 +00:00
Trustin Lee
bdd213ec85
* Added missing Javadoc
...
* Proper getIntHeader() behavior
2010-05-06 07:50:19 +00:00
Trustin Lee
2c887daabe
Added missing Javadoc
2010-05-06 07:37:27 +00:00
Trustin Lee
8bb9ad26ad
Updated Javadoc
2010-05-06 07:33:26 +00:00
Trustin Lee
5edc4e16aa
* StaticChannelPipeline's constructor should stop when a null is encountered
...
* Added a test case for StaticChannelPipeline
2010-05-06 07:00:52 +00:00
Trustin Lee
56cdf73cb9
Fixed issue: NETTY-314 ProtobufEncoder and ProtobufDecoder should accept MessageLite as well as Message.
2010-05-06 04:11:11 +00:00
Trustin Lee
1793c659ca
Fixed indentation
2010-05-04 12:29:17 +00:00
Trustin Lee
13d83171fb
Updated 'before getting started'
2010-05-04 12:09:50 +00:00
Trustin Lee
66cbce8f23
Removed the first paragraph
2010-05-04 11:58:21 +00:00
Trustin Lee
58f8dd8942
Updated the broken first statement in the preface.
2010-05-04 11:49:16 +00:00
Trustin Lee
6269d21712
Fixed the oversized architecture diagram in the PDF
2010-05-04 11:22:11 +00:00
Trustin Lee
b134bfb974
Comment
2010-05-04 01:48:52 +00:00
Trustin Lee
8c490ed6e5
Wrong inception year
2010-05-04 01:47:43 +00:00
Trustin Lee
d4049710bb
* Fixed dangling HTTP header entries in the linked list
...
* Added a test case
2010-05-04 01:46:15 +00:00
Trustin Lee
b2f550cb3b
Fixed a bug where RtspResponseDecoder generates a request object instead of a response object
2010-05-03 02:21:01 +00:00