Re: Timer service

2018-05-17 Thread 'Martin Furmanski' via Netty discussions
Well a timer service is a different type of service. Not sure I can find you a good reference, but read for example the beginning of this article: https://lwn.net/Articles/735887/ "The other subsystem is just called "kernel timers"; it offers less precision but is more efficient in situations wh

Help with netty conversion, guidance appreciated

2018-05-17 Thread shabbar . haider
Hello, i'm picking up on an old project and it's using Netty 3.2.4, I was wondering I could get some help or someone to point me in the right direction with this. (I've checked the what's new and noteworthy in 4.0 already). Basically I'm using netty for inter-channel communication between serve

Re: Simple Socket Client doesn't read inputstream correctly.

2018-05-17 Thread Zhu Ran
1. use netty in client side to make thing easier; 2. use JsonObjectDecoder in both server side and client side, don't use DelimiterBasedFrameDecoder; 3. don't add "\r\n" at the end of the json string at both server side and client side when sending to the peer. On Monday, April 16, 2018 a

Re: How to route calls to another system

2018-05-17 Thread Zhu Ran
1.don't create new client bootstrap in the channelActive, create a client bootstrap at the application level, as same as the server bootstrap; 2.add the SomeOtherHandler to the client bootstrap pipeline; 3.after the client bootstrap connected to the remote server, save the ChannelHandlerContext i