RTMPT takes 20-25 seconds for a response
Hi,
I am trying to connect to the Flash media servers from behind a customer's firewall.
From behind this firewall the time taken for a response (its usually success) is around 20-25 seconds.
The following is the code I am using to make the connection and listen to the events
var nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
var time1:String = (new Date()).toTimeString();
trace(time1+" - Making the connection to FMS");
nc.connect("rtmpt://<dnsnameofserver>:80/live");
function netStatusHandler(evt:NetStatusEvent)
{
var time2:String = (new Date()).toTimeString();
trace(time2+": status:"+evt.info.code);
}
The delay between time1 and time2 is always 20-25 seconds. From other firewalls and non firewalled networks its usually 3-4 seconds.
What could be the reason for this huge delay for a response in this case. I have noticed that the first response is always a "NetConnection.Connect.Success".
We are looking to deploy around 20-30 media servers if we can get this thing to work and appreciate any prompt response in this regard.
