On Wed, Aug 6, 2008 at 6:11 AM, Arv Mistry <[EMAIL PROTECTED]> wrote:
> > Hi, > > I have a system which sends a very high throughput of messages. So one > thing I wanted to be able to do during high loads is to take advantage > of the TCP flow control i.e be able to throttle back on the TCP socket > so as not to read off it until the processing catches up. > > Does anyone know is there way with Mina to tell it not to read from the > TCP socket? If I return false in the doDecode of the ProtocolDecoder > will that do it? IoSession.suspendRead() will accomplish what you're asking for a single tcp connection. -geoff
