Add MPD_SERVER_MAX_CONNECTIONS setting (fixes: #134)

This commit is contained in:
Stein Magnus Jodal 2011-09-25 11:49:31 +02:00
parent eb4bf2e8bf
commit e0bddfa109
3 changed files with 10 additions and 1 deletions

View File

@ -58,6 +58,9 @@ v0.6.0 (in development)
- Send Spotify search queries to pyspotify as unicode objects, as required by
pyspotify 1.4. (Fixes: :issue:`129`)
- Add setting :attr:`mopidy.settings.MPD_SERVER_MAX_CONNECTIONS`. (Fixes:
:issue:`134`)
**multi-backend changes**
- Remove `destroy()` methods from backend controller and provider APIs, as it

View File

@ -29,7 +29,8 @@ class MpdFrontend(actor.ThreadingActor, listeners.BackendListener):
port = settings.MPD_SERVER_PORT
try:
network.Server(hostname, port, protocol=MpdSession)
network.Server(hostname, port, protocol=MpdSession,
max_connections=settings.MPD_SERVER_MAX_CONNECTIONS)
except IOError, e:
logger.error(u'MPD server startup failed: %s', e)
sys.exit(1)

View File

@ -180,6 +180,11 @@ MPD_SERVER_PORT = 6600
#: Default: :class:`None`, which means no password required.
MPD_SERVER_PASSWORD = None
#: The maximum number of concurrent connections the MPD server will accept.
#:
#: Default: 20
MPD_SERVER_MAX_CONNECTIONS = 20
#: List of outputs to use. See :mod:`mopidy.outputs` for all available
#: backends
#: