Hi,
The connectionLimit and connectionLimitPerIP parameters are used in the
generic protocols-netty library which doesn't have access to any user
notion.
If you want to deal with users, you will have to implement your own
AbstractConfigurableAsyncServer and inject there the userrepository.
Memory will be much faster but will take memory resources..., database
will be slower but will consume less memory. The best of both world
would be a memory cache.
Hope this helps, Eric
On 30/03/12 20:17, [email protected] wrote:
Hello devs,
So I've noticed that my Mac Mail opens like 15 to 20 connections to my James
IMAP server.
I know the IMAP configuration has an option to limit based on IP, but I was
wondering if what would be the best way to limit based on IP and user account
or just user account?
I can imagine keeping some kind of counter per user and/or ip either in memory
or in our database. Does anyone have any suggestions on how to guarantee that
the counter gets lowered on lost connections as well as logouts? Or would you
implement this in an entirely different fashion?
Roy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]