passenger 2.2.9 → 2.2.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- data/NEWS +10 -0
- data/doc/Architectural overview.html +202 -65
- data/doc/Security of user switching support.html +200 -63
- data/doc/Users guide Apache.html +266 -129
- data/doc/Users guide Nginx.html +234 -97
- data/doc/cxxapi/AbstractSpawnManager_8h-source.html +138 -0
- data/doc/cxxapi/Account_8h-source.html +202 -0
- data/doc/cxxapi/AccountsDatabase_8h-source.html +158 -0
- data/doc/cxxapi/AgentsStarter_8h-source.html +79 -0
- data/doc/cxxapi/BCrypt_8h-source.html +101 -0
- data/doc/cxxapi/BacktracesServer_8h-source.html +87 -0
- data/doc/cxxapi/Base64_8h-source.html +85 -0
- data/doc/cxxapi/Blowfish_8h-source.html +131 -0
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/CachedFileStat_8h-source.html +49 -157
- data/doc/cxxapi/Configuration_8h-source.html +1 -1
- data/doc/cxxapi/Constants_8h-source.html +71 -0
- data/doc/cxxapi/ContentHandler_8h-source.html +92 -0
- data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
- data/doc/cxxapi/Exceptions_8h-source.html +332 -236
- data/doc/cxxapi/FileChangeChecker_8h-source.html +237 -0
- data/doc/cxxapi/FileDescriptor_8h-source.html +206 -0
- data/doc/cxxapi/Hooks_8h-source.html +1 -1
- data/doc/cxxapi/HttpStatusExtractor_8h-source.html +378 -0
- data/doc/cxxapi/LoggingServer_8h-source.html +165 -0
- data/doc/cxxapi/Logging_8h-source.html +580 -112
- data/doc/cxxapi/MessageChannel_8h-source.html +789 -599
- data/doc/cxxapi/MessageClient_8h-source.html +297 -0
- data/doc/cxxapi/MessageServer_8h-source.html +607 -0
- data/doc/cxxapi/PoolOptions_8h-source.html +471 -278
- data/doc/cxxapi/Process_8h-source.html +272 -0
- data/doc/cxxapi/RandomGenerator_8h-source.html +156 -0
- data/doc/cxxapi/ResourceLocator_8h-source.html +104 -0
- data/doc/cxxapi/ScgiRequestParser_8h-source.html +399 -0
- data/doc/cxxapi/ServerInstanceDir_8h-source.html +356 -0
- data/doc/cxxapi/Session_8h-source.html +483 -0
- data/doc/cxxapi/SpawnManager_8h-source.html +590 -546
- data/doc/cxxapi/StaticContentHandler_8h-source.html +65 -0
- data/doc/cxxapi/StaticString_8h-source.html +214 -0
- data/doc/cxxapi/StringListCreator_8h-source.html +111 -0
- data/doc/cxxapi/SystemTime_8h-source.html +191 -78
- data/doc/cxxapi/Timer_8h-source.html +157 -0
- data/doc/cxxapi/Utils_8h-source.html +621 -434
- data/doc/cxxapi/Version_8h-source.html +59 -0
- data/doc/cxxapi/annotated.html +1 -1
- data/doc/cxxapi/apache2_2Configuration_8h-source.html +79 -0
- data/doc/cxxapi/classAgentWatcher-members.html +50 -0
- data/doc/cxxapi/classAgentWatcher.html +445 -0
- data/doc/cxxapi/classClient-members.html +4 -3
- data/doc/cxxapi/classClient.html +50 -46
- data/doc/cxxapi/classHooks-members.html +1 -1
- data/doc/cxxapi/classHooks.html +1 -1
- data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager-members.html +37 -0
- data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager.html +191 -0
- data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.png +0 -0
- data/doc/cxxapi/{classPassenger_1_1DummySpawnManager-members.html → classPassenger_1_1ArgumentException-members.html} +3 -2
- data/doc/cxxapi/classPassenger_1_1ArgumentException.html +52 -0
- data/doc/cxxapi/classPassenger_1_1BacktracesServer-members.html +36 -0
- data/doc/cxxapi/classPassenger_1_1BacktracesServer.html +107 -0
- data/doc/cxxapi/classPassenger_1_1BacktracesServer__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1BacktracesServer__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1BacktracesServer__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1BufferedUpload-members.html +3 -3
- data/doc/cxxapi/classPassenger_1_1BufferedUpload.html +18 -34
- data/doc/cxxapi/classPassenger_1_1BusyException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1BusyException.html +3 -2
- data/doc/cxxapi/classPassenger_1_1ConfigurationException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1ConfigurationException.html +3 -2
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
- data/doc/cxxapi/{classPassenger_1_1FileChecker-members.html → classPassenger_1_1EOFException-members.html} +3 -4
- data/doc/cxxapi/classPassenger_1_1EOFException.html +57 -0
- data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1EventFd-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1EventFd.html +49 -0
- data/doc/cxxapi/classPassenger_1_1FileChangeChecker-members.html +37 -0
- data/doc/cxxapi/classPassenger_1_1FileChangeChecker.html +166 -0
- data/doc/cxxapi/classPassenger_1_1FileDescriptor-members.html +37 -0
- data/doc/cxxapi/classPassenger_1_1FileDescriptor.html +159 -0
- data/doc/cxxapi/classPassenger_1_1FileNotFoundException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1FileNotFoundException.html +3 -2
- data/doc/cxxapi/classPassenger_1_1FileSystemException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1FileSystemException.html +3 -2
- data/doc/cxxapi/{classPassenger_1_1ApplicationPoolServer-members.html → classPassenger_1_1HttpStatusExtractor-members.html} +6 -5
- data/doc/cxxapi/classPassenger_1_1HttpStatusExtractor.html +128 -0
- data/doc/cxxapi/classPassenger_1_1IOException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1IOException.html +4 -3
- data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.map +2 -1
- data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.md5 +1 -1
- data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1MemZeroGuard-members.html +36 -0
- data/doc/cxxapi/classPassenger_1_1MemZeroGuard.html +147 -0
- data/doc/cxxapi/classPassenger_1_1MessageChannel-members.html +12 -5
- data/doc/cxxapi/classPassenger_1_1MessageChannel.html +267 -34
- data/doc/cxxapi/classPassenger_1_1MessageServer-members.html +46 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer.html +438 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext.html +56 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext-members.html +38 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext.html +175 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler-members.html +36 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler.html +176 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1Process-members.html +40 -0
- data/doc/cxxapi/classPassenger_1_1Process.html +266 -0
- data/doc/cxxapi/classPassenger_1_1RandomGenerator-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1RandomGenerator.html +51 -0
- data/doc/cxxapi/classPassenger_1_1RuntimeException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1RuntimeException.html +3 -2
- data/doc/cxxapi/classPassenger_1_1ScgiRequestParser-members.html +47 -0
- data/doc/cxxapi/classPassenger_1_1ScgiRequestParser.html +302 -0
- data/doc/cxxapi/classPassenger_1_1SecurityException-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1SecurityException.html +52 -0
- data/doc/cxxapi/classPassenger_1_1Session-members.html +50 -0
- data/doc/cxxapi/classPassenger_1_1Session.html +577 -0
- data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1SpawnException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1SpawnException.html +5 -4
- data/doc/cxxapi/classPassenger_1_1SpawnManager-members.html +8 -5
- data/doc/cxxapi/classPassenger_1_1SpawnManager.html +127 -45
- data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1StandardSession-members.html +51 -0
- data/doc/cxxapi/classPassenger_1_1StandardSession.html +415 -0
- data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1StaticString-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1StaticString.html +54 -0
- data/doc/cxxapi/classPassenger_1_1SystemException-members.html +2 -1
- data/doc/cxxapi/classPassenger_1_1SystemException.html +4 -3
- data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.md5 +1 -1
- data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1SystemTime-members.html +9 -1
- data/doc/cxxapi/classPassenger_1_1SystemTime.html +92 -8
- data/doc/cxxapi/classPassenger_1_1TimeRetrievalException-members.html +37 -0
- data/doc/cxxapi/classPassenger_1_1TimeRetrievalException.html +57 -0
- data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.map +1 -0
- data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.md5 +1 -0
- data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1TimeoutException-members.html +33 -0
- data/doc/cxxapi/classPassenger_1_1TimeoutException.html +50 -0
- data/doc/cxxapi/{classPassenger_1_1Application-members.html → classPassenger_1_1Timer-members.html} +8 -7
- data/doc/cxxapi/classPassenger_1_1Timer.html +163 -0
- data/doc/cxxapi/classServer-members.html +33 -0
- data/doc/cxxapi/classServer.html +46 -0
- data/doc/cxxapi/classServerInstanceDirToucher-members.html +33 -0
- data/doc/cxxapi/classServerInstanceDirToucher.html +43 -0
- data/doc/cxxapi/classes.html +1 -1
- data/doc/cxxapi/definitions_8h-source.html +1 -1
- data/doc/cxxapi/files.html +1 -1
- data/doc/cxxapi/functions.html +1 -1
- data/doc/cxxapi/{functions_type.html → functions_enum.html} +7 -5
- data/doc/cxxapi/functions_eval.html +55 -0
- data/doc/cxxapi/functions_func.html +1 -1
- data/doc/cxxapi/functions_vars.html +106 -9
- data/doc/cxxapi/graph_legend.html +1 -1
- data/doc/cxxapi/group__Configuration.html +1 -1
- data/doc/cxxapi/group__Core.html +1 -1
- data/doc/cxxapi/group__Exceptions.html +17 -1
- data/doc/cxxapi/group__Hooks.html +1 -1
- data/doc/cxxapi/group__Support.html +1 -1
- data/doc/cxxapi/hierarchy.html +34 -12
- data/doc/cxxapi/inherit__graph__0.map +1 -1
- data/doc/cxxapi/inherit__graph__0.md5 +1 -1
- data/doc/cxxapi/inherit__graph__0.png +0 -0
- data/doc/cxxapi/inherit__graph__1.map +1 -1
- data/doc/cxxapi/inherit__graph__1.md5 +1 -1
- data/doc/cxxapi/inherit__graph__1.png +0 -0
- data/doc/cxxapi/inherit__graph__10.map +1 -1
- data/doc/cxxapi/inherit__graph__10.md5 +1 -1
- data/doc/cxxapi/inherit__graph__10.png +0 -0
- data/doc/cxxapi/inherit__graph__11.map +1 -1
- data/doc/cxxapi/inherit__graph__11.md5 +1 -1
- data/doc/cxxapi/inherit__graph__11.png +0 -0
- data/doc/cxxapi/inherit__graph__12.map +1 -1
- data/doc/cxxapi/inherit__graph__12.md5 +1 -1
- data/doc/cxxapi/inherit__graph__12.png +0 -0
- data/doc/cxxapi/inherit__graph__13.map +1 -1
- data/doc/cxxapi/inherit__graph__13.md5 +1 -1
- data/doc/cxxapi/inherit__graph__13.png +0 -0
- data/doc/cxxapi/inherit__graph__14.map +3 -2
- data/doc/cxxapi/inherit__graph__14.md5 +1 -1
- data/doc/cxxapi/inherit__graph__14.png +0 -0
- data/doc/cxxapi/inherit__graph__15.map +1 -1
- data/doc/cxxapi/inherit__graph__15.md5 +1 -1
- data/doc/cxxapi/inherit__graph__15.png +0 -0
- data/doc/cxxapi/inherit__graph__16.map +1 -1
- data/doc/cxxapi/inherit__graph__16.md5 +1 -1
- data/doc/cxxapi/inherit__graph__16.png +0 -0
- data/doc/cxxapi/inherit__graph__17.map +1 -1
- data/doc/cxxapi/inherit__graph__17.md5 +1 -1
- data/doc/cxxapi/inherit__graph__17.png +0 -0
- data/doc/cxxapi/inherit__graph__18.map +2 -1
- data/doc/cxxapi/inherit__graph__18.md5 +1 -1
- data/doc/cxxapi/inherit__graph__18.png +0 -0
- data/doc/cxxapi/inherit__graph__19.map +1 -1
- data/doc/cxxapi/inherit__graph__19.md5 +1 -1
- data/doc/cxxapi/inherit__graph__19.png +0 -0
- data/doc/cxxapi/inherit__graph__2.map +1 -1
- data/doc/cxxapi/inherit__graph__2.md5 +1 -1
- data/doc/cxxapi/inherit__graph__2.png +0 -0
- data/doc/cxxapi/inherit__graph__20.map +1 -2
- data/doc/cxxapi/inherit__graph__20.md5 +1 -1
- data/doc/cxxapi/inherit__graph__20.png +0 -0
- data/doc/cxxapi/inherit__graph__21.map +1 -1
- data/doc/cxxapi/inherit__graph__21.md5 +1 -1
- data/doc/cxxapi/inherit__graph__21.png +0 -0
- data/doc/cxxapi/inherit__graph__22.map +1 -0
- data/doc/cxxapi/inherit__graph__22.md5 +1 -0
- data/doc/cxxapi/inherit__graph__22.png +0 -0
- data/doc/cxxapi/inherit__graph__23.map +1 -0
- data/doc/cxxapi/inherit__graph__23.md5 +1 -0
- data/doc/cxxapi/inherit__graph__23.png +0 -0
- data/doc/cxxapi/inherit__graph__24.map +1 -0
- data/doc/cxxapi/inherit__graph__24.md5 +1 -0
- data/doc/cxxapi/inherit__graph__24.png +0 -0
- data/doc/cxxapi/inherit__graph__25.map +1 -0
- data/doc/cxxapi/inherit__graph__25.md5 +1 -0
- data/doc/cxxapi/inherit__graph__25.png +0 -0
- data/doc/cxxapi/inherit__graph__26.map +1 -0
- data/doc/cxxapi/inherit__graph__26.md5 +1 -0
- data/doc/cxxapi/inherit__graph__26.png +0 -0
- data/doc/cxxapi/inherit__graph__27.map +2 -0
- data/doc/cxxapi/inherit__graph__27.md5 +1 -0
- data/doc/cxxapi/inherit__graph__27.png +0 -0
- data/doc/cxxapi/inherit__graph__28.map +1 -0
- data/doc/cxxapi/inherit__graph__28.md5 +1 -0
- data/doc/cxxapi/inherit__graph__28.png +0 -0
- data/doc/cxxapi/inherit__graph__29.map +1 -0
- data/doc/cxxapi/inherit__graph__29.md5 +1 -0
- data/doc/cxxapi/inherit__graph__29.png +0 -0
- data/doc/cxxapi/inherit__graph__3.map +2 -1
- data/doc/cxxapi/inherit__graph__3.md5 +1 -1
- data/doc/cxxapi/inherit__graph__3.png +0 -0
- data/doc/cxxapi/inherit__graph__30.map +1 -0
- data/doc/cxxapi/inherit__graph__30.md5 +1 -0
- data/doc/cxxapi/inherit__graph__30.png +0 -0
- data/doc/cxxapi/inherit__graph__31.map +3 -0
- data/doc/cxxapi/inherit__graph__31.md5 +1 -0
- data/doc/cxxapi/inherit__graph__31.png +0 -0
- data/doc/cxxapi/inherit__graph__32.map +1 -0
- data/doc/cxxapi/inherit__graph__32.md5 +1 -0
- data/doc/cxxapi/inherit__graph__32.png +0 -0
- data/doc/cxxapi/inherit__graph__33.map +1 -0
- data/doc/cxxapi/inherit__graph__33.md5 +1 -0
- data/doc/cxxapi/inherit__graph__33.png +0 -0
- data/doc/cxxapi/inherit__graph__34.map +1 -0
- data/doc/cxxapi/inherit__graph__34.md5 +1 -0
- data/doc/cxxapi/inherit__graph__34.png +0 -0
- data/doc/cxxapi/inherit__graph__35.map +1 -0
- data/doc/cxxapi/inherit__graph__35.md5 +1 -0
- data/doc/cxxapi/inherit__graph__35.png +0 -0
- data/doc/cxxapi/inherit__graph__36.map +1 -0
- data/doc/cxxapi/inherit__graph__36.md5 +1 -0
- data/doc/cxxapi/inherit__graph__36.png +0 -0
- data/doc/cxxapi/inherit__graph__4.map +1 -1
- data/doc/cxxapi/inherit__graph__4.md5 +1 -1
- data/doc/cxxapi/inherit__graph__4.png +0 -0
- data/doc/cxxapi/inherit__graph__5.map +1 -1
- data/doc/cxxapi/inherit__graph__5.md5 +1 -1
- data/doc/cxxapi/inherit__graph__5.png +0 -0
- data/doc/cxxapi/inherit__graph__6.map +1 -2
- data/doc/cxxapi/inherit__graph__6.md5 +1 -1
- data/doc/cxxapi/inherit__graph__6.png +0 -0
- data/doc/cxxapi/inherit__graph__7.map +1 -1
- data/doc/cxxapi/inherit__graph__7.md5 +1 -1
- data/doc/cxxapi/inherit__graph__7.png +0 -0
- data/doc/cxxapi/inherit__graph__8.map +1 -1
- data/doc/cxxapi/inherit__graph__8.md5 +1 -1
- data/doc/cxxapi/inherit__graph__8.png +0 -0
- data/doc/cxxapi/inherit__graph__9.map +1 -1
- data/doc/cxxapi/inherit__graph__9.md5 +1 -1
- data/doc/cxxapi/inherit__graph__9.png +0 -0
- data/doc/cxxapi/inherits.html +81 -41
- data/doc/cxxapi/main.html +1 -1
- data/doc/cxxapi/md5_8h-source.html +121 -0
- data/doc/cxxapi/modules.html +1 -1
- data/doc/cxxapi/namespacePassenger.html +651 -0
- data/doc/cxxapi/namespacemembers.html +155 -0
- data/doc/cxxapi/namespacemembers_enum.html +46 -0
- data/doc/cxxapi/namespacemembers_eval.html +52 -0
- data/doc/cxxapi/namespacemembers_func.html +139 -0
- data/doc/cxxapi/namespacemembers_type.html +50 -0
- data/doc/cxxapi/namespaces.html +34 -0
- data/doc/cxxapi/nginx_2Configuration_8h-source.html +114 -0
- data/doc/cxxapi/ngx__http__passenger__module_8h-source.html +91 -0
- data/doc/cxxapi/structPassenger_1_1AnythingToString-members.html +2 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString.html +3 -2
- data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4-members.html +2 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4.html +3 -2
- data/doc/cxxapi/structPassenger_1_1MessageServer_1_1DisconnectEventBroadcastGuard-members.html +33 -0
- data/doc/cxxapi/structPassenger_1_1MessageServer_1_1DisconnectEventBroadcastGuard.html +49 -0
- data/doc/cxxapi/structPassenger_1_1PoolOptions-members.html +19 -7
- data/doc/cxxapi/structPassenger_1_1PoolOptions.html +323 -53
- data/doc/cxxapi/structPassenger_1_1StaticString_1_1Hash-members.html +33 -0
- data/doc/cxxapi/structPassenger_1_1StaticString_1_1Hash.html +49 -0
- data/ext/common/MessageChannel.h +48 -4
- data/ext/common/Version.h +1 -1
- data/ext/nginx/HttpStatusExtractor.h +1 -0
- data/ext/nginx/ScgiRequestParser.h +1 -0
- data/ext/phusion_passenger/native_support.c +5 -1
- data/lib/phusion_passenger/constants.rb +1 -1
- data/lib/phusion_passenger/message_channel.rb +45 -3
- data/lib/phusion_passenger/rack/application_spawner.rb +4 -0
- data/lib/phusion_passenger/railz/application_spawner.rb +19 -1
- data/lib/phusion_passenger/utils.rb +3 -3
- data/lib/phusion_passenger/utils/rewindable_input.rb +5 -0
- data/test/MessageChannelTest.cpp +9 -1
- data/test/stub/message_channel.rb +1 -1
- data/test/stub/message_channel_2.rb +1 -1
- data/test/stub/message_channel_3.rb +2 -2
- metadata +173 -113
- data/doc/cxxapi/ApplicationPoolServer_8h-source.html +0 -833
- data/doc/cxxapi/ApplicationPool_8h-source.html +0 -226
- data/doc/cxxapi/Application_8h-source.html +0 -553
- data/doc/cxxapi/DummySpawnManager_8h-source.html +0 -130
- data/doc/cxxapi/FileChecker_8h-source.html +0 -134
- data/doc/cxxapi/StandardApplicationPool_8h-source.html +0 -842
- data/doc/cxxapi/classPassenger_1_1Application.html +0 -231
- data/doc/cxxapi/classPassenger_1_1ApplicationPool-members.html +0 -41
- data/doc/cxxapi/classPassenger_1_1ApplicationPool.html +0 -323
- data/doc/cxxapi/classPassenger_1_1ApplicationPoolServer.html +0 -227
- data/doc/cxxapi/classPassenger_1_1ApplicationPool__inherit__graph.map +0 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPool__inherit__graph.md5 +0 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPool__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1Application_1_1Session-members.html +0 -44
- data/doc/cxxapi/classPassenger_1_1Application_1_1Session.html +0 -403
- data/doc/cxxapi/classPassenger_1_1DummySpawnManager.html +0 -53
- data/doc/cxxapi/classPassenger_1_1FileChecker.html +0 -124
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool-members.html +0 -44
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool.html +0 -342
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool__inherit__graph.map +0 -1
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool__inherit__graph.md5 +0 -1
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool__inherit__graph.png +0 -0
- data/doc/rdoc/classes/ConditionVariable.html +0 -194
- data/doc/rdoc/classes/Exception.html +0 -120
- data/doc/rdoc/classes/GC.html +0 -113
- data/doc/rdoc/classes/IO.html +0 -169
- data/doc/rdoc/classes/PhusionPassenger.html +0 -239
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -153
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -517
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -719
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -598
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +0 -317
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess/Instance.html +0 -138
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -154
- data/doc/rdoc/classes/PhusionPassenger/Application.html +0 -283
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -175
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -489
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -350
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -188
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -199
- data/doc/rdoc/classes/PhusionPassenger/Railz.html +0 -95
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +0 -438
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +0 -200
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +0 -436
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +0 -155
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -402
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -805
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +0 -169
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +0 -247
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +0 -120
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -188
- data/doc/rdoc/classes/PlatformInfo.html +0 -866
- data/doc/rdoc/classes/RakeExtensions.html +0 -197
- data/doc/rdoc/classes/Signal.html +0 -139
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -255
- data/doc/rdoc/files/README.html +0 -157
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +0 -130
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -134
- data/doc/rdoc/files/lib/phusion_passenger/events_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -133
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +0 -140
- data/doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +0 -145
- data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -159
- data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +0 -100
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -174
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -129
- data/doc/rdoc/files/misc/rake/extensions_rb.html +0 -130
- data/doc/rdoc/fr_class_index.html +0 -93
- data/doc/rdoc/fr_file_index.html +0 -77
- data/doc/rdoc/fr_method_index.html +0 -212
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -187
data/NEWS
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
Release 2.2.10
|
2
|
+
--------------
|
3
|
+
|
4
|
+
* Fixed some Bundler compatibility problems.
|
5
|
+
* Fixed some file descriptor passing problems, which previously
|
6
|
+
could lead to mysterious crashes.
|
7
|
+
* Fixed some compilation problems on newer GCC versions. Issue #430.
|
8
|
+
* Support #size method in rack.input.
|
9
|
+
|
10
|
+
|
1
11
|
Release 2.2.9
|
2
12
|
-------------
|
3
13
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
-
<meta name="generator" content="AsciiDoc 8.
|
6
|
+
<meta name="generator" content="AsciiDoc 8.5.2" />
|
7
7
|
<title>Passenger architectural overview</title>
|
8
8
|
<style type="text/css">
|
9
9
|
/* Debug borders */
|
@@ -91,7 +91,7 @@ span#author {
|
|
91
91
|
}
|
92
92
|
span#email {
|
93
93
|
}
|
94
|
-
span#
|
94
|
+
span#revnumber, span#revdate, span#revremark {
|
95
95
|
font-family: sans-serif;
|
96
96
|
}
|
97
97
|
|
@@ -118,12 +118,14 @@ div#preamble {
|
|
118
118
|
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
|
119
119
|
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
|
120
120
|
div.admonitionblock {
|
121
|
-
margin-top: 1.
|
121
|
+
margin-top: 1.0em;
|
122
122
|
margin-bottom: 1.5em;
|
123
123
|
}
|
124
124
|
div.admonitionblock {
|
125
|
-
margin-top: 2.
|
126
|
-
margin-bottom: 2.
|
125
|
+
margin-top: 2.0em;
|
126
|
+
margin-bottom: 2.0em;
|
127
|
+
margin-right: 10%;
|
128
|
+
color: #606060;
|
127
129
|
}
|
128
130
|
|
129
131
|
div.content { /* Block element content. */
|
@@ -165,19 +167,19 @@ div.listingblock > div.content {
|
|
165
167
|
padding: 0.5em;
|
166
168
|
}
|
167
169
|
|
168
|
-
div.quoteblock {
|
169
|
-
padding-left:
|
170
|
+
div.quoteblock, div.verseblock {
|
171
|
+
padding-left: 1.0em;
|
172
|
+
margin-left: 1.0em;
|
170
173
|
margin-right: 10%;
|
174
|
+
border-left: 5px solid #dddddd;
|
175
|
+
color: #777777;
|
171
176
|
}
|
177
|
+
|
172
178
|
div.quoteblock > div.attribution {
|
173
179
|
padding-top: 0.5em;
|
174
180
|
text-align: right;
|
175
181
|
}
|
176
182
|
|
177
|
-
div.verseblock {
|
178
|
-
padding-left: 2.0em;
|
179
|
-
margin-right: 10%;
|
180
|
-
}
|
181
183
|
div.verseblock > div.content {
|
182
184
|
white-space: pre;
|
183
185
|
}
|
@@ -200,17 +202,17 @@ div.admonitionblock .icon {
|
|
200
202
|
}
|
201
203
|
div.admonitionblock td.content {
|
202
204
|
padding-left: 0.5em;
|
203
|
-
border-left:
|
205
|
+
border-left: 3px solid #dddddd;
|
204
206
|
}
|
205
207
|
|
206
208
|
div.exampleblock > div.content {
|
207
|
-
border-left:
|
208
|
-
padding: 0.5em;
|
209
|
+
border-left: 3px solid #dddddd;
|
210
|
+
padding-left: 0.5em;
|
209
211
|
}
|
210
212
|
|
211
213
|
div.imageblock div.content { padding-left: 0; }
|
212
|
-
div.imageblock img { border: 1px solid silver; }
|
213
214
|
span.image img { border-style: none; }
|
215
|
+
a.image:visited { color: white; }
|
214
216
|
|
215
217
|
dl {
|
216
218
|
margin-top: 0.8em;
|
@@ -255,7 +257,7 @@ div.compact div, div.compact div {
|
|
255
257
|
div.tableblock > table {
|
256
258
|
border: 3px solid #527bbd;
|
257
259
|
}
|
258
|
-
thead {
|
260
|
+
thead, p.table.header {
|
259
261
|
font-family: sans-serif;
|
260
262
|
font-weight: bold;
|
261
263
|
}
|
@@ -310,10 +312,42 @@ div.hdlist.compact tr {
|
|
310
312
|
background: yellow;
|
311
313
|
}
|
312
314
|
|
315
|
+
.footnote, .footnoteref {
|
316
|
+
font-size: 0.8em;
|
317
|
+
}
|
318
|
+
|
319
|
+
span.footnote, span.footnoteref {
|
320
|
+
vertical-align: super;
|
321
|
+
}
|
322
|
+
|
323
|
+
#footnotes {
|
324
|
+
margin: 20px 0 20px 0;
|
325
|
+
padding: 7px 0 0 0;
|
326
|
+
}
|
327
|
+
|
328
|
+
#footnotes div.footnote {
|
329
|
+
margin: 0 0 5px 0;
|
330
|
+
}
|
331
|
+
|
332
|
+
#footnotes hr {
|
333
|
+
border: none;
|
334
|
+
border-top: 1px solid silver;
|
335
|
+
height: 1px;
|
336
|
+
text-align: left;
|
337
|
+
margin-left: 0;
|
338
|
+
width: 20%;
|
339
|
+
min-width: 100px;
|
340
|
+
}
|
341
|
+
|
342
|
+
|
313
343
|
@media print {
|
314
344
|
div#footer-badges { display: none; }
|
315
345
|
}
|
316
346
|
|
347
|
+
div#toc {
|
348
|
+
margin-bottom: 2.5em;
|
349
|
+
}
|
350
|
+
|
317
351
|
div#toctitle {
|
318
352
|
color: #527bbd;
|
319
353
|
font-family: sans-serif;
|
@@ -339,10 +373,57 @@ div.toclevel4 {
|
|
339
373
|
margin-left: 6em;
|
340
374
|
font-size: 0.9em;
|
341
375
|
}
|
376
|
+
/* Workarounds for IE6's broken and incomplete CSS2. */
|
377
|
+
|
378
|
+
div.sidebar-content {
|
379
|
+
background: #ffffee;
|
380
|
+
border: 1px solid silver;
|
381
|
+
padding: 0.5em;
|
382
|
+
}
|
383
|
+
div.sidebar-title, div.image-title {
|
384
|
+
color: #527bbd;
|
385
|
+
font-family: sans-serif;
|
386
|
+
font-weight: bold;
|
387
|
+
margin-top: 0.0em;
|
388
|
+
margin-bottom: 0.5em;
|
389
|
+
}
|
390
|
+
|
391
|
+
div.listingblock div.content {
|
392
|
+
border: 1px solid silver;
|
393
|
+
background: #f4f4f4;
|
394
|
+
padding: 0.5em;
|
395
|
+
}
|
396
|
+
|
397
|
+
div.quoteblock-attribution {
|
398
|
+
padding-top: 0.5em;
|
399
|
+
text-align: right;
|
400
|
+
}
|
401
|
+
|
402
|
+
div.verseblock-content {
|
403
|
+
white-space: pre;
|
404
|
+
}
|
405
|
+
div.verseblock-attribution {
|
406
|
+
padding-top: 0.75em;
|
407
|
+
text-align: left;
|
408
|
+
}
|
409
|
+
|
410
|
+
div.exampleblock-content {
|
411
|
+
border-left: 3px solid #dddddd;
|
412
|
+
padding-left: 0.5em;
|
413
|
+
}
|
414
|
+
|
415
|
+
/* IE6 sets dynamically generated links as visited. */
|
416
|
+
div#toc a:visited { color: blue; }
|
342
417
|
</style>
|
343
418
|
<script type="text/javascript">
|
344
419
|
/*<![CDATA[*/
|
345
|
-
window.onload = function(){
|
420
|
+
window.onload = function(){asciidoc.footnotes(); asciidoc.toc(3);}
|
421
|
+
var asciidoc = { // Namespace.
|
422
|
+
|
423
|
+
/////////////////////////////////////////////////////////////////////
|
424
|
+
// Table Of Contents generator
|
425
|
+
/////////////////////////////////////////////////////////////////////
|
426
|
+
|
346
427
|
/* Author: Mihai Bazon, September 2002
|
347
428
|
* http://students.infoiasi.ro/~mishoo
|
348
429
|
*
|
@@ -354,53 +435,55 @@ window.onload = function(){generateToc(3)}
|
|
354
435
|
*/
|
355
436
|
|
356
437
|
/* modified by Troy D. Hanson, September 2006. License: GPL */
|
357
|
-
/* modified by Stuart Rackham,
|
358
|
-
|
359
|
-
function getText(el) {
|
360
|
-
var text = "";
|
361
|
-
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
362
|
-
if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
|
363
|
-
text += i.data;
|
364
|
-
else if (i.firstChild != null)
|
365
|
-
text += getText(i);
|
366
|
-
}
|
367
|
-
return text;
|
368
|
-
}
|
438
|
+
/* modified by Stuart Rackham, 2006, 2009. License: GPL */
|
369
439
|
|
370
|
-
|
371
|
-
|
372
|
-
this.text = text;
|
373
|
-
this.toclevel = toclevel;
|
374
|
-
}
|
440
|
+
// toclevels = 1..4.
|
441
|
+
toc: function (toclevels) {
|
375
442
|
|
376
|
-
function
|
377
|
-
|
378
|
-
var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
|
379
|
-
// Function that scans the DOM tree for header elements (the DOM2
|
380
|
-
// nodeIterator API would be a better technique but not supported by all
|
381
|
-
// browsers).
|
382
|
-
var iterate = function (el) {
|
443
|
+
function getText(el) {
|
444
|
+
var text = "";
|
383
445
|
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
384
|
-
if (i.nodeType ==
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
446
|
+
if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
|
447
|
+
text += i.data;
|
448
|
+
else if (i.firstChild != null)
|
449
|
+
text += getText(i);
|
450
|
+
}
|
451
|
+
return text;
|
452
|
+
}
|
453
|
+
|
454
|
+
function TocEntry(el, text, toclevel) {
|
455
|
+
this.element = el;
|
456
|
+
this.text = text;
|
457
|
+
this.toclevel = toclevel;
|
458
|
+
}
|
459
|
+
|
460
|
+
function tocEntries(el, toclevels) {
|
461
|
+
var result = new Array;
|
462
|
+
var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
|
463
|
+
// Function that scans the DOM tree for header elements (the DOM2
|
464
|
+
// nodeIterator API would be a better technique but not supported by all
|
465
|
+
// browsers).
|
466
|
+
var iterate = function (el) {
|
467
|
+
for (var i = el.firstChild; i != null; i = i.nextSibling) {
|
468
|
+
if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
|
469
|
+
var mo = re.exec(i.tagName);
|
470
|
+
if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
|
471
|
+
result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
|
472
|
+
}
|
473
|
+
iterate(i);
|
474
|
+
}
|
389
475
|
}
|
390
476
|
}
|
477
|
+
iterate(el);
|
478
|
+
return result;
|
391
479
|
}
|
392
|
-
iterate(el);
|
393
|
-
return result;
|
394
|
-
}
|
395
480
|
|
396
|
-
// This function does the work. toclevels = 1..4.
|
397
|
-
function generateToc(toclevels) {
|
398
481
|
var toc = document.getElementById("toc");
|
399
|
-
var entries = tocEntries(document.
|
482
|
+
var entries = tocEntries(document.getElementById("content"), toclevels);
|
400
483
|
for (var i = 0; i < entries.length; ++i) {
|
401
484
|
var entry = entries[i];
|
402
485
|
if (entry.element.id == "")
|
403
|
-
entry.element.id = "
|
486
|
+
entry.element.id = "_toc_" + i;
|
404
487
|
var a = document.createElement("a");
|
405
488
|
a.href = "#" + entry.element.id;
|
406
489
|
a.appendChild(document.createTextNode(entry.text));
|
@@ -410,7 +493,58 @@ function generateToc(toclevels) {
|
|
410
493
|
toc.appendChild(div);
|
411
494
|
}
|
412
495
|
if (entries.length == 0)
|
413
|
-
|
496
|
+
toc.parentNode.removeChild(toc);
|
497
|
+
},
|
498
|
+
|
499
|
+
|
500
|
+
/////////////////////////////////////////////////////////////////////
|
501
|
+
// Footnotes generator
|
502
|
+
/////////////////////////////////////////////////////////////////////
|
503
|
+
|
504
|
+
/* Based on footnote generation code from:
|
505
|
+
* http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
|
506
|
+
*/
|
507
|
+
|
508
|
+
footnotes: function () {
|
509
|
+
var cont = document.getElementById("content");
|
510
|
+
var noteholder = document.getElementById("footnotes");
|
511
|
+
var spans = cont.getElementsByTagName("span");
|
512
|
+
var refs = {};
|
513
|
+
var n = 0;
|
514
|
+
for (i=0; i<spans.length; i++) {
|
515
|
+
if (spans[i].className == "footnote") {
|
516
|
+
n++;
|
517
|
+
// Use [\s\S] in place of . so multi-line matches work.
|
518
|
+
// Because JavaScript has no s (dotall) regex flag.
|
519
|
+
note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
|
520
|
+
noteholder.innerHTML +=
|
521
|
+
"<div class='footnote' id='_footnote_" + n + "'>" +
|
522
|
+
"<a href='#_footnoteref_" + n + "' title='Return to text'>" +
|
523
|
+
n + "</a>. " + note + "</div>";
|
524
|
+
spans[i].innerHTML =
|
525
|
+
"[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
|
526
|
+
"' title='View footnote' class='footnote'>" + n + "</a>]";
|
527
|
+
var id =spans[i].getAttribute("id");
|
528
|
+
if (id != null) refs["#"+id] = n;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
if (n == 0)
|
532
|
+
noteholder.parentNode.removeChild(noteholder);
|
533
|
+
else {
|
534
|
+
// Process footnoterefs.
|
535
|
+
for (i=0; i<spans.length; i++) {
|
536
|
+
if (spans[i].className == "footnoteref") {
|
537
|
+
var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
|
538
|
+
href = href.match(/#.*/)[0]; // Because IE return full URL.
|
539
|
+
n = refs[href];
|
540
|
+
spans[i].innerHTML =
|
541
|
+
"[<a href='#_footnote_" + n +
|
542
|
+
"' title='View footnote' class='footnote'>" + n + "</a>]";
|
543
|
+
}
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
414
548
|
}
|
415
549
|
/*]]>*/
|
416
550
|
</script>
|
@@ -423,6 +557,7 @@ function generateToc(toclevels) {
|
|
423
557
|
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
|
424
558
|
</div>
|
425
559
|
</div>
|
560
|
+
<div id="content">
|
426
561
|
<div id="preamble">
|
427
562
|
<div class="sectionbody">
|
428
563
|
<div class="paragraph"><p>This document describes Passenger’s architure in a global way. The purpose of
|
@@ -433,7 +568,7 @@ as to explain (some of the) design choices that we have made.</p></div>
|
|
433
568
|
</div>
|
434
569
|
<h2 id="_about_the_involved_technologies">1. About the involved technologies</h2>
|
435
570
|
<div class="sectionbody">
|
436
|
-
<h3 id="typical_web_applications">1.1. Typical web applications</h3>
|
571
|
+
<h3 id="typical_web_applications">1.1. Typical web applications</h3><div style="clear:left"></div>
|
437
572
|
<div class="paragraph"><p>Before we describe Passenger, it is important to understand how typical web
|
438
573
|
applications work, from the point of view of someone who wants to connect the
|
439
574
|
application to a web server.</p></div>
|
@@ -444,7 +579,7 @@ to exit. This does not necessarily mean that the web application speaks HTTP
|
|
444
579
|
directly: it just means that the web application accepts some kind of
|
445
580
|
representation of an HTTP request.</p></div>
|
446
581
|
<div class="paragraph"><p><span class="image">
|
447
|
-
<img src="images/typical_isolated_web_application.png" alt="Architecture of a typical web application in isolation"
|
582
|
+
<img src="images/typical_isolated_web_application.png" alt="Architecture of a typical web application in isolation" />
|
448
583
|
</span></p></div>
|
449
584
|
<div class="paragraph"><p>Few web applications are accessible directly by HTTP clients. Common setups
|
450
585
|
are:</p></div>
|
@@ -504,7 +639,7 @@ could multiplex I/O with a single thread (e.g. by using <tt>select(2)</tt> or
|
|
504
639
|
processes.</p></div>
|
505
640
|
<div class="paragraph"><p>Of course, there are many variations possible. For example, load balancers
|
506
641
|
could be used. But that is outside the scope of this document.</p></div>
|
507
|
-
<h3 id="_ruby_on_rails">1.2. Ruby on Rails</h3>
|
642
|
+
<h3 id="_ruby_on_rails">1.2. Ruby on Rails</h3><div style="clear:left"></div>
|
508
643
|
<div class="paragraph"><p>Every Ruby on Rails application has a <em>dispatcher</em>. This dispatcher is
|
509
644
|
responsible for processing HTTP requests. It does not speak HTTP directly.
|
510
645
|
Instead, it accepts data structures that contain the information of an
|
@@ -523,7 +658,7 @@ syntax tree (AST)</a>) in memory. This is observed through the use of the
|
|
523
658
|
memory statistics function in <a href="http://www.rubyenterpriseedition.com/">Ruby
|
524
659
|
Enterprise Edition</a>. Also, a lot of the startup time of a Ruby on Rails
|
525
660
|
application is spent on bootstrapping the Rails framework.</p></div>
|
526
|
-
<h3 id="_apache">1.3. Apache</h3>
|
661
|
+
<h3 id="_apache">1.3. Apache</h3><div style="clear:left"></div>
|
527
662
|
<div class="paragraph"><p>The Apache web server has a pluggable I/O multiprocessing (the ability to
|
528
663
|
handle more than 1 concurrent HTTP client at the same time) architecture. An
|
529
664
|
Apache module which implements a particular multiprocessing strategy, is called
|
@@ -536,13 +671,13 @@ The next section contains a diagram which shows the prefork MPM’s architec
|
|
536
671
|
</div>
|
537
672
|
<h2 id="_passenger_architecture">2. Passenger architecture</h2>
|
538
673
|
<div class="sectionbody">
|
539
|
-
<h3 id="_overview">2.1. Overview</h3>
|
674
|
+
<h3 id="_overview">2.1. Overview</h3><div style="clear:left"></div>
|
540
675
|
<div class="paragraph"><p>Passenger’s architecture is a lot like setup #2 described in
|
541
676
|
<a href="#typical_web_applications">Typical web applications</a>. In other words,
|
542
677
|
Passenger extends Apache and allows it to act like an application server.
|
543
678
|
Passenger’s architecture — assuming Apache 2 with the prefork MPM is used — is shown in the following diagram:</p></div>
|
544
679
|
<div class="paragraph"><p><span class="image">
|
545
|
-
<img src="images/passenger_architecture.png" alt="Passenger’s architecture"
|
680
|
+
<img src="images/passenger_architecture.png" alt="Passenger’s architecture" />
|
546
681
|
</span></p></div>
|
547
682
|
<div class="paragraph"><p>Passenger consists of an Apache module, <em>mod_passenger</em>. This is written in
|
548
683
|
C++, and can be found in the directory <em>ext/apache2</em>. The module is active in
|
@@ -558,7 +693,7 @@ mod_ruby. If the Rails application crashes or leak memory, it will have no
|
|
558
693
|
effect on Apache. In fact, stability is one of our highest goals. Passenger
|
559
694
|
is carefully designed and implemented so that Apache shouldn’t crash because
|
560
695
|
of Passenger.</p></div>
|
561
|
-
<h3 id="_spawning_and_caching_of_code_and_applications">2.2. Spawning and caching of code and applications</h3>
|
696
|
+
<h3 id="_spawning_and_caching_of_code_and_applications">2.2. Spawning and caching of code and applications</h3><div style="clear:left"></div>
|
562
697
|
<div class="paragraph"><p>A very naive implementation of Passenger would spawn a Ruby on Rails
|
563
698
|
application every time an HTTP request is received, just like CGI would.
|
564
699
|
However, spawning Ruby on Rails applications is expensive. It can take 1 or 2
|
@@ -626,7 +761,7 @@ in particular the documentation about the <tt>ApplicationPool</tt>,
|
|
626
761
|
<div class="paragraph"><p>The application pool is responsible for spawning applications, caching
|
627
762
|
spawned applications' handles, and cleaning up applications which have been
|
628
763
|
idle for an extended period of time.</p></div>
|
629
|
-
<h3 id="spawn_server">2.3. The spawn server</h3>
|
764
|
+
<h3 id="spawn_server">2.3. The spawn server</h3><div style="clear:left"></div>
|
630
765
|
<div class="paragraph"><p>The spawn server is written in Ruby, and its code can be found in the directory
|
631
766
|
<em>lib/passenger</em>. Its main executable is <em>bin/passenger-spawn-server</em>.
|
632
767
|
<a href="rdoc/index.html">The spawn server’s RDoc documentation</a> documents the
|
@@ -662,7 +797,7 @@ implementation in detail.</p></div>
|
|
662
797
|
</li>
|
663
798
|
</ol></div>
|
664
799
|
<div class="paragraph"><p><span class="image">
|
665
|
-
<img src="images/spawn_server_architecture.png" alt="The spawn server’s architecture"
|
800
|
+
<img src="images/spawn_server_architecture.png" alt="The spawn server’s architecture" />
|
666
801
|
</span></p></div>
|
667
802
|
<div class="paragraph"><p>As you can see, we have two layers of code caching: when the spawn server
|
668
803
|
receives a request to spawn a new application instance, it will forward the
|
@@ -710,7 +845,7 @@ startup times. You just won’t be able to benefit from memory sharing.</p><
|
|
710
845
|
</div>
|
711
846
|
<div class="paragraph"><p>Note that <a href="http://rubini.us/">Rubinius</a>'s garbage collector is already
|
712
847
|
copy-on-write friendly.</p></div>
|
713
|
-
<h3 id="concurrent_requests">2.4. Handling of concurrent requests</h3>
|
848
|
+
<h3 id="concurrent_requests">2.4. Handling of concurrent requests</h3><div style="clear:left"></div>
|
714
849
|
<div class="paragraph"><p>As explained earlier, a single Rails application instance can only handle a
|
715
850
|
single request at the same time. This is obviously undesirable. But before we
|
716
851
|
dive into the solution, let us take a look how the “competition” solves this
|
@@ -755,9 +890,11 @@ Attribution-Share Alike 3.0 Unported License</a>.</p></div>
|
|
755
890
|
</a>
|
756
891
|
</span></p></div>
|
757
892
|
</div>
|
893
|
+
</div>
|
894
|
+
<div id="footnotes"><hr /></div>
|
758
895
|
<div id="footer">
|
759
896
|
<div id="footer-text">
|
760
|
-
Last updated 2009-11-24
|
897
|
+
Last updated 2009-11-24 13:33:45 CEST
|
761
898
|
</div>
|
762
899
|
</div>
|
763
900
|
</body>
|