Wasn't it an attempt to implement throttling ?

When requests are coming in faster than they're being processed
=> set TrafficMask to block reading
=> TCP buffers will fill up (OS level)
=> TCP will tell sender to slow down
=> OOM prevented

when queue of incoming messages gets smaller => resume reading

I haven't tried this yet, so I could be totally wrong.

Maarten

On Tue, Nov 4, 2008 at 5:50 PM, Julien Vermillard <[EMAIL PROTECTED]>wrote:

> Hi,
>
> There is something in MINA who has hook everywhere in the core, it's
> traffic mask. As far I understand the concept, the idea is to be able
> to block read and/or writes using session.setTrafficMask(...), I never
> needed it, and I wonder who use it and for what exactly ?
>
> Julien
>

Reply via email to