Google Groups Home
Help | Sign in
Connection stability during network outage. (Issue 23)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
KevM  
View profile
 More options Apr 29, 1:11 pm
From: KevM <scound...@gmail.com>
Date: Tue, 29 Apr 2008 10:11:03 -0700 (PDT)
Local: Tues, Apr 29 2008 1:11 pm
Subject: Connection stability during network outage. (Issue 23)
I am trying to write a windows service that uses jabber-net to
communicate with a Jabber server. Everything is working great. I am
trying to make sure the connection to the server is resilient. I had a
scenario occur where network connectivity with the server was lost and
the auto reconnection did not occur.

I can reproduce this scenario by connecting to the server. Releasing
my network interface's IP by doing an "ipconfig /release" and
"ipconfig /renew" If the connection comes back immediately a
reconnection occurs. If the connection is not restored within 20
seconds I get this exception:

bedrock.net.AsyncSocketConnectionException: Bad host: jabber80.com

Can anyone on this list speak to this behavior. Is this a bug. Does
this work as expected? I am willing to put my own connection
management code around the JabberClient's connection but I just wanted
to check with the community to see if there was a best practice I was
missing or a jabber-net wizard out there with a good idea.

I have created this issue to capture this problem:
http://code.google.com/p/jabber-net/issues/detail?id=23


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Hildebrand  
View profile
 More options Apr 29, 3:39 pm
From: Joe Hildebrand <hil...@gmail.com>
Date: Tue, 29 Apr 2008 13:39:49 -0600
Local: Tues, Apr 29 2008 3:39 pm
Subject: Re: Connection stability during network outage. (Issue 23)
The intent is that for recoverable errors, auto-reconnection happens, but
for non-recoverable ones (like invalid DNS), reconnection stops.

For the moment, I would just turn auto-reconnect off, and handle reconnects
yourself in OnDisconnected and OnError.

For the future, let's have a discussion about what we should do on different
sorts of failure modes; it's possible that the current approach isn't right.

On 4/29/08 11:11 AM, "KevM" <scound...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel Díaz Macedo  
View profile
 More options Apr 30, 12:00 pm
From: "Miguel Díaz Macedo" <miguel.diazmac...@gmail.com>
Date: Wed, 30 Apr 2008 11:00:51 -0500
Local: Wed, Apr 30 2008 12:00 pm
Subject: Re: Connection stability during network outage. (Issue 23)

Nice comment, im going to implement it on my service

Thanks Joe

--
Saludos
Miguel

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
KevM  
View profile
 More options May 15, 9:33 am
From: KevM <scound...@gmail.com>
Date: Thu, 15 May 2008 06:33:01 -0700 (PDT)
Local: Thurs, May 15 2008 9:33 am
Subject: Re: Connection stability during network outage. (Issue 23)
Thank you for some reason I missed this response. Thank you for the
guidance.

I would argue that DNS resolution failing is just a flavor of a
dropped connection. I have struggled with similar requirements systems
having fatal and non-fatal classes of errors exhibiting different
retry/recovery mechanisms. It was a pain as one customer's fatal "stop
the service" failure is another's "just log it and retry later". In
general I vote for don't give up and try again later.

Unfortunately, I have moved over to agXmpp for now. It would be easy
to switch back as I have my XMPP library implementation isolated
behind an IXMPPConnection interface.

Kevin Miller

On Apr 29, 2:39 pm, Joe Hildebrand <hil...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google