Paul B. Gallagher <[email protected]> wrote:
> Rob wrote:
>
>> Rob <[email protected]> wrote:
>>> Maybe I should have mentioned: the problem occurs on Windows systems.
>>> Reported on Windows XP and Windows 2008R2 Terminal server.
>>>
>>> I have Linux at home with many folders and it does not happen there.
>>
>> This appears to be not true.
>> I tested more and on Linux it happens as well.
>>
>> As far as I can see, since version 2.15 there is a fixed delay of 3
>> seconds during the first access of every IMAP account in the config.
>> ...
>>
>> I have downloaded source tarballs for 2.14.1 and 2.15 (as I have
>> observed that the problem first occurred in 2.15) and did a full
>> context diff between them, but I still have not been able to locate
>> a possible cause for the problem.
>
> The most obvious candidate would be that the program is contacting the 
> server and having a little chat with it, no?

Yes, but the delay occurs before that!

I figured out that the connection to each IMAP account is managed in
a separate thread.  This thread is started and then it somehow waits
for 3 seconds before it starts doing anything (including connecting
to the server and logging in).  The thread communicates with the
remainder of the program using a socket where it receives messages,
and I think it is waiting for a message.  When debugging is enabled,
I can see when it enters the thread and when it first starts doing
something because it received a message, and that is exactly 3 seconds
later.

However, I cannot find out where in the program the messages are
sent to the thread.  I thought there may be a condition where the
message is sent too soon, and is re-tried 3 seconds later when there
is no response.
I have searched for the number 3000 (it looks like all times inside
the program are in milliseconds) throughout the source, but it appears
in hundreds of places where it is not specifying a time.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to