How does timeout work for ImapClient?

I am using Aspose.Email 3.2.1.0.


We have an exchange 2003 server, which could be accessed using IMAP without SSL.

However, when we try to access using IMAP with SSL, it is stuck at ImapClient.connect(). Although my timeout is 100000, which I guess is 100 seconds, it stuck at connect() and never ends. Plus, after 2 minutes connecting, sometimes my application eats 50% CPU usage on a 2-core machine, or about 100% CPU on a one-core machine.

Below is my code, where client is an ImapClient object. Could you please let me know how the timeout supposed to work? Thanks.

client.Connect();
client.Login();

var folderInfos = client.ListFolders();

Hi Xu,

While using IMAP wiht SSL, you need to specify the security mode and SSL flag as can be seen [HERE ](http://www.aspose.com/docs/display/emailnet/Connecting+with+SSL+Enabled+IMAP+Server). Could you please try setting this information and let us know your feedback? The issue of 50% CPU usage is not reproducible at my end and am trying to investigate it further. I’ll soon share further details here after carrying out my tests on another test environment as well.

Hi


I did create the ImapClient object exactly in that way.

Could you please give me a little more detail of how the timeout supposed to work? One of my problem is that the ImapClient is connecting longer than the timeout. Thanks.

Xu

Hi Xu,


I am afraid to share that this issue is not reproducible at my end. Could you please arrange a test account on your server so that we can investigate this issue with your server and assist you further? Regarding the Timeout property, it is the time in milliseconds until the operation times out and ideally should break if the connection times out. In any case, we need a test account on your server to investigate this issue and provide further assistance.