Norman Maurer
daeaaf25a9
Respect validateHeaders when duplicate/copy the response/request
2013-11-26 08:12:58 +01:00
Norman Maurer
279e2e3cd2
Optimize DefaultHttpHeaders.contains(...)
2013-11-24 14:42:33 +01:00
Norman Maurer
8eb88b7889
Optimize check for equals header name and value
2013-11-24 14:32:55 +01:00
Norman Maurer
75280ac6e3
[ #2003 ] Generate a io.netty.util.Version class which holds the version
2013-11-24 13:41:07 +01:00
Norman Maurer
a01f246091
Fix compile errors caused by last commit
2013-11-24 10:32:05 +01:00
Norman Maurer
f84a50d3cb
Use the same HttpHeaders optimisations in master as in 4.0
2013-11-24 10:19:15 +01:00
Norman Maurer
0fa6dcefc5
[ #1682 ] HttpVersion.valueOf(...) should not convert to uppercase
2013-11-23 20:35:47 +01:00
Michael Nitschinger
8b5f8de2ef
Avoid memory leak when encoding the key
2013-11-22 19:22:45 +01:00
Trustin Lee
132af3a485
Introduce ChannelHandlerInvoker, dedeciated for invoking event handler methods, and move most handler invocation code in ChannelHandlerContext to the default ChannelHandlerInvoker implementation
...
- Fixes #1912
- Add ChannelHandlerInvoker and its default implementation
- Add pipeline manipulation methods that accept ChannelHandlerInvoker
- Rename Channel(Inbound|Outbound)Invoker to
Channel(Inbound|Outbound)Ops to avoid confusion
- Remove the Javadoc references to the package-private interfaces
2013-11-21 14:14:23 +09:00
Alex Petrov
883ab29d05
Improve doc of IdleStateHandler according to example given in UptimeClientHandler (L57)
2013-11-20 10:24:09 +01:00
Norman Maurer
43943c7ab1
[ #1994 ] DefaultPromise.cancel() should reuse CancellationException for performance reasons
2013-11-19 18:01:20 +01:00
Trustin Lee
d0e928db70
Additional fix for potential race condition which occurs when a user cancels a connection attempt
...
- Fixes #1986
2013-11-18 17:00:23 +09:00
Trustin Lee
38f57adb70
Fix an unexpected IllegalStateException from a selector loop when a user cancels a connection attempt
...
- Fixes #1986
2013-11-18 16:33:49 +09:00
Trustin Lee
786fdbd6e0
Bring back ChannelGroup.find(id)
2013-11-18 15:59:44 +09:00
Trustin Lee
2235873537
Resurrect Channel.id() with global uniqueness
...
- Fixes #1810
- Add a new interface ChannelId and its default implementation which generates globally unique channel ID.
- Replace AbstractChannel.hashCode with ChannelId.hashCode() and ChannelId.shortValue()
- Add variants of ByteBuf.hexDump() which accept byte[] instead of ByteBuf.
2013-11-18 15:30:12 +09:00
Daniel Bevenius
624573971f
Support for empty HTTP request header values.
2013-11-17 15:49:14 +01:00
Trustin Lee
6ba1a85c4b
Remove unnecessary parenthesis
2013-11-15 23:08:25 +09:00
Norman Maurer
6306b83e2d
[ #1982 ] Limit the usage of ThreadLocal.get() for performance reasons
2013-11-14 09:48:33 +01:00
Norman Maurer
41ccbfd388
Also allow to disable header validation via HttpServerCodec and HttpClientCodec. Related to [ #1981 ]
2013-11-14 09:37:57 +01:00
Trustin Lee
6e2593ddc3
Fix regression introduced by 4c7fa950cc
...
- Some promises were not fulfilled when SSLEngine produces 0 bytes.
2013-11-14 15:08:10 +09:00
Daniel Bevenius
7cc2507076
Adding check for zero readable bytes in WebSocket08FrameDecoder decode.
2013-11-13 07:11:05 +01:00
Norman Maurer
d11d3a6b50
Also allow to override how direct ByteBuffers are freed
2013-11-12 12:44:11 +01:00
Norman Maurer
9b7d286652
Allow to override how wrapped direct ByteBuffer are allocated to make it easier to extend
2013-11-12 12:44:00 +01:00
Norman Maurer
329bbfcd87
[ #1976 ] Fix IndexOutOfBoundsException when calling CompositeByteBuf.discardReadComponents()
2013-11-09 20:13:43 +01:00
Alex Petrov
519c632b2e
Improve docstrings for and of
2013-11-08 12:23:43 +01:00
Trustin Lee
daf15fc167
Don't create an EmbeddedSocketAddress every time
2013-11-08 18:01:29 +09:00
Trustin Lee
9125977692
Simpler toString() for ByteBufAllocators
2013-11-08 17:53:57 +09:00
Trustin Lee
4c7fa950cc
Optimize SslHandler
...
- Fixes #1905
- Call ctx.flush() only when necessary
- Improve the estimation of application and packet buffer sizes
- decode() method now tries to call unwrap() with as many SSL records as
possible to reduce the number of events triggered
2013-11-08 17:42:28 +09:00
Norman Maurer
a86e215718
Fix regression which lead to leak buffers when nothing could be read from the Channel.
...
This was introduced as part of #1812 , but fortunatualy was not part of any release.
2013-11-07 07:13:20 +01:00
Michael Nitschinger
ea7b690430
add docs and testing for the LoggingHandler.
2013-11-06 18:19:19 +01:00
Trustin Lee
7fff25c0de
Remove AUTO_CLOSE option
...
- Related #1952
- Since 5.0, we ask users decide to close the channel on write failure.
2013-11-05 17:34:48 +09:00
Trustin Lee
e2de807fb0
Add AUTO_CLOSE option
...
- Fixes #1952
- If AUTO_CLOSE is turned on, Netty will close the channel immediately and automatically on write failure. The default is false.
2013-11-05 17:23:58 +09:00
Norman Maurer
c26d43757e
[ #1800 ] [ #1802 ] Correctly expand capacity of ByteBuf while preserve content
2013-11-04 15:18:48 +01:00
Trustin Lee
a9893f3bd2
Abstract classes' names should start with 'Abstract'
2013-11-04 20:21:55 +09:00
Trustin Lee
f7c70366ea
Fixed various inspector warnings
2013-11-04 20:19:33 +09:00
Trustin Lee
ff34bb08a6
Moved constant classes out of util
2013-11-04 20:10:52 +09:00
Michael Nitschinger
a759b61240
adding memcache codec to netty-all project.
2013-11-04 19:52:27 +09:00
Trustin Lee
1f0a73c238
Fix checkstyle
2013-11-04 19:52:10 +09:00
Trustin Lee
26415b8f4c
Use StringUtil.simpleClassName(..) instead of Class.getSimpleName() where necessary
...
- Class.getSimpleName() doesn't render anonymous classes very well
- + some minor cleanup
2013-11-04 19:42:33 +09:00
Michael Nitschinger
5169376309
Implementing the Binary Memcache protocol
...
This changeset implements the full memcache binary protocol spec, including
a first batch of tests. Ascii protocol and more coverage and helper classes
will follow.
2013-11-04 19:24:14 +09:00
Trustin Lee
6b0025430e
Bump the version to 5.0.0.Alpha1
2013-11-04 19:14:40 +09:00
Trustin Lee
b9d7bc6b4b
Add a getter method for accessing the ClassPool of JavassistTypeParameterMatcherGenerator
...
.. so that a user can even manipulate the class pool as they wish.
2013-11-04 19:00:25 +09:00
Trustin Lee
5b65be01da
Fix an API bug in the JavassistTypeParameterMatcherGenerator where some of its methods are not static
...
- Related issue: #1402
2013-11-04 18:56:19 +09:00
Trustin Lee
e01a444578
Fix some inspector warnings
2013-11-04 18:03:32 +09:00
fredericBregier
cf1970c31b
Split HttpPostRequestDecoder into HttpPostStandardRequestDecoder and HttpPostMultipartRequestDecoder / Add HttpData.maxSize
...
- Related issues: #1937 #1938 and #1946
- Add InterfaceHttpPostRequestDecoder and Make HttpPostRequestDecoder implement it
- HttpPostRequestDecoder actually delegates itself to HttpPostStandardRequestDecoder or HttpPostMultipartRequestDecoder
- Remove IncompatibleDataDecoderException because it's not thrown anywhere now
2013-11-04 17:57:13 +09:00
Trustin Lee
2eb5d4f0dd
Fix a bug where SslHandler doesn't sometimes handle renegotiation correctly
...
- Fixes #1964
2013-11-04 16:53:05 +09:00
Norman Maurer
de2c6acecf
[ #1940 ] Add javadoc to explain how the FileChannel is closed when using DefaultFileRegion
2013-11-02 15:59:56 +01:00
Norman Maurer
208411f9a9
Also pass the ByteOrder in getUnadjustedFrameLength method. Part of #1960
2013-11-02 14:27:23 +01:00
Trustin Lee
f767abe5b0
Allow a user to define his/her own length field decoder
...
- Fixes #1960
2013-11-02 21:58:08 +09:00
Trustin Lee
9d611a182f
Rename SimpleChannelInboundHandler.channelRead0() to messageReceived()
...
- Related: #1590
2013-11-02 19:59:21 +09:00