Commit Graph

3444 Commits

Author SHA1 Message Date
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
Frédéric Brégier
e54662f7d0 Same fix than other for correct import 2012-05-18 16:38:13 +03:00
Frédéric Brégier
a5fc2d82a5 Same fix than other for correct import 2012-05-18 16:37:46 +03:00
norman
bca791af4c Fix compile errors which were introduced by #338 2012-05-18 15:13:13 +02:00
Trustin Lee
e5da7b53dd Add UnsupportedMessageTypeException
- Replaced some IllegalArgumentExceptions with
  UnsupportedMessageTypeException
- MessageToMessage(Encoder|Decoder) should continue polling the
  inbound buffer if encode() or decode() returns null
  - aggregating codec can do that
2012-05-18 21:59:02 +09:00
Norman Maurer
ba8cfa5d33 Merge pull request #338 from fredericBregier/master
Improvement: Allow ObjectSizeEstimator in traffic shaping
2012-05-18 05:45:20 -07:00
Frédéric Brégier
1afb209010 import fix 2012-05-18 15:33:23 +03:00
Frédéric Brégier
9c2262716f Import fix 2012-05-18 15:32:59 +03:00
Frédéric Brégier
51debe1287 import fix 2012-05-18 15:32:36 +03:00
Frédéric Brégier
7d4a276ab0 Fix private class to static private class (dynamicity is not necessary there) 2012-05-18 15:26:21 +03:00
Frédéric Brégier
a1a60ec5b6 Add support for ObjectSizeEstimator 2012-05-18 15:23:11 +03:00
Frédéric Brégier
0996bac7ff Add support for ObjectSizeEstimator: in order to allow special optimization if possible from user code 2012-05-18 15:20:46 +03:00
Frédéric Brégier
923498de92 Add support for ObjectSizeEstimator 2012-05-18 15:17:02 +03:00
Trustin Lee
9d3eeb9719 Fix compilation errors 2012-05-18 17:50:38 +09:00
Trustin Lee
ddb839eaf9 Make ReplayingDecoder extend StreamToMessageDecoder 2012-05-18 17:38:44 +09:00
Trustin Lee
d4a26c3c52 Add StreamToMessageDecoder.replace() (#332) 2012-05-18 17:37:41 +09:00
Trustin Lee
ca12e41406 Fix a compiler warning 2012-05-18 16:58:40 +09:00
Trustin Lee
5c3b432f60 Fix test failures due to recent changes with codec exceptions 2012-05-18 15:45:12 +09:00
Trustin Lee
2802b231e5 Make all codecs throw a CodecException
- Added CodecException which is either EncoderException or
  DecoderException
- Made all decoder exceptions a subtype of DecoderException
- Replaced CodecEmbedderException with CodecException
- All abstract handlers wraps an exception with a CodecException
2012-05-18 15:42:36 +09:00