Aaron Riekenberg
c2417c253c
Cleanup failIfNecessary, fix comment.
2011-08-20 20:11:28 -05:00
Aaron Riekenberg
f474fc609a
Add failImmediatelyOnTooLongFrameOption.
2011-08-20 19:58:23 -05:00
Trustin Lee
2fc18a00f6
Added a TooLongFrameException recovery test for DelimiterBasedFrameDecoder
2011-08-19 11:11:45 +09:00
Trustin Lee
f4ebcf7aed
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:06:29 +09:00
Trustin Lee
83ad5fb07e
Fixed a compilation error
2011-08-12 15:20:43 +09:00
Frédéric Brégier
d6ea072ccc
Fix NPE when non chunked message with a large variable
2011-08-12 14:09:03 +09:00
Frédéric Brégier
6b3b3b7426
Fix of NPE when non chunked large variable is created
2011-08-12 14:08:50 +09:00
Trustin Lee
dbb2392034
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:04:14 +09:00
Trustin Lee
35258a5393
NETTY-430 ChunkedWriteHandler NPE
2011-08-12 13:39:55 +09:00
Trustin Lee
6156922ad6
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:25:20 +09:00
Trustin Lee
88d84c537c
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:38:58 +09:00
Trustin Lee
21269fa073
SSLEngine.beginHandshake() can throw a RuntimeException.
2011-08-02 15:09:12 +09:00
Trustin Lee
dc0498d82b
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:18 +09:00
Trustin Lee
73d1f3fe02
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:27 +09:00
Trustin Lee
d72b89db21
NETTY-422 Add getPipeline() to CodecEmbedder so that a user can modify the pipeline dynamically.
2011-08-02 08:47:56 +09:00
Trustin Lee
59a349031a
NETTY-423 Add ChannelPipeline.getNames()
2011-08-02 08:43:10 +09:00
Trustin Lee
5c62d54c67
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:34:56 +09:00
Trustin Lee
bdeed00bbb
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:22:02 +09:00
Trustin Lee
6f7d2f4e23
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:47:36 +09:00
Trustin Lee
c6fa82729c
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
2011-08-02 07:38:16 +09:00
Trustin Lee
e85996ea46
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:19:57 +09:00
Felix Trepanier
46c9a5f094
do not encode if empty content
2011-08-02 06:47:53 +09:00
Trustin Lee
5579a91e1d
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:35:38 +09:00
pfisterer
07803b3e2c
Updated version of netty-iostream channels
2011-08-01 10:07:34 +02:00
Trustin Lee
95f3af0a02
NETTY-418 isCompleteFailure() and isCompleteSuccess() are both true at the same time
...
* Fixed incorrect isPartialSuccess(), isPartialFailure(), isCompleteFailure() implementation
2011-08-01 06:11:14 +09:00
Trustin Lee
acb1ac84e6
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:08 +09:00
Trustin Lee
dfd7b0d6c3
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:16:02 +09:00
Trustin Lee
4bf26c31e9
NETTY-410 NioWorker write deadlock
...
Applied the patch provided by Greg Dhuse.
2011-08-01 04:00:01 +09:00
Trustin Lee
b9ef785b5b
NETTY-406 ProtobufEncoder should also support Message.Builder
...
* Added support for Message.Builder
2011-08-01 03:46:22 +09:00
Trustin Lee
e2655f3c38
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:06 +09:00
Trustin Lee
2acd74db83
NETTY-410 NioWorker write deadlock
...
Applied the patch provided by Greg Dhuse.
2011-08-01 01:32:55 +09:00
Jamie Furness
8982838ab2
Small fix to the http tunnel to prevent null pointer is attempt is made to close channel twice
2011-07-29 13:27:18 +09:00
Trustin Lee
ccc155e96f
Fixed code format
2011-07-29 13:10:38 +09:00
nibin
65fc361eec
* 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
2011-07-29 13:03:55 +09:00
Trustin Lee
0062cb743c
Added FIXME
2011-06-29 12:30:47 +09:00
fredericBregier
45a7692f07
Fixed NETTY-397, NETTY-398, NETTY-399, NETTY-403
2011-06-09 14:34:05 +09:00
Trustin Lee
dd1ff8d9cc
Handle chunked encoding properly for non-200 responses
2011-05-26 12:11:30 +09:00
Trustin Lee
15792da167
Tabs to spaces
2011-05-11 18:11:36 +09:00
Trustin Lee
9db6bba913
NETTY-295 HTTP header getters/setters for date headers
...
* Added get/setDateHeader() methods that works with custom date
headers
* Removed get/setDateInMilliseconds() methods because they can be
simply represented with a chained getTime() call
* Fixed the inconsistent behavior & contract of
HttpHeaders.getContentLength() which does not throw an exception when
the header is missing or ill-formatted unless a default value is
specified
* Added clearHeaders() and removeHeader() to HttpHeaders
* Tabs to spaces
2011-05-11 18:09:49 +09:00
Rogiel Sulzbach
94cff9d041
NETTY-295 - HTTP header getters and setters for date headers
...
* Merged CookieDateFormat into HttpHeaderDateFormat, which can parse all
known date format variants related with HTTP
* Added HttpHeaders.get/setDate()
2011-05-11 17:02:11 +09:00
Trustin Lee
fd7b5769f7
Made IdleStateHandler @Sharable and removed unnecessary lazy
...
initialization in ReadTimeoutHandler
2011-05-04 17:30:09 +09:00
Trustin Lee
f22a55d6e2
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:12:11 +09:00
Trustin Lee
45a4b5b7c4
Fixed a bug in the uptime example where uptime is reset even when it
...
shouldn't be.
2011-05-04 16:53:57 +09:00
Bruce Mitchener
aca290096b
Close bold tag.
2011-05-04 14:04:34 +09:00
Trustin Lee
e1869db913
Fixed various compiler warnings
...
* Missing @Override annotations
* Indirect access to a private member from inner classes
* Incorrect @see javadoc tags (should not use the @link tag)
* ..
2011-05-03 11:05:06 +09:00
iainmcgin
39a6baf380
fixing formatting for NioSocketChannelConfig, which I had incorrectly merged earlier.
2011-04-18 17:47:28 +09:00
iainmcgin
a617bd3290
Fixed formatting to conform to project standards
2011-04-18 17:47:12 +09:00
iainmcgin
f7729bc8bb
Moved http tunnel implementation into org.jboss.netty.channel.socket.http package, replacing the original implementation.
...
Existing usage example has been deleted and should be replaced by an updated example using the new API.
2011-04-18 17:46:52 +09:00
iainmcgin
12d2c8ad2e
NETTY-246: adding implementation to netty trunk for the 4.0.0 release. In order to get the tests to pass,
...
I had to change the surefire fork policy from "never" to "once", as it seems the classloader settings used
by the maven process were preventing jmock from mocking package private interfaces.
2011-04-18 17:44:54 +09:00
Trustin Lee
4aef19e947
Updated the initial Javadoc written by Veebs w/ a little formatting
2011-04-18 17:35:04 +09:00
Veebs
eb6ec29b14
Fixed SimpleDateFormat bug. Should use new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US), otherwise when running on for example Japanese OS, the resulting date would contains Japanese characters, and the browser would not be able to parse!
2011-04-18 17:23:46 +09:00
Veebs
a85249ced8
Added handing of HTTP headers with respect to browser caching and cache validation.
2011-04-18 17:23:13 +09:00
Will
e00e9bb8fa
fix typo in exception message
2011-04-18 17:00:56 +09:00
Daniel Bevenius
98db0d3908
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:03 +09:00
Trustin Lee
b26f13d3b9
Fixed compilation and removed unused fields
2011-04-04 18:21:47 +09:00
Trustin Lee
16750ffc28
NETTY-394 SslHandler does not work with a little endian buffer
...
Added SslHandler.getShort() which replaces ChannelBuffer.getShort() calls
2011-04-02 03:27:00 +09:00
Trustin Lee
6f7e2606a1
Merge branch 'master' of github.com:trustin/netty
2011-04-02 03:13:42 +09:00
Trustin Lee
94ac810f2e
NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
...
Increased the SSL buffer size by 1024 as advised
2011-04-02 03:08:24 +09:00
Trustin Lee
10e2fc44e5
Fixed NETTY-336 Fine-grained control over thread renaming
...
Fixed exception message
2011-03-29 16:15:11 +09:00
Trustin Lee
89de2e4b95
Fixed NETTY-336 Fine-grained control over thread renaming
...
NamedThreadFactory now can set the daemon flag and the thread priority
2011-03-29 16:12:55 +09:00
Trustin Lee
83bc3e794a
Fixed NETTY-336 Fine-grained control over thread renaming
...
Added NamedThreadFactory so that a user can customize I/O thread names easily
2011-03-29 16:00:53 +09:00
Trustin Lee
d1919d0e14
Fixed NETTY-336 Fine-grained control over thread renaming
...
Removed ThreadNameDeterminer and ThreadRenamingRunnable completely and let user specify the Executor with one's own ThreadFactory
2011-03-29 15:29:52 +09:00
Trustin Lee
f3899e8d58
Fixed an infinite loop on a certain NIO impl
2011-03-25 02:27:20 +09:00
Trustin Lee
6707aa751c
Fixed a typo
2011-03-09 00:20:47 +09:00
Trustin Lee
ec6b34a307
Updated Javadoc
2011-03-03 02:02:01 +09:00
Trustin Lee
0382538548
Removed unused ChunkedInput.hasNextChunk()
2011-03-03 01:56:08 +09:00
Trustin Lee
98b2b6d8dc
Do not write an empty buffer unnecessarily when nextChunk() returned
...
null
2011-03-03 01:32:27 +09:00
Trustin Lee
a5e9f633ef
Better variable naming / Fixed potential stall
2011-03-02 19:58:28 +09:00
Trustin Lee
4144b43735
NETTY-386 Support for serial connections using RXTX
...
Contributed by Daniel Bimschas and Dennis Pfisterer
Initial import after fixing compiler warnings and removing log
messages and shut-down hooks
2011-02-24 17:26:18 +09:00
Trustin Lee
7ab5ec5f74
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:32 +09:00
Trustin Lee
429d3987dc
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:49 +09:00
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
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