Macromedia Flash Server - RE: Dropped connections

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > RE: Dropped connections





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RE: Dropped connections
renee6-KealBaEQdz4@public.gmane.org

2005-04-07, 5:45 pm

Thank you Stephan, aYo, Thomas and Dario for the advice...

an update...
I do have a 'stay alive' ping (tried varying intervals from 1 min to 1
sec) that doesn't seem to be keeping the connection alive in this case.

> I've had the same problems with some applications I have deployed on a
> Linux based system.
> Never happened to me on a PC based system

I am running on linux, but haven't experienced this problem with any of
my other apps (this app has more streams than my others). The ping has
always taken care of the issue.

> If you're getting a lot of dropped connections, you should to make sure
> that your server is properly configured, its ethernet card is happy,
> and
> that your network is healthy. (That includes your gateway to the
> Internet.)

This same issue is happening with this app on two different hosting
providers. (both linux).

> When you're building a network application, you need to assume that
> connections are going to randomly drop, and do the Right Thing when it
> happens. (Which is usually reconnect quickly enough that the user
> doesn't
> notice.)

At this point I'm trying to add the 'handler' rather than try to figure
out potential cause(s)... but I'm having trouble getting the feed to
republish.

I am successfully reconnecting on disconnect, but I'm getting a "Failed
to publish stream" message when republishing.

I've tried clearing the stream both serverside and clientside before
republishing, thinking that the server didn't do so on disconnect, but
nothing seems to work.

Here is my serverside code, in application.onDisconnect :
- - - - -
s = Stream.get("feedone");
if (s){
s.onStatus = function(info)
{
if(info.code == "NetStream.Clear.Success")
{
trace("feedone Stream cleared successfully.");
//return("success");
}
if(info.code == "NetStream.Clear.Failed")
{
trace("Failed to clear feedone stream.");
//return("failure");
}
}
}
s.clear();
- - - - -
I'm getting a successful trace.

And in my clientside connection script, I have this code, before
resestablishing the netstream:
- - - - -
guest1Stream_ns.close();
- - - - -

Any idea what I might be missing here?

(I've scoured the archives and docs for hints, with no luck.
Troubleshooting this is killing me, as it takes 5 min-1 hr for one of
my clients to disconnect!)

Thanks again for the generous assistance,
Lisa Larson
www.goo-e.com

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com