Author |
|
beena Newbie
Joined: 03 September 2009 Location: United States
Online Status: Offline Posts: 2
|
Posted: 04 September 2009 at 12:42pm | IP Logged
|
|
|
I created 1000 idle connections (each to a separate mailbox\folder) using the async method BeginIdle(). There is a timer that renews the idle connections every 20mts by calling StopIdle(); EndIdle(); BeginIdle(); in the order mentioned. It seems like the connections are up and running bcos there are no exceptions. If the connections are dead, then a call to BeginIdle() on that conn should throw an exception, right? Since there are no exceptions I'm assuming that all 1000 conn are up and running. But I'm not getting any notifications on those connections once idle conn is renewed. Any idea what might be the problem?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 07 September 2009 at 6:04am | IP Logged
|
|
|
If an exception happens on a worker thread, the thread silently dies. You must catch all exceptions there. In this sample, you can get the idea of handling exceptions in worker threads:
Imap.BeginCopyOrMoveMessages
Regards,
Alex
|
Back to Top |
|
|
beena Newbie
Joined: 03 September 2009 Location: United States
Online Status: Offline Posts: 2
|
Posted: 08 September 2009 at 6:59am | IP Logged
|
|
|
The callback method is not throwing any exception although the logs shows that idling did not start.
Here's the call back method
private void imapConnectionState(IAsyncResult result)
{
try
{
IsIdle = true;
//imp is the connection //initialized earlier to call BeginIdle
imp = (Imap)result.AsyncState;
//I am calling select folder //to check whether idle is running. If idle //is running select folder should throw an //exception
imap.SelectFolder("Inbox");
Console.WriteLine("There is no idle connection" );
}
catch (MailBeeException e)
{
Console.WriteLine("AsyncCallBack, BeginIdle() is working " + e.Message);
}
}
Are there any restrictions in initializing more than 300 individual idle connections from the same process?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 08 September 2009 at 7:21am | IP Logged
|
|
|
We suggest to check our IDLE Sample available here. This Knowledge Base article might be helpful as well.
Quote:
Are there any restrictions in initializing more than 300 individual idle connections from the same process? |
|
|
We're aware of successful usage of more than 1000 simultaneous IDLE threads. Please recheck your code and make sure that both BeginIdle and EndIdle are in place.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
tromby24 Newbie
Joined: 23 October 2009 Location: Philippines
Online Status: Offline Posts: 2
|
Posted: 24 October 2009 at 2:14am | IP Logged
|
|
|
imap.SelectFolder("Inbox");
Console.WriteLine("There is no idle connection" );
why is that, whenever i include this, it displays blank page?
and when i remove it, it displays error...
what's wrong?
|
Back to Top |
|
|
rekk1986 Newbie
Joined: 30 December 2009 Location: United States
Online Status: Offline Posts: 4
|
Posted: 13 January 2010 at 12:57am | IP Logged
|
|
|
i agree with the idea that :"...make sure that
both BeginIdle and EndIdle are in place" if not
you can find them out. Pls try again to find it
|
Back to Top |
|
|