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

@ -48,6 +48,7 @@ struct lan_addr_s {
struct runtime_vars_s {
int port; /* HTTP Port */
int notify_interval; /* seconds between SSDP announces */
int max_connections; /* max number of simultaneous conenctions */
char *root_container; /* root ObjectID (instead of "0") */
char *ifaces[MAX_LAN_ADDR]; /* list of configured network interfaces */
};