RE: Dropped connections
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > RE: Dropped connections




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-07-05 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:01 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register