  | |  | SO associations dropping-Need Help | SO associations dropping-Need Help 2004-02-13 - By Tony MacDonell
Back Hey all,
I have this little issue that cropped up in an application I am working on, and I think it may be a server issue not anything with my code. If any of you have experienced the following issue, let me know cause I need to get to the bottom of this to get a job out of our shop.
I have this application that is a 1 to many live video streaming application with a group chat. Pretty simple. I am not using any Flashcom components, just my own custom framework.
So I built and tested this application on our local devserver then migrated it to MediaTemple for live testing. We found that sometimes the chat area would freeze up, and users were unable to chat. This bug only cropped up sometimes, and it seemed that it is only when the system first launches. A reload on the server side would fix the issue.
So I started filling my application with tracing code and found out exactly what the issue is coming from:
HERE IS THE CLIENTSIDE CODE:
////////////////////////////////////////////////////////////////////////
this.chat_so=SharedObject.getRemote(name,nc.uri,false);
this.chat_so.owner=this;
this.chat_so.clientFunc=function(func,args){ this.owner[func](args); }
this.chat_so.onSync=function(update){ this.owner.chatMessageUpdate(update); }
this.chat_so.connect(nc);
////////////////////////////////////////////////////////////////////////
Konsort_Chat.prototype.call=function(func,args){ this.chat_so.send("serverFunc",func,args); }
Konsort_Chat.prototype.addChatMessage=function(msg){ this.call("addChatMessage",msg); }
/////////////////////////////////////////////////////////////////////////
The first block of code is within an init method for a Class called Konsort_Chat. It is there to initialize the chat area it is just a snippet.
The second block is a method that allows you to send a message to the chat system. It uses my call method which allows me to mirror functionality on client and server, so that the server is truly moderating most of the functionality
Now the issue I am having is that everytime the application runs the SO will initialize and populate the chat area with the stuff that was inserted into the SO on the server-side, but...
Sometimes the SO will die. By that I mean that the association between the SO on client and server drops, so I am unable to utilize the send method on the SO. It just constantly fails.
If i send a test call on the NetConnection object, it works fine and all of the other functionality works fine, still connected.
It is just the one SO that drops the connection.This also does not occur on our local devserver ever, only on MediaTemple's server 02?
Anyone ever had an issue like this?
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |