[haiku-bugs] Re: [Haiku] #7544: To many connections gmail IMAP

  • From: "wretched_dutchman" <trac@xxxxxxxxxxxx>
  • Date: Sun, 22 May 2011 10:41:21 -0000

#7544: To many connections gmail IMAP
---------------------------------+----------------------------------
   Reporter:  wretched_dutchman  |      Owner:  czeidler
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  Applications/Mail  |    Version:  R1/alpha2
 Resolution:                     |   Keywords:  IMAP max connections
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  x86
---------------------------------+----------------------------------

Comment (by wretched_dutchman):

 I see multiple options in how to resolve this. Since google only supports
 10 logins simultaneously we need to honor that.
 1) check how many simultaneous connections are possible and save this
 setting (and repeat this test once in a while). This can be done to test
 if the login is correct. Then open one socket per directory without
 starting the syncing-process. Now you can test which sockets do still
 allow a login and which don't (e.g. count how many login's are allowed
 simultaneous.) And of course while syncing with multiple connections also
 catch the failed to login-alert and see that the max connections is
 decreased.
 2) Allow the user to determine it's own maximum simultaneous connections
 in a setting (used by most clients as far as I'm aware of).
 3) Use one connection in total, or do a serial retrieval of the
 directories which all it's own connection. This is the slowest option, but
 makes sure that you never exceed the limit of simultaneous connections.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7544#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: