Skip to main content
Participant
Aug 14, 2009 1:21 PM UTC
Question

setting connection limits

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Aug 14, 2009 2:30 PM UTC

    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.

    Translate
    achooyeahAuthor
    Participant
    Aug 14, 2009 9:55 PM UTC

    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!

    Translate
    Aug 17, 2009 5:53 PM UTC

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

    Translate