Skip to main content
May 20, 2011
Question

Does RTMPT & RTMPS only allow a certain amount of connections from a single client?

  • May 20, 2011
  • 1 reply
  • 1276 views

I've been trying to figure out FMS for about a week now. Because of company firewalls, all traffic must go through either port 80 or 443 (I configured this in FMS.ini). I also created a self-signed SSL certificate and configured the adaptor.xml file to use it. Nevertheless, here are the problems I am experiencing: For RTMPT & RTMPTE, I can't start more than 9 connections. Beforing configuring FMS to also use port 443, I could only get about 4 connections. Now I would like to say that I testing this between only two computers, the FMS server with apache web server and a client. Could some one help me to understand why it will not at least start 10 connections which I know is the limit for the dev version? Also, when using RTMPS I can only start 1 connection. Why is that?

Just to give as much information as possible, I have been testing all protocols with sample media streams ranging from 150kbps-1500kbps. However, the bitrate seems to have no effect on the amount of connections.

Any help or suggestions are greatly appreciated! Thank you in advance.

    This topic has been closed for replies.

    1 reply

    May 23, 2011

    Hi,

    The dev version allows a total of 10 simultaneous connections to be active on the server. When you say you cannot get more than 9 connections what message do you get in master and core logs. Also, can you confirm if your 10th connection is getting Connect.Rejected or Connect.Failed. Since you have mentioned firewall policies are in place you may need to confirm if by any policy the number of simultaneous HTTP/HTTPS connections from one client to the server are limited by firewall. The RTMPT/RTMPS packets are in a way HTTP/HTTPS packets respectively, so if some policy restricts the maximum number of HTTP/HTTPS connections from one client this will apply to RTMPT as well. If you try making 5 RTMPT connections each from two different clients does it go through?

    Thanks,

    Abhishek

    May 23, 2011

    Thanks for the infomation Abhishek. I just tried to make  5 RTMPT & RTMPTE connections from two different clients and everything worked. Maybe it is true, as you said, that a firewall policy is blocking more than 9 concurrent connections from the same client.

    Nevertheless, RTMPS is still giving me trouble. I can only make 1 connection, each from two different clients. If I attempt to make more than one connection from any single client, then no connection is made from that client. In the edge log I receive this error:

    2011-05-23    10:17:36    3808    (e)2711336    SSL accept failed : (err=1, ip=[Client IP address]) : error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request    -

    I created a certificate and a key using OpenSSL and configured Adaptor.xml to use it. Do you know what might be causing this limitation?

    Thanks for your help.