Author Topic: IMAP throttling  (Read 17825 times)

Rachel Ambler

  • Full Member
  • ***
  • Posts: 140
  • Responsis, plura interrogandi
    • Random Thunks
IMAP throttling
« on: December 17, 2012, 12:18:07 am »
I run AquaMail on my tablet and my phone. This leads to an overload of IMAP connections that result in some failing (Gmail maxes out at 10 simultaneous connections).

Would there be any chance to have an account configuration parameter that allowed a user to throttle the number of connections the app makes to an account at a time? e. g. I'd like to throttle my tablet to say 2 IMAP connections and my phone to 4 when connecting to my Google Apps account.

I have a large number of folders (labels) on my account that I syn", so often run into this situation.

Thanks for an awesome app!

R

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP throttling
« Reply #1 on: December 19, 2012, 03:27:02 am »
Rachel,

Yes, Gmail has a limit of 10 connections per account, and this counts all mail apps on all devices / computers using the account with IMAP (so Gmail's native Android app is excluded... of course :) )

My app uses only a single IMAP connection when running scheduled mail checks in pull mode, and for IMAP IDLE, one connection is required per pushed folder. This is how you can affect the number of connections - by reducing the number of folders in push mode.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Rachel Ambler

  • Full Member
  • ***
  • Posts: 140
  • Responsis, plura interrogandi
    • Random Thunks
Re: IMAP throttling
« Reply #2 on: December 19, 2012, 07:52:47 am »
Kostya,

That's pretty much what I gathered, hence my request. It's during the push I'd like the ability for the app to throttle the maximum number of connections the app could use on an account, regardless of the number of folders I have checked for push (so if I've 5 folders and set the throttle to 2, then 2 would be checked simultaneously, with the others queuing up until one or more connections are released).

Or have I missed something somewhere?

R

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP throttling
« Reply #3 on: December 25, 2012, 02:54:12 am »
Rachel,

IMAP push requires a persistent, ongoing connection to the server, one per folder.

If we're going to reduce the number of connections for any length of time, then that's not push mail anymore for those folders that are left connection-less.

So my suggestion is still the same -- to reduce the number of folders marked for IMAP Push.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Rachel Ambler

  • Full Member
  • ***
  • Posts: 140
  • Responsis, plura interrogandi
    • Random Thunks
Re: IMAP throttling
« Reply #4 on: December 27, 2012, 09:00:45 pm »
Ahhhh, I understand you now!

Sorry, I wasn't completely aware that Push required persistent connections. Now you say that it makes total sense!  8)

Thanks!

R

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP throttling
« Reply #5 on: December 28, 2012, 02:57:17 am »
Yes it does -- IMAP IDLE is a pretty simple protocol :(

( unlike the native Gmail app which seems to get clever changed-based updates, using one persistent connection for the same device.... it's nice when you control both sides... )
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/