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.
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.
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.
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.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.