• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

limit number of concurrent connection

New Here ,
Aug 23, 2006 Aug 23, 2006

Copy link to clipboard

Copied

is there a way for me to limit the number of concurrent connections to the media server. my upload bandwitdh is about a meg so having too many connections just kills the whole thing. i would like to put a limit at 5 connections. is there a way to do this?

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 23, 2006 Aug 23, 2006

Copy link to clipboard

Copied

Sure... you can do that.

Do you want to limit total connections to the server, or do you want to limit things at the application level.

I personally prefer to do things like this at the application level. You might use something like this:

In your main.asc

application.onConnect = function(clientObj){
if (application.clients.length >=5){
application.rejectConnection(clientObj);
trace ("Too many users... rejecting new connection");
}else{
application.acceptConnection(clientObj);
}
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 02, 2014 Jan 02, 2014

Copy link to clipboard

Copied

LATEST

Hi Jay, i want to do this but for each applicaction.

For example, I have livepkgr/webcam, livepkgr/Radio etc and I want to have a different limit per each

is this possible?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2006 Aug 29, 2006

Copy link to clipboard

Copied

well i am only using flash media server to displaying videos and just that. the reason i went with media server vs. progressive was fullscreen method. since flash doesn't natively support fullscreen you have to open another browser in fullscreen with javascript. the problem with that is it start loading from beginning so i decided to go server that way it only has to buffer and get to the same point without having to load the whole video up to that point. Now i want to limit number people that can be watching the video. if i get more that 5 connection the whole thing slows down. i am not too familiar with server based connections so i don't know how to limit the number concurrent connections.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines