summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2020-11-01 20:14:51 +1100
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2020-11-01 20:14:51 +1100
commit4ece3df771bc604f0865fe77d4f99ce16aed022b (patch)
treef64c949abe85651e6c186911657bb5597e0b5cff /src
parent788fbac7260e19b1155002cbbbd0b2ed6f52db82 (diff)
downloadmod_wsgi-4ece3df771bc604f0865fe77d4f99ce16aed022b.tar.gz
Disable reloading by default when embedded mode used.
Diffstat (limited to 'src')
-rw-r--r--src/server/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/__init__.py b/src/server/__init__.py
index a4494aa..7d0ad9d 100644
--- a/src/server/__init__.py
+++ b/src/server/__init__.py
@@ -2259,9 +2259,11 @@ option_list = (
'type where files are hosted supports it.'),
optparse.make_option('--disable-reloading', action='store_true',
- default=False, help='Disables all reloading of worker processes '
+ default=False, help='Disables all reloading of daemon processes '
'due to changes to the file containing the WSGI application '
- 'entrypoint, or any other loaded source files.'),
+ 'entrypoint, or any other loaded source files. This has no '
+ 'effect when embedded mode is used as reloading is automatically '
+ 'disabled for embedded mode.'),
optparse.make_option('--reload-on-changes', action='store_true',
default=False, help='Flag indicating whether worker processes '
@@ -3237,6 +3239,7 @@ def _cmd_setup_server(command, args, options):
if options['embedded_mode']:
options['httpd_arguments_list'].append('-DEMBEDDED_MODE')
+ options['disable_reloading'] = True
if any((options['enable_debugger'], options['enable_coverage'],
options['enable_profiler'], options['enable_recorder'],