librelist archives

« back to archive

"A stable connection to the server could not be established."

"A stable connection to the server could not be established."

From:
John Brayton
Date:
2013-08-07 @ 12:50
Hi,

In my Mac app, I keep one global MCOIMAPSession per account. This works ok
until something goes wrong with the connection, and then I get NSErrors 
with the message "A stable connection to the server could not be 
established".

I think I could handle this specific error by dropping the session and 
creating a new one, but I am hesitant to do that. First, I don't see a way
to close any existing connections that might be open with that session. 
Second, I would need to handle this in every operation callback.

I am wondering how others have dealt with this.

Thank you.

John

Re: [mailcore] "A stable connection to the server could not be established."

From:
Matt Ronge
Date:
2013-08-15 @ 17:36
I'm wondering if we need a disconnect method to force a disconnect.

And maybe a callback for connection errors where this could be handled?
--
Matt Ronge

iPhone & iPad App Consultant
Central Atomics Inc.
http://www.centralatomics.com








On Aug 7, 2013, at 7:50 AM, John Brayton <jbrayton@goldenhillsoftware.com> wrote:

> Hi,
> 
> In my Mac app, I keep one global MCOIMAPSession per account. This works 
ok until something goes wrong with the connection, and then I get NSErrors
with the message "A stable connection to the server could not be 
established".
> 
> I think I could handle this specific error by dropping the session and 
creating a new one, but I am hesitant to do that. First, I don't see a way
to close any existing connections that might be open with that session. 
Second, I would need to handle this in every operation callback.
> 
> I am wondering how others have dealt with this.
> 
> Thank you.
> 
> John

Re: [mailcore] "A stable connection to the server could not be established."

From:
John Brayton
Date:
2013-08-16 @ 02:12
That would be very helpful.

John

On Thu, Aug 15, 2013 at 1:36 PM, Matt Ronge <mronge@mronge.com> wrote:
> I'm wondering if we need a disconnect method to force a disconnect.
>
> And maybe a callback for connection errors where this could be handled?
> --
> Matt Ronge
>
> iPhone & iPad App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
>
>
>
>
>
>
>
>
> On Aug 7, 2013, at 7:50 AM, John Brayton 
<jbrayton@goldenhillsoftware.com> wrote:
>
>> Hi,
>>
>> In my Mac app, I keep one global MCOIMAPSession per account. This works
ok until something goes wrong with the connection, and then I get NSErrors
with the message "A stable connection to the server could not be 
established".
>>
>> I think I could handle this specific error by dropping the session and 
creating a new one, but I am hesitant to do that. First, I don't see a way
to close any existing connections that might be open with that session. 
Second, I would need to handle this in every operation callback.
>>
>> I am wondering how others have dealt with this.
>>
>> Thank you.
>>
>> John
>