Reduce Daphne HTTP timeout in runserver mode

This commit is contained in:
Andrew Godwin 2016-03-02 17:00:49 -08:00
parent 1869061fa2
commit 484320a675
2 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ class Command(RunserverCommand):
port=int(self.port),
signal_handlers=not options['use_reloader'],
action_logger=self.log_action,
http_timeout=60, # Shorter timeout than normal as it's dev
).run()
self.logger.debug("Daphne exited")
except KeyboardInterrupt:

View File

@ -14,6 +14,6 @@ setup(
install_requires=[
'Django>=1.7',
'asgiref>=0.9',
'daphne>=0.9',
'daphne>=0.9.2',
]
)