process: make max number of children (connections) configurable

At least some Panasonic clients try to open more than 5 simultaneous
connections to the server.  If we keep the default of 5 max children,
it results in choppy playback on those clients.

Make this setting configurable, and default to 50 max connections.
Our process is pretty lightweight, so 50 children should not be a
problem on most systems.
This commit is contained in:
Justin Maggard
2014-03-03 13:32:20 -08:00
parent 372afa1ae6
commit 1a78a94f70
6 changed files with 33 additions and 7 deletions

View File

@ -56,7 +56,8 @@ enum upnpconfigoptions {
ENABLE_DLNA_STRICT, /* strictly adhere to DLNA specs */
ROOT_CONTAINER, /* root ObjectID (instead of "0") */
USER_ACCOUNT, /* user account to run as */
FORCE_SORT_CRITERIA /* force sorting by a given sort criteria */
FORCE_SORT_CRITERIA, /* force sorting by a given sort criteria */
MAX_CONNECTIONS /* maximum number of simultaneous connections */
};
/* readoptionsfile()