Commit Graph

3012 Commits

Author SHA1 Message Date
Trustin Lee
c6f3b5762e Implement NIO datagram transport with the new API
- AbstractChannel now handles flushing a message buffer
- Cleaned up DatagramChannel interface
- Removed ProtocolFamily because a user can create an NIO
  DatagramChannel and specify it as a constructor parameter
- UniqueName and UniqueKey constructors became public so that
  I don't need to create a subclass every time.
2012-05-24 08:57:10 -07:00
Trustin Lee
cd11786994 Fix typo in the comment 2012-05-24 08:51:46 -07:00
norman
326b88c430 A small optimization for the fix of #360 2012-05-24 08:47:35 +02:00
Norman Maurer
609caeba94 Merge pull request #363 from sunng87/master
Fix #360, add check for empty string buffer
2012-05-23 23:40:55 -07:00
Sun Ning
a6d7105761 fix #360, add check for empty buffer; also add unit test for this scenario 2012-05-24 14:33:19 +08:00
Trustin Lee
21a3d3fe02 Add more constructor to NioSocketChannel 2012-05-23 23:28:15 -07:00
Trustin Lee
a2d57144b4 Fix compilation errors 2012-05-23 11:47:37 -07:00
Trustin Lee
debaa6a72a Fix resource management 2012-05-23 11:45:30 -07:00
Trustin Lee
c883b61503 Ported codec-http to the new API
- Added ChannelBufferHolders.catchAllBuffer()
- Relaxed UnsupportedMessageTypeException constructor signature
- EmbeddedChannel now uses the catchAllBuffer
- ChanelInboundMessageHandlerAdapter.messageReceive() throws Exception
- Added ChannelInboundStreamHandlerAdapter
2012-05-23 11:42:10 -07:00
Trustin Lee
50b4894c36 Use ChannelInboundMessageHandlerAdapter 2012-05-23 09:49:03 -07:00
Trustin Lee
7ecad7a8ac Add ChannelInboundMessageHandlerAdapter 2012-05-23 09:47:38 -07:00
Jeff Pinner
c37496311c Merge pull request #361 from jpinner/spdy_3_master
SPDY/3 Support
2012-05-23 08:55:39 -07:00
Jeff Pinner
1a28d6119f SPDY: add SPDY/3 support 2012-05-23 08:54:11 -07:00
Jeff Pinner
f60997686d SPDY: fix for mozilla firefox bug 754766 2012-05-23 08:53:29 -07:00
Jeff Pinner
69d5be4225 SPDY: remove frame size limit in frame decoder 2012-05-23 08:52:50 -07:00
Norman Maurer
3a7ed4b75c Add workaround to let the sleep work correctly in windows too. See #356 2012-05-23 15:12:04 +02:00
Norman Maurer
a6685df3e2 Merge pull request #359 from Massive-Dynamics/out-of-bounds-details
Added messages to all IndexOutOfBoundsExceptions
2012-05-23 06:06:32 -07:00
Cruz Julian Bishop
71c1a2575d 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-23 21:25:35 +10:00
Norman Maurer
03f890a882 Only send event upstream once the Ssl handshake was completed successfull. See #358 2012-05-22 22:57:36 +02:00
Trustin Lee
ee4c1a55eb Fix a compilation error 2012-05-22 10:57:59 -07:00
norman
bd4358b3ad Make sure the test also work on ipv6 interfaces 2012-05-22 09:51:45 +02:00
norman
128309367c Also handle the case of missing shared lib for sctp 2012-05-22 09:36:14 +02:00
norman
0a95ce8104 Fix checkstyle 2012-05-21 11:57:55 +02:00
norman
10cd871df7 Release the resources of the BossWorkerPool. See #328 2012-05-21 11:48:52 +02:00
Norman Maurer
ba4736f33b Merge pull request #350 from fredericBregier/master
Change Executor to Timer from Netty, in reference to Issue #345 in master branch
2012-05-20 08:36:28 -07:00
Frédéric Brégier
327e434925 Fix checkstyle 2012-05-20 18:25:10 +03:00
Frédéric Brégier
41c6aefdab Fix checkstyle 2012-05-20 18:21:14 +03:00
Frédéric Brégier
c634539faa Fix checkstyle 2012-05-20 18:20:21 +03:00
Frédéric Brégier
8846947081 Same fix than in version 3.5 for Master branch (refer to issue #345)
Will be proposed once the one in 3.5 will be validated
2012-05-20 16:40:06 +03:00
Frédéric Brégier
792035cd38 Same fix than in version 3.5 for Master branch (refer to issue #345)
Will be proposed once the one in 3.5 will be validated
2012-05-20 16:39:14 +03:00
Frédéric Brégier
3bd77e93f1 Same fix than in version 3.5 for Master branch (refer to issue #345)
Will be proposed once the one in 3.5 will be validated
2012-05-20 16:38:21 +03:00
Frédéric Brégier
714e3d682e Same fix than in version 3.5 for Master branch (refer to issue #345)
Will be proposed once the one in 3.5 will be validated
2012-05-20 16:37:34 +03:00
Frédéric Brégier
54c97d0720 Same fix than in version 3.5 for Master branch (refer to issue #345)
Will be proposed once the one in 3.5 will be validated
2012-05-20 16:36:45 +03:00
Trustin Lee
baa3388859 Make the default constructor of CombinedChannelHandler protected 2012-05-20 20:57:00 +09:00
Trustin Lee
83f1b5fa35 Implement spinning in SelectorUtil.select()
- this seems to improve performance when the number of connections is
  very small
2012-05-20 16:29:31 +09:00
Trustin Lee
cab983244d Tidy up AbstractChannel.read() 2012-05-20 15:03:28 +09:00
Trustin Lee
3a8c10cc5a Do not call expandReadBuffer too often 2012-05-20 14:30:26 +09:00
Trustin Lee
af37ec4f23 Ported the HTTP snoop example to the new API
- Replaced pipeline factories with initializers
- Ported essential parts related with HTTP to the new API
- Replaced ChannelHandlerAdapter.combine() with CombinedChannelHandler
- Fixed a bug where ReplayingDecoder does not notify the next handler
- Fixed a bug where ReplayingDecoder calls wrong callDecode() method
- Added a destination buffer as an argument to AbstractChannel.doRead()
  for easier implementation
- Fixed a bug where NioSocketChannel did not try to increase the inbound
  buffer size (moved the logic to AbstractChannel)
2012-05-20 14:19:11 +09:00
Trustin Lee
e846505ceb Add combined codec classes and related utility method 2012-05-20 12:53:22 +09:00
Norman Maurer
7018b8453f Cleanup 2012-05-19 17:10:52 +02:00
Norman Maurer
3d715a4967 Merge branch 'master' of github.com:netty/netty 2012-05-19 17:08:59 +02:00
Norman Maurer
b6abefb5b8 Add a replace(..) method to FrameDecoder and also to ReplayDecoder as it now extend FrameDecoder. This also fix #332 2012-05-19 17:08:45 +02:00
Frédéric Brégier
5e48c50589 Merge pull request #346 from fredericBregier/master
Proposal to fix 1rst issue presented in #345
2012-05-19 07:56:38 -07:00
Norman Maurer
3ca2a53e91 Add a replace(..) method to FrameDecoder and also to ReplayDecoder as it now extend FrameDecoder. This also fix #332 2012-05-19 16:35:22 +02:00
Frédéric Brégier
bc540d5ee1 Proposal for fix related to 1rst issue of #345
=> in configure (newcheckInterval/10)*10
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
2012-05-19 14:59:52 +03:00
Frédéric Brégier
2320a5919f Proposal for fix related to 1rst issue of #345
=> (getTimeToWait /10)*10
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
2012-05-19 14:54:59 +03:00
Norman Maurer
ed538209e5 Fix syntax. See #342 2012-05-19 13:19:24 +02:00
Norman Maurer
7691d79de6 Merge pull request #342 from jpinner/ssl_buffer_pool_interface
Make SslBufferPool an interface
2012-05-19 03:43:35 -07:00
Jeff Pinner
ddb7d75c96 Make SslBufferPool an interface 2012-05-18 13:49:01 -07:00
Norman Maurer
3d49975a3c Merge pull request #339 from fredericBregier/master
Fix compile errors which were introduced by #338
2012-05-18 12:41:57 -07:00