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
norman
d308fa8fe1
Fail all pending writes on channelClosed(..). See #305
2012-05-30 18:40:59 -07:00
Norman Maurer
d1e6328102
Allow to register ChannelFutureListener's that get notified once the inbound of the SSLEngine is closed. See #137
2012-05-30 18:40:43 -07:00
Frédéric Brégier
a73e6ea581
typo fix ! Sorry
2012-05-30 17:39:03 -07:00
Frédéric Brégier
a91e72403c
Very small fix (readUnsigned while in optimized version it was signed but should be unsigned)
2012-05-30 17:37:41 -07:00
Trustin Lee
d6cedb008b
Reduce the cost of throwing a SeekAheadNoBackArrayException
2012-05-30 17:37:12 -07:00
Frédéric Brégier
f799c9f215
Add Exception to the exception class name
2012-05-30 17:31:40 -07:00
Frédéric Brégier
b8ab8828c0
Add Exception to name of the Exception ;-)
2012-05-30 17:31:21 -07:00
Frédéric Brégier
ac39f39f36
Update codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java
2012-05-30 17:31:03 -07:00
Frédéric Brégier
5d2bf43b59
Optimize Buffer access while decoding by going through backend array when possible (divide by almost 2 the time spent in decoding)
2012-05-30 17:30:47 -07:00
Frédéric Brégier
759d0633a4
Add the SeekAheadOptimize class to enable faster seek of bytes values in HttpPostRequestDecoder
2012-05-30 17:30:36 -07:00
Trustin Lee
e8bc276ddd
Fix in addContent when switching from MemoryAttribute if it is done when
...
last buffer added, in order to not close immediately the underlying
file before adding the last buffer.
- Contribution by @fredericBregier
2012-05-30 17:28:51 -07:00
Trustin Lee
dba9a6d408
Close channel when needed / Call force() only when necessary
...
- Contribution by @fredericBregier
2012-05-30 17:26:41 -07:00
Trustin Lee
92f010d688
Use int instead of long for maxFramePayloadLength
2012-05-30 17:21:51 -07:00
Trustin Lee
67ee22e23a
Add max frame length for web socket to limit chance of DOS attack ( #283 )
...
- Contributed by @veebs
2012-05-30 17:13:00 -07:00
Trustin Lee
ec43aa121f
Case-insensitive matching for Upgrade and Connection header ( #278 )
2012-05-30 16:43:04 -07:00
Trustin Lee
1d7067719b
Allow to disable the use of sun.misc.Unsafe ( #272 )
...
- Contributed by @normanmaurer
- Added io.netty.noUnsafe property
2012-05-30 16:38:23 -07:00
Trustin Lee
42abb6df3a
QueueFactory cleanup
...
- Really attempt to create a queue to determine LTQ can be initialized
in runtime, and cache the result
- Remove unnecessary Class<T> parameter in createQueue()
- Remove unused createQueue(Collection)
2012-05-30 16:19:22 -07:00
Trustin Lee
c7004ed142
Use Sec-WebSocket-Origin instead of Origin ( #264 )
...
- Contributed by @normanmaurer
2012-05-30 16:04:34 -07:00
Trustin Lee
367895f660
Add port to Origin if the port is non default (80/443). ( #262 )
2012-05-30 16:00:40 -07:00
Trustin Lee
4ff98c359c
Add PrematureChannelClosureException
2012-05-30 15:57:57 -07:00
Trustin Lee
7e94632d41
Add port to 'Origin' if the port is non default (80/443) ( #262 )
...
- Contributed by @normanmaurer
2012-05-30 15:57:39 -07:00
Trustin Lee
5e896cf0b3
Add a note that explain the behavior of CookieEncoder ( #94 )
...
- Contributed by @normanmaurer
2012-05-30 15:53:20 -07:00
Trustin Lee
b5d715343a
Fail if DynamicChannelBuffer attempts to exceed the max capacity ( #258 )
...
- Contributed by @normanmaurer
2012-05-30 15:51:24 -07:00
Trustin Lee
8eda2280b3
Add test for HttpClientCodec missing response handling ( #256 , #259 )
...
- Contributed by @normanmaurer
2012-05-30 15:48:57 -07:00
Trustin Lee
e3431db547
Use logger instead of System.err
2012-05-30 15:46:38 -07:00
Trustin Lee
6288e02a9a
System.out.println -> InternalLogger
...
- Remove unnecessary output, too
2012-05-30 15:44:21 -07:00
Trustin Lee
f428853b35
Remove IpV4Subnet.main()
...
- Should run as a test case
2012-05-30 15:41:39 -07:00