Motion - Feature Request 2006x 03x 22x 203238

Feature Request: limiting max_simultaneous_connections

Description

Hi,

I would like to know if it is possible to create a directive to limit the maximum number of simultaneous connections to a motion server ( including when using webcam feature) Really thank you for your attention and for motion.

Freitas

-- TWikiGuest - 22 Mar 2006

Follow up

Right now maximum number of concurrent connections to webcam thread is "hardcode" as 10, take a look to motion.h :

#define DEF_MAXSTREAMS          10  /* Maximum number of webcam clients per camera */

So if you want to increase this limit , change that number and recompile motion.

There's no reason to add a new parameter for that as there's some application to do that job relaying one motion stream like :

http://www.lavrsen.dk/twiki/bin/view/Motion/MjpegProxyGrab

-- AngelCarpintero - 06 Jan 2008

Comments

Maybe we should just hard code a larger number? Like 25 or 50. I added the limit because I wanted to avoid a DOS attack vector. If you make a program that machine gun requests to Motion and you do not have a limit, Motion dies and may take the server with it when it runs out of resources.

-- KennethLavrsen - 07 Jan 2008
Topic revision: r3 - 07 Jan 2008, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.