Skip to main content
Participant
August 14, 2009
Question

setting connection limits

  • August 14, 2009
  • 1 reply
  • 1195 views

Sorry, but can't seem to locate how to do the following on FMS 3.5.

I have multiple applications, and need to set different connection limits for each of them - e.g., 10, 35, etc.

I'm only concerned with limiting RTMP connections, and not using Apache or http streaming.

Could somebody please shed some light?

    This topic has been closed for replies.

    1 reply

    August 14, 2009

    Assuming you're using FMIS.... In your main.asc:

    application.maxConnections = 35;

    application.onConnect = function(client){

         if(application.clients.length >= application.maxConnections){

              application.rejectConnection(client);

         }

    }

    I have no idea how to limit connections on FMSS... I don't know if you can do it at the application level.

    achooyeahAuthor
    Participant
    August 14, 2009

    Thanks JC.

    Yes, I'm finding out that FMS might in fact prevent the use of server side scripts?! Shame on Adobe if this is true - they sure bury it deep so you don't see it at time of research and purchase!

    August 17, 2009

    FMSS (streaming server) cannot run .asc code. If you want to run code, you need FMIS (interactive server).