mirror of
https://github.com/django/daphne.git
synced 2025-07-11 00:12:18 +03:00
Reduce Daphne HTTP timeout in runserver mode
This commit is contained in:
parent
1869061fa2
commit
484320a675
|
@ -79,6 +79,7 @@ class Command(RunserverCommand):
|
||||||
port=int(self.port),
|
port=int(self.port),
|
||||||
signal_handlers=not options['use_reloader'],
|
signal_handlers=not options['use_reloader'],
|
||||||
action_logger=self.log_action,
|
action_logger=self.log_action,
|
||||||
|
http_timeout=60, # Shorter timeout than normal as it's dev
|
||||||
).run()
|
).run()
|
||||||
self.logger.debug("Daphne exited")
|
self.logger.debug("Daphne exited")
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user