Discussion:
[SM-imapproxy] Can imap proxy be used to reduce/limit number of connections to backend mail server?
Nathan Neulinger
2014-04-28 19:03:30 UTC
Permalink
I'm finding that with a combination of multiple client devices that I'm more and more frequently hitting up against
google's "maximum number of connections" limits. Thought was that maybe there would be a way to leverage imap proxy to
do the reverse - take a bunch of attempted connections, and try to round-robin/LRU them in some way.

Even something as ugly as "limit conns to N, if a new connection came in, and last command on one of the other channels
was IDLE, drop that connection and open new connection to backend server".

Obviously a full-on interleaving would be non-trivial.

Any ideas?

-- Nathan

------------------------------------------------------------
Nathan Neulinger ***@neulinger.org
Neulinger Consulting (573) 612-1412
Paul Lesniewski
2014-05-02 18:04:53 UTC
Permalink
Post by Nathan Neulinger
I'm finding that with a combination of multiple client devices that I'm more and more frequently hitting up against
google's "maximum number of connections" limits. Thought was that maybe there would be a way to leverage imap proxy to
do the reverse - take a bunch of attempted connections, and try to round-robin/LRU them in some way.
Even something as ugly as "limit conns to N, if a new connection came in, and last command on one of the other channels
was IDLE, drop that connection and open new connection to backend server".
Obviously a full-on interleaving would be non-trivial.
Any ideas?
IMAPProxy wasn't really built with that in mind... Because it holds
connections for each and every client separately, and has no
mechanisms to compare connections, I can't see that it would be
trivial to do what you want. The only thing I could suggest is trying
it with the select cache turned on to see if that limits the number of
trips to the destination server (although that's more going to help
with webmail clients than desktop/mobile ones).
--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php
Loading...