Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Not receiving idle notifications Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
beena
Newbie
Newbie


Joined: 03 September 2009
Location: United States
Online Status: Offline
Posts: 2
Posted: 04 September 2009 at 12:42pm | IP Logged Quote beena

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 View beena's Profile Search for other posts by beena
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 07 September 2009 at 6:04am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
beena
Newbie
Newbie


Joined: 03 September 2009
Location: United States
Online Status: Offline
Posts: 2
Posted: 08 September 2009 at 6:59am | IP Logged Quote beena

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 View beena's Profile Search for other posts by beena
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 September 2009 at 7:21am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
tromby24
Newbie
Newbie


Joined: 23 October 2009
Location: Philippines
Online Status: Offline
Posts: 2
Posted: 24 October 2009 at 2:14am | IP Logged Quote tromby24

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 View tromby24's Profile Search for other posts by tromby24
 
rekk1986
Newbie
Newbie


Joined: 30 December 2009
Location: United States
Online Status: Offline
Posts: 4
Posted: 13 January 2010 at 12:57am | IP Logged Quote rekk1986

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 View rekk1986's Profile Search for other posts by rekk1986
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide