Feature Request: limiting max_simultaneous_connections
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.
- 22 Mar 2006
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 :
- 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.
- 07 Jan 2008