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
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