Trustin Lee
468918227a
Remove unnecessary parameter in AttributeKey and ChannelOption
...
- Removed UniqueKey which does nothing
- The valueType parameter was not needed at all because we do not need
type information in runtime at all.
2012-05-31 16:03:57 -07:00
Trustin Lee
9bb5b34887
Remove BufferedWriteHandler
...
- All writes in Netty 4 are buffered by default and a user can call
flush() to flush it.
2012-05-31 15:55:11 -07:00
Trustin Lee
2aa466640e
Ported Read/WriteTimeoutHandler with simplification
...
- The default behavior is now to close the channel on timeout. A user
can override this behavior, but I would just use IdleStateHandler or
use eventLoop's timer facility directly for finer control.
2012-05-31 15:53:38 -07:00
Trustin Lee
5f24f176bb
Port ReadTimeoutHandler
2012-05-31 15:04:25 -07:00
Trustin Lee
7ddc93bed8
Ported IdleStateHandler / Forward-ported the UptimeClient example
...
- Add ChannelHandlerContext.eventLoop() for convenience
- Bootstrap and ServerBootstrap handles channel initialization failure
better
- More strict checks for missing @Sharable annotation
- A handler without @Sharable annotation cannot be added more than
once now.
2012-05-31 14:54:48 -07:00
Trustin Lee
77274ae743
Automated code clean-up
2012-05-31 12:03:01 -07:00
Trustin Lee
734d452be2
Apply missing changes in the branch '3'
2012-05-31 11:50:08 -07:00
Trustin Lee
0cd766df30
Move HTTP multipart classes to its own package / Clean-up
...
- Move CaseIgnoringComparable to netty-common
- Add HttpConstants
2012-05-31 11:32:42 -07:00
Trustin Lee
c8fa42beaf
Rename wrapPrimitive() to copyPrimitive() / Add tests / Tidy up ( #167 )
...
- Add ChannelBuffers.copyShort(short...)
2012-05-31 11:13:01 -07:00
Trustin Lee
429535e6c8
More primitive wrapper methods ( #167 )
...
- ChannelBuffers.wrap(Float|Double)(...)
- Handle the case where there is only one value.
2012-05-31 10:51:27 -07:00
Trustin Lee
49bda34a5d
Fix a bug where ChannelBufferHolder.isEmpty() returns a wrong value
...
.. when it has a byte buffer
2012-05-31 09:14:39 -07:00
Trustin Lee
0fd824c3bb
Fix UnsupportedOperationException
2012-05-31 09:11:07 -07:00
Trustin Lee
633fada6ec
Take advantage of the new method in ChannelInboundStreamHandlerAdapter
2012-05-31 09:07:10 -07:00
Trustin Lee
3584da2dad
Use ChannelInboundStreamHandlerAdapter in EchoClientHandler
2012-05-31 09:04:19 -07:00
Trustin Lee
2a63acef4d
More convenient inbound stream handler / Smarter inbound buffer cleanup
...
- Added a new convenience method to ChannelInboundstreamHandlerAdapter
- EchoServerHandler uses the new method
- DefaultChannelPipeline calls inboundByteBuffer.discardReadBytes()
when it is sure there's no memory copy involved
2012-05-31 09:03:31 -07:00
Trustin Lee
665777e6f9
Add InternetProtocolFamily and use it with NioDatagramChannel
2012-05-31 02:49:39 -07:00
Trustin Lee
197f31c90e
Test all supported SPDY session management
2012-05-31 02:06:53 -07:00
Trustin Lee
a494f201fc
Call setHandshakeComplete() before the handler replacement ( #332 )
...
- Contributed by @normanmaurer
2012-05-31 02:02:02 -07:00
Trustin Lee
c32df371ab
Fix compilation errors
2012-05-31 01:55:30 -07:00
Trustin Lee
7ac89ace4f
Finished forward-porting SPDY codec
2012-05-31 01:53:58 -07:00
Trustin Lee
32c982b478
Fix NPE in OioChildEventLoop
2012-05-31 01:19:54 -07:00
Trustin Lee
131eef2c51
Forward-porting SPDY codec
2012-05-31 00:37:27 -07:00
Trustin Lee
53f16ce003
Add more convenience methods to Bootstrap and ServerBootstrap
2012-05-30 23:47:15 -07:00
Trustin Lee
34f697a06c
Forward-port the JBoss Marshalling codec
2012-05-30 23:36:03 -07:00
Trustin Lee
d7a198a60f
Zap marshalling and spdy codec to forwardport again
2012-05-30 23:14:18 -07:00
norman
7fb64e2046
A small optimization for the fix of #360
2012-05-30 23:06:06 -07:00
Sun Ning
f2df20ddff
fix #360 , add check for empty buffer; also add unit test for this scenario
2012-05-30 23:05:43 -07:00
Norman Maurer
59b5c3a328
Add workaround to let the sleep work correctly in windows too. See #356
...
Conflicts:
common/src/main/java/io/netty/util/HashedWheelTimer.java
common/src/main/java/io/netty/util/internal/DetectionUtil.java
2012-05-30 19:28:42 -07:00
Cruz Julian Bishop
f6f246cac0
Added messages to all IndexOutOfBoundsExceptions
...
I need to implement this to help myself finish more future pull requests which, so far, are plagued by these exceptions with no information available.
2012-05-30 19:25:45 -07:00
Norman Maurer
5852d82ad6
Only send event upstream once the Ssl handshake was completed successfull. See #358
...
Conflicts:
handler/src/main/java/io/netty/handler/ssl/SslHandler.java
2012-05-30 19:25:29 -07:00
Norman Maurer
e2bdc2234d
Cleanup
2012-05-30 19:21:21 -07:00
Trustin Lee
743596aaea
Fix a bug where first websocket frame is discarded ( #332 )
2012-05-30 19:18:08 -07:00
Norman Maurer
e2a7462d70
Fix syntax. See #342
2012-05-30 19:14:10 -07:00
Jeff Pinner
2f71c001b4
Make SslBufferPool an interface
2012-05-30 19:13:52 -07:00
norman
7007e2fbaf
Make all methods of SslBufferPool public so a subclass can be placed in another package. See #336
2012-05-30 19:12:26 -07:00
norman
1226cdacfb
Use the correct ChannelBufferFactory when creating new ChannelBuffers. See #335
...
Conflicts:
handler/src/main/java/io/netty/handler/ssl/SslHandler.java
2012-05-30 19:12:11 -07:00
norman
ed357181c0
Make sure SslHandler also works if SslBufferPool use non heap ByteBuffers. See #329
...
Conflicts:
handler/src/main/java/io/netty/handler/ssl/SslHandler.java
2012-05-30 19:11:23 -07:00
norman
14b2a0db99
Add JBoss Marshalling Encoder/Decoder. See #324
2012-05-30 19:09:54 -07:00
norman
a8d63a4ad7
Make sure CompositeChanneBuffer does not throw a UnsupportedOperationException if discardReadBytes() discard the whole content of the buffer. See #325
2012-05-30 19:09:41 -07:00
Trustin Lee
a5a76131e6
Fix checkstyle errors
2012-05-30 19:09:23 -07:00
vibul
4fc089829d
Fixed bug where subprotocol not sent by client
...
Conflicts:
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker.java
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker08.java
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java
2012-05-30 19:07:44 -07:00
Trustin Lee
67ec4429cc
Implement NIO.2 multicast options
2012-05-30 19:03:45 -07:00
Trustin Lee
117626e034
Add ChunkedWriteHandlerTest from branch 3
2012-05-30 18:50:33 -07:00
Trustin Lee
57d3d0cbb5
Update ChunkedWriteHandler to the latest revision at branch 3
2012-05-30 18:47:55 -07:00
norman
7b434e225f
Make sure we fire the event from the io-thread. See #306
2012-05-30 18:45:57 -07:00
norman
31e643b32d
Refactor ChunkedWriteHandler to remove synchronization which can have bad side effects like deadlocks. See #297 and #301
...
Conflicts:
handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java
2012-05-30 18:45:28 -07:00
norman
280c65a28e
Refactor ChunkedWriteHandler to remove synchronization which can have bad side effects like deadlocks. See #297 and #301
...
Conflicts:
handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java
2012-05-30 18:43:52 -07:00
norman
f8f703e679
Add @Override annotations
2012-05-30 18:41:43 -07:00
norman
c705379adb
Notify ChannelFuture's of queued writes if the SslHandler gets remove d from the ChannelPipeline. See #306
2012-05-30 18:41:32 -07:00
norman
c0bb070876
Fail all queued writes if the ChunkedWriteHandler is removed from the ChannelPipeline. See #304
2012-05-30 18:41:13 -07:00