Norman Maurer
695665a4cf
More javadocs fixes
2012-12-19 21:08:47 +01:00
Norman Maurer
db0459ea9c
Fix javadocs of IdleStateHandler
2012-12-19 16:25:31 +01:00
Norman Maurer
d9b26dab29
Remove get*() from the methods to match the rest of our method signatures
2012-12-19 15:38:17 +01:00
Norman Maurer
a1368f0fa8
Some javadocs fixed to remove dead links
2012-12-19 15:36:07 +01:00
Norman Maurer
77c01d252e
Fix visibily of ImmediateExecutor and add private constructor
2012-12-19 15:31:07 +01:00
Norman Maurer
11047aaa69
[ #832 ] Add javadocs which explains how to workaround the problem
2012-12-19 15:17:10 +01:00
Veebs
92f1a81f47
#751 - Added support for legacy websocket v7 in order to pass SocksJS tests
2012-12-19 12:35:56 +01:00
Trustin Lee
78ccfeedf9
Save memory copy
2012-12-19 18:36:31 +09:00
Trustin Lee
937c0481e0
Do not use slice() to get the content of HTTP msg
...
- Fixes #794
2012-12-19 18:28:55 +09:00
Trustin Lee
b4fb6a49ee
Remove codec-snappy from the module list
2012-12-19 18:28:34 +09:00
Trustin Lee
e353540d47
Move snappy codec to netty-codec
2012-12-19 18:12:18 +09:00
Trustin Lee
67da6e4bf9
Remove the notion of ByteBufAllocator.bufferMaxCapacity()
...
- Allocate the unpooled memory if the requested capacity is greater then the chunkSize
- Fixes #834
2012-12-19 17:35:32 +09:00
Norman Maurer
35c01660da
Merge branch 'master' of github.com:netty/netty
2012-12-19 09:27:18 +01:00
Norman Maurer
fdeff3855d
Move ChannelInputShutdownEvent to socket package as this is where it belongs to. Also added some javadocs
2012-12-19 09:27:01 +01:00
Trustin Lee
0e017db89a
Return the new buffer's capacity is same with the requested capacity
...
- Rename capacity variables to reqCapacity or normCapacity to distinguish if its the request capacity or the normalized capacity
- Do not reallocate on ByteBuf.capacity(int) if reallocation is unnecessary; just update the index range.
- Revert the workaround in DefaultChannelHandlerContext
2012-12-19 16:50:05 +09:00
Norman Maurer
b6e83dff4f
Add javadocs and also some parameter checks in DefaultFileRegion
2012-12-19 08:24:32 +01:00
Jestan Nirojan
44142efe55
Fixed OioSctpChannel event loop issue #632 by using 3 different selectors
2012-12-19 06:54:06 +01:00
Jestan Nirojan
4229b23a51
Fixed SCTP testcases #632
2012-12-19 06:51:00 +01:00
Trustin Lee
3fc3401c08
Remove bad Javadoc in SCTP classes.
2012-12-19 11:58:54 +09:00
Luke Wood
43e40d6af6
Add Snappy compression codec
2012-12-18 21:09:31 +01:00
Norman Maurer
f6735f8cc9
Add javadocs to AIO and also fix a few warnings
2012-12-18 15:27:52 +01:00
Norman Maurer
7b0ec599d6
Fix config
2012-12-18 11:38:38 +01:00
Norman Maurer
8d89e48177
Add javadocs in the oio package and also fix some intellij warnings
2012-12-18 11:24:25 +01:00
Norman Maurer
6d93c3fb25
more javadocs
2012-12-18 07:55:39 +01:00
Norman Maurer
b7b17209ea
Next round of javadocs cleanup and fixes. Also limit the visibility of FailedChannelFuture
2012-12-18 07:23:42 +01:00
Trustin Lee
42d466c97f
Remove cruft
2012-12-18 15:21:26 +09:00
Trustin Lee
310a87a51d
Fix #814 - Prevent IllegalBufferAccessException on write() and flush()
...
- Also fixed a incorrect port of SpdySessionHandler
- Previously, it closed the connection too early when sending a GOAWAY frame
- After this fix, SpdySessionHandlerTest now passes again without the previous fix
2012-12-18 04:53:37 +09:00
Norman Maurer
5a467b69bf
DatagramPacket should be final
2012-12-17 20:37:10 +01:00
Trustin Lee
949435d105
Fix checkstyle
2012-12-18 03:08:01 +09:00
Trustin Lee
e59ac8e79b
Do not call inbound event methods directly
...
- Fixes #831
This commit ensures the following events are never triggered as a direct
invocation if they are triggered via ChannelPipeline.fire*():
- channelInactive
- channelUnregistered
- exceptionCaught
This commit also fixes the following issues surfaced by this fix:
- Embedded channel implementations run scheduled tasks too early
- SpdySessionHandlerTest tries to generate inbound data even after the
channel is closed.
- AioSocketChannel enters into an infinite loop on I/O error.
2012-12-18 03:04:26 +09:00
Norman Maurer
39250873ae
Add some javadocs
2012-12-17 16:01:58 +01:00
Trustin Lee
3f9441f4c1
Add missing free() on SpdySessionHandler buffers
2012-12-17 19:29:36 +09:00
Trustin Lee
8b82ff5ce0
Fix checkstyle
2012-12-17 18:28:31 +09:00
Trustin Lee
a8f5efdb26
Add proper boundary / freeness check on ByteBuf impls
...
- Fixes #827
2012-12-17 18:27:30 +09:00
Trustin Lee
ca93b624ff
Add IllegalBufferAccessException and checks on MessageBuf impls
...
- Related: #827
2012-12-17 18:03:31 +09:00
Trustin Lee
def12a171c
Rename ChannelBuf to Buf and ChannelBufType to BufType
...
- Fixes #825
2012-12-17 17:43:45 +09:00
Trustin Lee
03e68482bb
Remove ChannelBuf/ByteBuf.Unsafe
...
- Fixes #826
Unsafe.isFreed(), free(), suspend/resumeIntermediaryAllocations() are not that dangerous. internalNioBuffer() and internalNioBuffers() are dangerous but it seems like nobody is using it even inside Netty. Removing those two methods also removes the necessity to keep Unsafe interface at all.
2012-12-17 17:41:21 +09:00
Trustin Lee
33134b1343
Ensure PooledByteBuf.init() is not called with null memory
2012-12-17 16:02:21 +09:00
Norman Maurer
ba3c795fdf
Adjust ChannelPipeline to support method-chaining in a consistent way
2012-12-14 17:06:31 +01:00
Norman Maurer
caa698f235
[ #819 ] Allow for easy method-chaining in ChannelConfig and its sub-types
...
This commit also introduce a new interface which is called AioSocketChannelConfig to expose AIO only config options with the right visibility.
Also it change the ChannelConfig.setAllocator(..) to return the ChannelConfig to be more consistent with the other methods.
2012-12-14 16:59:23 +01:00
Norman Maurer
6eb7de04e7
Allow to access localAddress and remoteAddress even if the channel is not registered yet
2012-12-14 15:19:03 +01:00
Norman Maurer
42f6a27235
Allow modify the config even before the channel is registered to the eventLoop
2012-12-14 15:10:10 +01:00
Trustin Lee
d8c569a71b
Make ChannelFutureNotifier accept multiple ChannelFutures
2012-12-14 20:09:40 +09:00
Trustin Lee
eb23c9d27c
Add missing 'operation(args, future)' for 'operation(args)'
...
- Fixes #818
- Fix inspector warnings
2012-12-14 19:42:58 +09:00
Trustin Lee
5ffb495746
Do not allow suspendIntermediaryDeallocations() after free()
2012-12-14 18:39:00 +09:00
Norman Maurer
96dc3f983f
Refactor AIO Transport to allow to use Bootstrap without the ugly hack
2012-12-14 09:51:36 +01:00
Trustin Lee
02a6e85feb
Add methods that add/remove multiple ChannelFutureListeners to ChannelFuture
...
- Fixes #811
2012-12-14 12:45:43 +09:00
Trustin Lee
1f72e53af3
Remove redundant copyright headers added by IntelliJ
2012-12-14 12:23:24 +09:00
Trustin Lee
5a4a59406b
Merge ByteBuf.hasNioBuffer() and hasNioBuffers()
...
- Fixes #797
2012-12-14 12:20:33 +09:00
Trustin Lee
8e1a6c6cf5
Add ByteBuf.maxWritableBytes()
...
- Fixes #806
2012-12-14 11:49:01 +09:00