# HG changeset patch
# User jbe
# Date 1503337947 -7200
# Node ID ec1cca939315d437f640942a1cf30f79c675bcc6
# Parent 55a43a67e9ada3d61fd657476c8a85e3e790aa60
Improved documentation of WebMCP's initialization procedure
diff -r 55a43a67e9ad -r ec1cca939315 doc/autodoc-header.htmlpart
--- a/doc/autodoc-header.htmlpart Mon Aug 21 15:01:21 2017 +0200
+++ b/doc/autodoc-header.htmlpart Mon Aug 21 19:52:27 2017 +0200
@@ -131,43 +131,48 @@
-
- Loading all WebMCP libraries except the "multirand" library (multirand opens /dev/urandom and thus must not be loaded prior to forking)
+ Initialization code of mcp.lua in the bin/ directory of the framework, including:
+
+ - Initialization of WebMCP's autoloader in mcp.lua (in the bin/ directory of the framework),
+ - Execution of env/__init.lua (both relative to the framework and, if existent, relative to the application base directory)
+ - Loading of most of WebMCP's libraries (excluding "multirand" library, which must not be loaded prior to forking);
+
-
- Executing the selected configuration file: config/configuration_name.lua
+ Executing the selected configuration file: config/configuration_name.lua;
-
- Executing all pre-fork initializers (both those in the app/_prefork/ and those in the app/application_name/_prefork/ directory) until call of execute.inner() within each initializer
+ Executing all pre-fork initializers (both those in the app/_prefork/ and those in the app/application_name/_prefork/ directory) until call of execute.inner() within each initializer;
-
- The Moonbridge Network Server forks the process (i.e. cloning the whole Lua machine)
+ The Moonbridge Network Server forks the process (i.e. cloning the whole Lua machine);
Note: no file handles or network connections must be opened prior to this point!
-
- Loading WebMCP's "multirand" library
+ Loading WebMCP's "multirand" library;
-
- Executing all post-fork initializers (both those in the app/_postfork/ and those in the app/application_name/_postfork/ directory) until call of execute.inner() within each initializer
+ Executing all post-fork initializers (both those in the app/_postfork/ and those in the app/application_name/_postfork/ directory) until call of execute.inner() within each initializer;
-
For each request:
-
- Execution of all applicable filters until call of execute.inner() within each filter
+ Execution of all applicable filters until call of execute.inner() within each filter,
-
- Handling of the request by calling the appropriate view or action
+ Handling of the request by calling the appropriate view or action,
-
- Resuming execution of all filters in reverse order from that position where execute.inner() had been called
+ Resuming execution of all filters in reverse order from that position where execute.inner() had been called;
-
- Resuming execution of all post-fork initializers in reverse order from that position where execute.inner() had been called
+ Resuming execution of all post-fork initializers in reverse order from that position where execute.inner() had been called;
-
- Resuming execution of all pre-fork initializers in reverse order from that position where execute.inner() had been called
+ Resuming execution of all pre-fork initializers in reverse order from that position where execute.inner() had been called.