Skip to main content
Participant
March 14, 2011
Question

RTMPT takes 20-25 seconds for a response

  • March 14, 2011
  • 1 reply
  • 450 views

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.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 15, 2011

    If you try to ping FMS behind the firewall - how much latency do you see?

    Also you can try to telnet to port 80 and see if that gives how much delay?

    Also are there any proxy server sitting between FMS and client making rtmpt connect?