passenger 6.1.8 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +56 -2
- data/CONTRIBUTING.md +7 -311
- data/CONTRIBUTORS +1 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/bin/passenger +1 -1
- data/bin/passenger-config +1 -1
- data/bin/passenger-install-apache2-module +1 -1
- data/bin/passenger-install-nginx-module +4 -9
- data/bin/passenger-memory-stats +1 -1
- data/bin/passenger-status +1 -1
- data/build/agent.rb +13 -15
- data/build/apache2.rb +13 -16
- data/build/basics.rb +10 -13
- data/build/common_library.rb +5 -9
- data/build/cxx_tests.rb +40 -12
- data/build/integration_tests.rb +5 -2
- data/build/misc.rb +1 -1
- data/build/nginx.rb +1 -1
- data/build/node_tests.rb +1 -1
- data/build/oxt_tests.rb +6 -8
- data/build/packaging.rb +1 -1
- data/build/ruby_extension.rb +1 -1
- data/build/ruby_tests.rb +1 -1
- data/build/schema_printer.rb +13 -15
- data/build/support/cplusplus.rb +61 -69
- data/build/support/cxx_dependency_map.rb +1488 -666
- data/build/support/general.rb +1 -1
- data/build/support/vendor/cxx_hinted_parser/LICENSE.md +1 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser/parser.rb +3 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/LICENSE.md +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +3 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/initializer_builder.rb +3 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder.rb +1 -1
- data/build/test_basics.rb +1 -1
- data/dev/copy_boost_headers +1 -1
- data/dev/index_cxx_dependencies.rb +6 -2
- data/dev/libev-changes.patch +108 -0
- data/dev/nginx_version_sha256 +1 -1
- data/dev/ruby_server.rb +1 -6
- data/dev/runner +2 -0
- data/dev/upgrading_libuv.sh +16 -0
- data/doc/BasicArchitectureOverview.md +55 -0
- data/doc/BuildCaching.md +23 -0
- data/doc/BuildSystem.md +49 -0
- data/doc/DebuggingAndStressTesting.md +2 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +1 -0
- data/doc/DevEnvironmentSetup.md +46 -0
- data/doc/DevHandbook.md +28 -0
- data/doc/Packaging.md +1 -1
- data/doc/RunningTests.md +88 -0
- data/doc/{TempFileHandling.md → SecureTempFileHandling.md} +1 -1
- data/doc/{CxxTestingGuide.md → WritingCxxTests.md} +1 -20
- data/src/agent/AgentMain.cpp +1 -1
- data/src/agent/Core/ApiServer.h +1 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicGroupInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/Common.h +1 -1
- data/src/agent/Core/ApplicationPool/Context.h +1 -1
- data/src/agent/Core/ApplicationPool/Group/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/LifetimeAndBasics.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SpawningAndRestarting.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Verification.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group.h +1 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Options.h +1 -1
- data/src/agent/Core/ApplicationPool/Pool/AnalyticsCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GarbageCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GeneralUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GroupUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool.h +1 -1
- data/src/agent/Core/ApplicationPool/Process.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Process.h +1 -1
- data/src/agent/Core/ApplicationPool/Session.h +1 -1
- data/src/agent/Core/ApplicationPool/Socket.h +1 -1
- data/src/agent/Core/ApplicationPool/TestSession.h +1 -1
- data/src/agent/Core/Config.h +3 -2
- data/src/agent/Core/ConfigChange.cpp +1 -1
- data/src/agent/Core/ConfigChange.h +1 -1
- data/src/agent/Core/Controller/AppResponse.h +1 -1
- data/src/agent/Core/Controller/BufferBody.cpp +1 -1
- data/src/agent/Core/Controller/CheckoutSession.cpp +8 -5
- data/src/agent/Core/Controller/Client.h +1 -1
- data/src/agent/Core/Controller/Config.cpp +1 -1
- data/src/agent/Core/Controller/Config.h +2 -2
- data/src/agent/Core/Controller/ForwardResponse.cpp +2 -2
- data/src/agent/Core/Controller/Hooks.cpp +12 -9
- data/src/agent/Core/Controller/Implementation.cpp +1 -1
- data/src/agent/Core/Controller/InitRequest.cpp +1 -1
- data/src/agent/Core/Controller/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/Controller/InternalUtils.cpp +1 -1
- data/src/agent/Core/Controller/Miscellaneous.cpp +1 -1
- data/src/agent/Core/Controller/Request.h +1 -1
- data/src/agent/Core/Controller/SendRequest.cpp +1 -1
- data/src/agent/Core/Controller/StateInspection.cpp +1 -1
- data/src/agent/Core/Controller/TurboCaching.h +1 -1
- data/src/agent/Core/Controller.h +1 -1
- data/src/agent/Core/CoreMain.cpp +1 -1
- data/src/agent/Core/OptionParser.h +1 -1
- data/src/agent/Core/ResponseCache.h +1 -1
- data/src/agent/Core/SecurityUpdateChecker.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Config.h +1 -1
- data/src/agent/Core/SpawningKit/Context.h +1 -1
- data/src/agent/Core/SpawningKit/DirectSpawner.h +1 -1
- data/src/agent/Core/SpawningKit/DummySpawner.h +1 -1
- data/src/agent/Core/SpawningKit/ErrorRenderer.h +1 -1
- data/src/agent/Core/SpawningKit/Exceptions.h +63 -2
- data/src/agent/Core/SpawningKit/Factory.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Perform.h +3 -2
- data/src/agent/Core/SpawningKit/Handshake/Prepare.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Session.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/WorkDir.h +1 -1
- data/src/agent/Core/SpawningKit/Journey.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +1 -1
- data/src/agent/Core/SpawningKit/README.md +3 -3
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Result.h +1 -1
- data/src/agent/Core/SpawningKit/SmartSpawner.h +17 -17
- data/src/agent/Core/SpawningKit/Spawner.h +1 -1
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +1 -1
- data/src/agent/Core/TelemetryCollector.h +1 -1
- data/src/agent/ExecHelper/ExecHelperMain.cpp +1 -1
- data/src/agent/FileReadHelper/FileReadHelperMain.cpp +1 -1
- data/src/agent/MainFunctions.h +1 -1
- data/src/agent/Shared/ApiAccountUtils.h +4 -3
- data/src/agent/Shared/ApiServerUtils.h +15 -11
- data/src/agent/Shared/ApplicationPoolApiKey.h +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.cpp +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.h +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.h +1 -1
- data/src/agent/Shared/Fundamentals/Utils.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Utils.h +1 -1
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +1 -1
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +1 -1
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +1 -1
- data/src/agent/Watchdog/{AgentWatcher.cpp → AgentWatcher.h} +28 -1
- data/src/agent/Watchdog/ApiServer.h +25 -1
- data/src/agent/Watchdog/Config.h +2 -2
- data/src/agent/Watchdog/{CoreWatcher.cpp → CoreWatcher.h} +18 -1
- data/src/agent/Watchdog/{InstanceDirToucher.cpp → InstanceDirToucher.h} +20 -1
- data/src/agent/Watchdog/WatchdogMain.cpp +11 -77
- data/src/agent/Watchdog/WorkingObjects.h +108 -0
- data/src/apache2_module/Bucket.cpp +1 -1
- data/src/apache2_module/Bucket.h +1 -1
- data/src/apache2_module/CBindings.cpp +1 -1
- data/src/apache2_module/Config.cpp +1 -1
- data/src/apache2_module/Config.h +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +104 -104
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder +2 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/Common.h +1 -1
- data/src/apache2_module/ConfigGeneral/ManifestGeneration.h +1 -1
- data/src/apache2_module/ConfigGeneral/SetterFuncs.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/DirectoryMapper.h +1 -1
- data/src/apache2_module/Hooks.cpp +8 -2
- data/src/apache2_module/Hooks.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/Utils.h +1 -1
- data/src/apache2_module/mod_passenger.c +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +1 -1
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -1
- data/src/cxx_supportlib/AppLocalConfigFileUtils.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.cpp +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/Detector.h +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.cpp +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.h +1 -1
- data/src/cxx_supportlib/ConfigKit/AsyncUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Common.h +1 -1
- data/src/cxx_supportlib/ConfigKit/ConfigKit.h +1 -1
- data/src/cxx_supportlib/ConfigKit/DummyTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/IN_PRACTICE.md +1 -3
- data/src/cxx_supportlib/ConfigKit/PrefixTranslator.h +3 -3
- data/src/cxx_supportlib/ConfigKit/Schema.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SchemaUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Store.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SubComponentUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/TableTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Translator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Utils.h +1 -1
- data/src/cxx_supportlib/Constants.h +2 -2
- data/src/cxx_supportlib/Constants.h.cxxcodebuilder +1 -1
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +1 -1
- data/src/cxx_supportlib/DataStructures/LString.cpp +1 -1
- data/src/cxx_supportlib/DataStructures/LString.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringKeyTable.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +1 -1
- data/src/cxx_supportlib/Exceptions.cpp +1 -1
- data/src/cxx_supportlib/Exceptions.h +1 -1
- data/src/cxx_supportlib/FileDescriptor.h +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.h +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.h +1 -1
- data/src/cxx_supportlib/Hooks.h +1 -1
- data/src/cxx_supportlib/IOTools/BufferedIO.h +1 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +12 -27
- data/src/cxx_supportlib/IOTools/IOUtils.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageIO.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageSerialization.h +1 -1
- data/src/cxx_supportlib/InstanceDirectory.h +1 -1
- data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +1 -1
- data/src/cxx_supportlib/JsonTools/Autocast.h +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.cpp +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.h +1 -1
- data/src/cxx_supportlib/JsonTools/JsonUtils.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Assert.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Config.h +2 -1
- data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Forward.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +11 -1
- data/src/cxx_supportlib/LoggingKit/Logging.h +1 -1
- data/src/cxx_supportlib/LoggingKit/LoggingKit.h +1 -1
- data/src/cxx_supportlib/LveLoggingDecorator.h +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.h +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.h +1 -1
- data/src/cxx_supportlib/RandomGenerator.h +1 -1
- data/src/cxx_supportlib/ResourceLocator.h +1 -1
- data/src/cxx_supportlib/SafeLibev.h +1 -1
- data/src/cxx_supportlib/SecurityKit/Crypto.cpp +9 -27
- data/src/cxx_supportlib/SecurityKit/Crypto.h +2 -2
- data/src/cxx_supportlib/SecurityKit/MemZeroGuard.h +1 -1
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +4 -1
- data/src/cxx_supportlib/ServerKit/Channel.h +1 -1
- data/src/cxx_supportlib/ServerKit/Client.h +1 -1
- data/src/cxx_supportlib/ServerKit/ClientRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/Config.h +1 -1
- data/src/cxx_supportlib/ServerKit/Context.h +1 -1
- data/src/cxx_supportlib/ServerKit/CookieUtils.h +1 -1
- data/src/cxx_supportlib/ServerKit/Errors.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSourceChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +54 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedFdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/HeaderTable.h +1 -1
- data/src/cxx_supportlib/ServerKit/Hooks.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpClient.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequest.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequestRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpServer.h +1 -1
- data/src/cxx_supportlib/ServerKit/Implementation.cpp +1 -1
- data/src/cxx_supportlib/ServerKit/Server.h +8 -23
- data/src/cxx_supportlib/StaticString.h +1 -1
- data/src/cxx_supportlib/StrIntTools/DateParsing.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtilsNoStrictAliasing.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StringScanning.h +1 -1
- data/src/cxx_supportlib/StrIntTools/Template.h +1 -1
- data/src/cxx_supportlib/SystemTools/ContainerHelpers.h +1 -1
- data/src/cxx_supportlib/SystemTools/ProcessMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.h +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.h +1 -1
- data/src/cxx_supportlib/Utils/AnsiColorConstants.h +1 -1
- data/src/cxx_supportlib/Utils/AsyncSignalSafeUtils.h +1 -1
- data/src/cxx_supportlib/Utils/BlockingQueue.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.cpp +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.hpp +1 -1
- data/src/cxx_supportlib/Utils/ClassUtils.h +1 -1
- data/src/cxx_supportlib/Utils/Curl.h +1 -1
- data/src/cxx_supportlib/Utils/FastStringStream.h +1 -1
- data/src/cxx_supportlib/Utils/FileChangeChecker.h +1 -1
- data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
- data/src/cxx_supportlib/Utils/IniFile.h +1 -1
- data/src/cxx_supportlib/Utils/MessagePassing.h +1 -1
- data/src/cxx_supportlib/Utils/OptionParsing.h +1 -1
- data/src/cxx_supportlib/Utils/ReleaseableScopedPointer.h +1 -1
- data/src/cxx_supportlib/Utils/ScopeGuard.h +1 -1
- data/src/cxx_supportlib/Utils/Socket.cpp +67 -0
- data/src/cxx_supportlib/Utils/Socket.h +35 -0
- data/src/cxx_supportlib/Utils/SpeedMeter.h +1 -1
- data/src/cxx_supportlib/Utils/Timer.h +1 -1
- data/src/cxx_supportlib/Utils/VariantMap.h +1 -1
- data/src/cxx_supportlib/Utils.cpp +1 -1
- data/src/cxx_supportlib/Utils.h +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.cpp +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.cpp +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Entry.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Registry.h +1 -1
- data/src/cxx_supportlib/oxt/backtrace.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/context.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/dynamic_thread_group.hpp +1 -1
- data/src/cxx_supportlib/oxt/implementation.cpp +1 -1
- data/src/cxx_supportlib/oxt/initialize.hpp +1 -1
- data/src/cxx_supportlib/oxt/macros.hpp +1 -1
- data/src/cxx_supportlib/oxt/spin_lock.hpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.hpp +1 -1
- data/src/cxx_supportlib/oxt/thread.hpp +1 -1
- data/src/cxx_supportlib/oxt/tracable_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-copy/adhoc_lve.h +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/AUTHORS +353 -3
- data/src/cxx_supportlib/vendor-copy/libuv/ChangeLog +3981 -2
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE +1 -28
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-docs +396 -0
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-extra +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.am +275 -58
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.in +4380 -2125
- data/src/cxx_supportlib/vendor-copy/libuv/aclocal.m4 +425 -221
- data/src/cxx_supportlib/vendor-copy/libuv/ar-lib +30 -10
- data/src/cxx_supportlib/vendor-copy/libuv/compile +31 -14
- data/src/cxx_supportlib/vendor-copy/libuv/config.guess +1084 -690
- data/src/cxx_supportlib/vendor-copy/libuv/config.sub +1844 -1297
- data/src/cxx_supportlib/vendor-copy/libuv/configure +6935 -3664
- data/src/cxx_supportlib/vendor-copy/libuv/configure.ac +43 -19
- data/src/cxx_supportlib/vendor-copy/libuv/depcomp +12 -11
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-darwin.h → uv/darwin.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-errno.h → uv/errno.h} +119 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-linux.h → uv/linux.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/os390.h +33 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/posix.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-threadpool.h → uv/threadpool.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/{tree.h → uv/tree.h} +3 -250
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-unix.h → uv/unix.h} +186 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-version.h → uv/version.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/win.h +703 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv.h +528 -40
- data/src/cxx_supportlib/vendor-copy/libuv/install-sh +110 -70
- data/src/cxx_supportlib/vendor-copy/libuv/libuv-static.pc.in +12 -0
- data/src/cxx_supportlib/vendor-copy/libuv/libuv.pc.in +4 -2
- data/src/cxx_supportlib/vendor-copy/libuv/ltmain.sh +995 -619
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ax_pthread.m4 +485 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libtool.m4 +438 -289
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-flags.m4 +21 -4
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-versions.m4 +7 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltoptions.m4 +69 -39
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltsugar.m4 +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltversion.m4 +7 -6
- data/src/cxx_supportlib/vendor-copy/libuv/m4/lt~obsolete.m4 +2 -2
- data/src/cxx_supportlib/vendor-copy/libuv/missing +55 -34
- data/src/cxx_supportlib/vendor-copy/libuv/src/fs-poll.c +52 -20
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.c +560 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/inet.c +5 -16
- data/src/cxx_supportlib/vendor-copy/libuv/src/queue.h +68 -86
- data/src/cxx_supportlib/vendor-copy/libuv/src/random.c +123 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.c +38 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.h +39 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.c +52 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.h +27 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/thread-common.c +175 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/threadpool.c +172 -57
- data/src/cxx_supportlib/vendor-copy/libuv/src/{unix/timer.c → timer.c} +57 -29
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix-common.c +89 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix.c +418 -256
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/async.c +168 -129
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-ifaddrs.c +163 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-proctitle.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/core.c +1312 -378
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/cygwin.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-proctitle.c +18 -32
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-stub.h +97 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-syscalls.h +17 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin.c +41 -139
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/dl.c +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/freebsd.c +75 -235
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fs.c +1308 -299
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fsevents.c +150 -148
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getaddrinfo.c +58 -8
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getnameinfo.c +3 -2
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/haiku.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/hurd.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/ibmi.c +542 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/internal.h +297 -106
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/kqueue.c +325 -94
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux.c +2708 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop-watcher.c +11 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop.c +105 -24
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/netbsd.c +51 -157
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-fsevents.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-proctitle.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/openbsd.c +42 -183
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-proctitle.c +136 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.c +536 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.h +75 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390.c +1070 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pipe.c +324 -55
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/poll.c +58 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-hrtime.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-poll.c +385 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/process.c +795 -248
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/procfs-exepath.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/proctitle.c +77 -22
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/qnx.c +142 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-devurandom.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getentropy.c +57 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getrandom.c +86 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-sysctl-linux.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/signal.c +147 -39
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/stream.c +426 -474
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sunos.c +240 -98
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-loadavg.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-memory.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tcp.c +402 -91
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/thread.c +497 -145
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tty.c +269 -45
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/udp.c +695 -165
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.c +463 -61
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.h +248 -44
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-data-getter-setters.c +119 -0
- data/src/cxx_supportlib/vendor-copy/libuv/tsansupp.txt +2 -0
- data/src/cxx_supportlib/vendor-modified/libev/Changes +109 -0
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.am +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.in +47 -33
- data/src/cxx_supportlib/vendor-modified/libev/README +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/aclocal.m4 +1653 -1224
- data/src/cxx_supportlib/vendor-modified/libev/config.guess +376 -316
- data/src/cxx_supportlib/vendor-modified/libev/config.h.in +13 -2
- data/src/cxx_supportlib/vendor-modified/libev/config.sub +156 -154
- data/src/cxx_supportlib/vendor-modified/libev/configure +1431 -940
- data/src/cxx_supportlib/vendor-modified/libev/configure.ac +3 -3
- data/src/cxx_supportlib/vendor-modified/libev/depcomp +5 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev++.h +109 -107
- data/src/cxx_supportlib/vendor-modified/libev/ev.c +807 -319
- data/src/cxx_supportlib/vendor-modified/libev/ev.h +111 -105
- data/src/cxx_supportlib/vendor-modified/libev/ev_epoll.c +42 -29
- data/src/cxx_supportlib/vendor-modified/libev/ev_iouring.c +694 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_kqueue.c +15 -9
- data/src/cxx_supportlib/vendor-modified/libev/ev_linuxaio.c +620 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_poll.c +19 -14
- data/src/cxx_supportlib/vendor-modified/libev/ev_port.c +8 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev_select.c +6 -6
- data/src/cxx_supportlib/vendor-modified/libev/ev_vars.h +48 -3
- data/src/cxx_supportlib/vendor-modified/libev/ev_win32.c +2 -2
- data/src/cxx_supportlib/vendor-modified/libev/ev_wrap.h +72 -0
- data/src/cxx_supportlib/vendor-modified/libev/install-sh +23 -13
- data/src/cxx_supportlib/vendor-modified/libev/libev.m4 +6 -1
- data/src/cxx_supportlib/vendor-modified/libev/ltmain.sh +3581 -1993
- data/src/cxx_supportlib/vendor-modified/libev/missing +8 -8
- data/src/cxx_supportlib/vendor-modified/libev/mkinstalldirs +3 -3
- data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +1 -1
- data/src/helper-scripts/backtrace-sanitizer.rb +1 -1
- data/src/helper-scripts/crash-watch.rb +1 -1
- data/src/helper-scripts/download_binaries/extconf.rb +1 -1
- data/src/helper-scripts/meteor-loader.rb +4 -1
- data/src/helper-scripts/node-loader.js +1 -1
- data/src/helper-scripts/prespawn +1 -1
- data/src/helper-scripts/rack-loader.rb +4 -1
- data/src/helper-scripts/rack-preloader.rb +4 -1
- data/src/helper-scripts/wsgi-loader.py +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c.cxxcodebuilder +1 -1
- data/src/nginx_module/Configuration.c +1 -1
- data/src/nginx_module/Configuration.h +1 -1
- data/src/nginx_module/ContentHandler.c +14 -2
- data/src/nginx_module/ContentHandler.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/StaticContentHandler.c +1 -1
- data/src/nginx_module/StaticContentHandler.h +1 -1
- data/src/nginx_module/ngx_http_passenger_module.c +1 -1
- data/src/nginx_module/ngx_http_passenger_module.h +1 -1
- data/src/nodejs_supportlib/phusion_passenger/line_reader.js +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_native_extension/passenger_native_support.c +1 -1
- data/src/ruby_supportlib/phusion_passenger/abstract_installer.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +4 -12
- data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_utils.rb +7 -1
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +11 -10
- data/src/ruby_supportlib/phusion_passenger/config/about_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/api_call_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/build_native_support_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_agent_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_nginx_engine_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/detach_process_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_agent_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/installation_utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/config/list_instances_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/main.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +5 -2
- data/src/ruby_supportlib/phusion_passenger/config/reopen_logs_command.rb +8 -1
- data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_metrics_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_properties_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/config/utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/constants.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/debug_logging.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/message_channel.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_client.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +7 -3
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache_detector.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +197 -11
- data/src/ruby_supportlib/phusion_passenger/platform_info/crypto.rb +2 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck.rb +4 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/networking.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/zlib.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/plugin.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb +2 -1
- data/src/ruby_supportlib/phusion_passenger/public_api.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/rack/handler.rb +7 -1
- data/src/ruby_supportlib/phusion_passenger/rack/out_of_band_gc.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +7 -1
- data/src/ruby_supportlib/phusion_passenger/rack_handler.rb +13 -1
- data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +4 -7
- data/src/ruby_supportlib/phusion_passenger/request_handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/simple_benchmarking.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/control_utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/main.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +8 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +10 -8
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/status_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/version_command.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/ansi_colors.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/utils/download.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/hosts_file_parser.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/json.rb +4 -0
- data/src/ruby_supportlib/phusion_passenger/utils/lock.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/utils/progress_bar.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/strscan.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/tee_input.rb +2 -0
- data/src/ruby_supportlib/phusion_passenger/utils/terminal_choice_menu.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb +2 -0
- data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +5 -13
- data/src/ruby_supportlib/phusion_passenger/utils.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/base.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/utils.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/version.rb +3 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/lock_file.rb +10 -6
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/spawn.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/version.rb +8 -4
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +395 -579
- data/src/ruby_supportlib/phusion_passenger.rb +10 -8
- data/src/schema_printer/SchemaPrinterMain.cpp +1 -1
- data/src/schema_printer/SchemaPrinterMain.cpp.cxxcodebuilder +1 -1
- metadata +76 -36
- data/doc/DeveloperQuickstart.md +0 -70
- data/src/README.md +0 -7
- data/src/cxx_supportlib/vendor-copy/libuv/README.md +0 -245
- data/src/cxx_supportlib/vendor-copy/libuv/checksparse.sh +0 -234
- data/src/cxx_supportlib/vendor-copy/libuv/common.gypi +0 -210
- data/src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py +0 -93
- data/src/cxx_supportlib/vendor-copy/libuv/include/android-ifaddrs.h +0 -54
- data/src/cxx_supportlib/vendor-copy/libuv/include/pthread-fixes.h +0 -72
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/android-ifaddrs.c +0 -703
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/atomic-ops.h +0 -77
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-core.c +0 -899
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-inotify.c +0 -285
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.c +0 -471
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.h +0 -158
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pthread-fixes.c +0 -104
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/spinlock.h +0 -53
- data/src/cxx_supportlib/vendor-copy/libuv/uv.gyp +0 -508
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-aix.h → uv/aix.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-bsd.h → uv/bsd.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-sunos.h → uv/sunos.h} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -32,6 +32,7 @@ PhusionPassenger.require_passenger_lib 'platform_info/operating_system'
|
|
|
32
32
|
module PhusionPassenger
|
|
33
33
|
|
|
34
34
|
module PlatformInfo
|
|
35
|
+
|
|
35
36
|
# Store original $GEM_HOME value so that even if the app customizes
|
|
36
37
|
# $GEM_HOME we can still work with the original value.
|
|
37
38
|
gem_home = ENV['GEM_HOME']
|
|
@@ -515,6 +516,7 @@ module PhusionPassenger
|
|
|
515
516
|
end
|
|
516
517
|
end
|
|
517
518
|
private_class_method :transform_according_to_ruby_exec_format
|
|
519
|
+
|
|
518
520
|
end
|
|
519
521
|
|
|
520
522
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -27,6 +27,7 @@ PhusionPassenger.require_passenger_lib 'platform_info'
|
|
|
27
27
|
module PhusionPassenger
|
|
28
28
|
|
|
29
29
|
module PlatformInfo
|
|
30
|
+
|
|
30
31
|
def self.zlib_flags
|
|
31
32
|
nil
|
|
32
33
|
end
|
|
@@ -34,6 +35,7 @@ module PhusionPassenger
|
|
|
34
35
|
def self.zlib_libs
|
|
35
36
|
'-lz'
|
|
36
37
|
end
|
|
38
|
+
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -31,6 +31,7 @@ module PhusionPassenger
|
|
|
31
31
|
# This module autodetects various platform-specific information, and
|
|
32
32
|
# provides that information through constants.
|
|
33
33
|
module PlatformInfo
|
|
34
|
+
|
|
34
35
|
private
|
|
35
36
|
@@cache_dir = nil
|
|
36
37
|
@@verbose = [ '1', 'true', 'on', 'yes' ].include?(ENV['VERBOSE'])
|
|
@@ -426,6 +427,7 @@ module PhusionPassenger
|
|
|
426
427
|
end
|
|
427
428
|
result
|
|
428
429
|
end
|
|
430
|
+
|
|
429
431
|
end
|
|
430
432
|
|
|
431
433
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2011-
|
|
4
|
+
# Copyright (c) 2011-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -33,6 +33,7 @@ module PhusionPassenger
|
|
|
33
33
|
|
|
34
34
|
# Provides shared functions for preloader apps.
|
|
35
35
|
module PreloaderSharedHelpers
|
|
36
|
+
|
|
36
37
|
extend self
|
|
37
38
|
|
|
38
39
|
def init(main_app)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
# THE SOFTWARE.
|
|
24
24
|
|
|
25
25
|
module PhusionPassenger
|
|
26
|
+
|
|
26
27
|
class << self
|
|
27
28
|
@@event_starting_worker_process = []
|
|
28
29
|
@@event_stopping_worker_process = []
|
|
@@ -77,4 +78,5 @@ module PhusionPassenger
|
|
|
77
78
|
end
|
|
78
79
|
end
|
|
79
80
|
end
|
|
81
|
+
|
|
80
82
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2024-
|
|
4
|
+
# Copyright (c) 2024-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -25,8 +25,11 @@
|
|
|
25
25
|
# THE SOFTWARE.
|
|
26
26
|
|
|
27
27
|
module PhusionPassenger
|
|
28
|
+
|
|
28
29
|
module Rack
|
|
30
|
+
|
|
29
31
|
module Handler
|
|
32
|
+
|
|
30
33
|
def run(app, options = {})
|
|
31
34
|
result = system(ruby_executable, '-S', find_passenger_standalone,
|
|
32
35
|
'start', *build_args(options))
|
|
@@ -68,6 +71,9 @@ module PhusionPassenger
|
|
|
68
71
|
def find_passenger_standalone
|
|
69
72
|
::File.join(::PhusionPassenger.bin_dir, 'passenger')
|
|
70
73
|
end
|
|
74
|
+
|
|
71
75
|
end
|
|
76
|
+
|
|
72
77
|
end
|
|
78
|
+
|
|
73
79
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2012-
|
|
4
|
+
# Copyright (c) 2012-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
require 'thread'
|
|
28
28
|
|
|
29
29
|
module PhusionPassenger
|
|
30
|
+
|
|
30
31
|
module Rack
|
|
31
32
|
|
|
32
33
|
class OutOfBandGc
|
|
@@ -131,4 +132,5 @@ module PhusionPassenger
|
|
|
131
132
|
end
|
|
132
133
|
|
|
133
134
|
end # module Rack
|
|
135
|
+
|
|
134
136
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -28,18 +28,22 @@ PhusionPassenger.require_passenger_lib 'utils/tee_input'
|
|
|
28
28
|
|
|
29
29
|
if defined?(::Rack::BodyProxy) && !::Rack::BodyProxy.new("").respond_to?(:each)
|
|
30
30
|
module ::Rack
|
|
31
|
+
|
|
31
32
|
class BodyProxy
|
|
32
33
|
def each
|
|
33
34
|
@body.each { |body| yield body }
|
|
34
35
|
end
|
|
35
36
|
end
|
|
37
|
+
|
|
36
38
|
end
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
module PhusionPassenger
|
|
42
|
+
|
|
40
43
|
module Rack
|
|
41
44
|
|
|
42
45
|
module ThreadHandlerExtension
|
|
46
|
+
|
|
43
47
|
# Constants which exist to relieve Ruby's garbage collector.
|
|
44
48
|
RACK_VERSION = "rack.version" # :nodoc:
|
|
45
49
|
RACK_VERSION_VALUE = [ 1, 3 ] # :nodoc:
|
|
@@ -402,7 +406,9 @@ module PhusionPassenger
|
|
|
402
406
|
str.size
|
|
403
407
|
end
|
|
404
408
|
end
|
|
409
|
+
|
|
405
410
|
end
|
|
406
411
|
|
|
407
412
|
end # module Rack
|
|
413
|
+
|
|
408
414
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2016-
|
|
4
|
+
# Copyright (c) 2016-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -43,11 +43,15 @@ require 'rackup' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
|
|
|
43
43
|
# Rackup was removed in Rack 3, it is now a separate gem
|
|
44
44
|
if Object.const_defined?(:Rackup) && ::Rackup.const_defined?(:Handler)
|
|
45
45
|
module Rackup
|
|
46
|
+
|
|
46
47
|
module Handler
|
|
48
|
+
|
|
47
49
|
module PhusionPassenger
|
|
50
|
+
|
|
48
51
|
class << self
|
|
49
52
|
include ::PhusionPassenger::Rack::Handler
|
|
50
53
|
end
|
|
54
|
+
|
|
51
55
|
end
|
|
52
56
|
|
|
53
57
|
def self.default(options = {})
|
|
@@ -55,20 +59,28 @@ if Object.const_defined?(:Rackup) && ::Rackup.const_defined?(:Handler)
|
|
|
55
59
|
end
|
|
56
60
|
|
|
57
61
|
register :passenger, PhusionPassenger
|
|
62
|
+
|
|
58
63
|
end
|
|
64
|
+
|
|
59
65
|
end
|
|
60
66
|
elsif Object.const_defined?(:Rack) && ::Rack.release < '3'
|
|
61
67
|
module Rack
|
|
68
|
+
|
|
62
69
|
module Handler
|
|
70
|
+
|
|
63
71
|
module PhusionPassenger
|
|
72
|
+
|
|
64
73
|
class << self
|
|
65
74
|
include ::PhusionPassenger::Rack::Handler
|
|
66
75
|
end
|
|
76
|
+
|
|
67
77
|
end
|
|
68
78
|
def self.default(options = {})
|
|
69
79
|
::Rack::Handler::PhusionPassenger
|
|
70
80
|
end
|
|
81
|
+
|
|
71
82
|
end
|
|
83
|
+
|
|
72
84
|
end
|
|
73
85
|
::Rack::Handler.register(:passenger, ::Rack::Handler::PhusionPassenger)
|
|
74
86
|
else
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -30,6 +30,7 @@ PhusionPassenger.require_passenger_lib 'utils/native_support_utils'
|
|
|
30
30
|
PhusionPassenger.require_passenger_lib 'utils/unseekable_socket'
|
|
31
31
|
|
|
32
32
|
module PhusionPassenger
|
|
33
|
+
|
|
33
34
|
class RequestHandler
|
|
34
35
|
# This class encapsulates the logic of a single RequestHandler thread.
|
|
35
36
|
class ThreadHandler
|
|
@@ -100,12 +101,7 @@ module PhusionPassenger
|
|
|
100
101
|
def main_loop(finish_callback)
|
|
101
102
|
socket_wrapper = Utils::UnseekableSocket.new
|
|
102
103
|
channel = MessageChannel.new
|
|
103
|
-
|
|
104
|
-
buffer = String.new(encoding: Encoding::BINARY)
|
|
105
|
-
else
|
|
106
|
-
buffer = ""
|
|
107
|
-
buffer.force_encoding('binary') if buffer.respond_to?(:force_encoding)
|
|
108
|
-
end
|
|
104
|
+
buffer = ''.b
|
|
109
105
|
|
|
110
106
|
begin
|
|
111
107
|
finish_callback.call
|
|
@@ -349,4 +345,5 @@ module PhusionPassenger
|
|
|
349
345
|
end
|
|
350
346
|
end
|
|
351
347
|
end # class RequestHandler
|
|
348
|
+
|
|
352
349
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -119,6 +119,7 @@ class File
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
module Signal
|
|
122
|
+
|
|
122
123
|
# Like Signal.list, but only returns signals that we can actually trap.
|
|
123
124
|
def self.list_trappable
|
|
124
125
|
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
|
|
@@ -155,9 +156,11 @@ module Signal
|
|
|
155
156
|
|
|
156
157
|
result
|
|
157
158
|
end
|
|
159
|
+
|
|
158
160
|
end
|
|
159
161
|
|
|
160
162
|
module GC
|
|
163
|
+
|
|
161
164
|
if !respond_to?(:copy_on_write_friendly?)
|
|
162
165
|
# Checks whether the current Ruby interpreter's garbage
|
|
163
166
|
# collector is copy-on-write friendly.
|
|
@@ -165,4 +168,5 @@ module GC
|
|
|
165
168
|
false
|
|
166
169
|
end
|
|
167
170
|
end
|
|
171
|
+
|
|
168
172
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: binary
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2010-
|
|
4
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -27,6 +27,7 @@ PhusionPassenger.require_passenger_lib 'standalone/config_utils'
|
|
|
27
27
|
PhusionPassenger.require_passenger_lib 'utils/file_system_watcher'
|
|
28
28
|
|
|
29
29
|
module PhusionPassenger
|
|
30
|
+
|
|
30
31
|
module Standalone
|
|
31
32
|
|
|
32
33
|
class AppFinder
|
|
@@ -187,4 +188,5 @@ module PhusionPassenger
|
|
|
187
188
|
end
|
|
188
189
|
|
|
189
190
|
end # module Standalone
|
|
191
|
+
|
|
190
192
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
# THE SOFTWARE.
|
|
24
24
|
|
|
25
25
|
module PhusionPassenger
|
|
26
|
+
|
|
26
27
|
module Standalone
|
|
27
28
|
|
|
28
29
|
class Command
|
|
@@ -71,4 +72,5 @@ module PhusionPassenger
|
|
|
71
72
|
end
|
|
72
73
|
|
|
73
74
|
end # module Standalone
|
|
75
|
+
|
|
74
76
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2015-
|
|
2
|
+
# Copyright (c) 2015-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -81,7 +81,9 @@ PhusionPassenger.require_passenger_lib 'platform_info/ruby'
|
|
|
81
81
|
# passed argument is acceptable.
|
|
82
82
|
|
|
83
83
|
module PhusionPassenger
|
|
84
|
+
|
|
84
85
|
module Standalone
|
|
86
|
+
|
|
85
87
|
# Server configuration options
|
|
86
88
|
SERVER_CONFIG_SPEC = [
|
|
87
89
|
{
|
|
@@ -723,5 +725,7 @@ module PhusionPassenger
|
|
|
723
725
|
end
|
|
724
726
|
end
|
|
725
727
|
end
|
|
728
|
+
|
|
726
729
|
end
|
|
730
|
+
|
|
727
731
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2014-
|
|
2
|
+
# Copyright (c) 2014-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -26,9 +26,11 @@ PhusionPassenger.require_passenger_lib 'ruby_core_enhancements'
|
|
|
26
26
|
PhusionPassenger.require_passenger_lib 'standalone/config_options_list'
|
|
27
27
|
|
|
28
28
|
module PhusionPassenger
|
|
29
|
+
|
|
29
30
|
module Standalone
|
|
30
31
|
|
|
31
32
|
module ConfigUtils
|
|
33
|
+
|
|
32
34
|
extend self # Make methods available as class methods.
|
|
33
35
|
|
|
34
36
|
def self.included(klass)
|
|
@@ -354,7 +356,9 @@ module PhusionPassenger
|
|
|
354
356
|
Socket.getaddrinfo(hostname, nil).first[3]
|
|
355
357
|
end
|
|
356
358
|
end
|
|
359
|
+
|
|
357
360
|
end
|
|
358
361
|
|
|
359
362
|
end # module Standalone
|
|
363
|
+
|
|
360
364
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -23,9 +23,11 @@
|
|
|
23
23
|
# THE SOFTWARE.
|
|
24
24
|
|
|
25
25
|
module PhusionPassenger
|
|
26
|
+
|
|
26
27
|
module Standalone
|
|
27
28
|
|
|
28
29
|
module ControlUtils
|
|
30
|
+
|
|
29
31
|
extend self # Make methods available as class methods.
|
|
30
32
|
|
|
31
33
|
def self.included(klass)
|
|
@@ -62,7 +64,9 @@ module PhusionPassenger
|
|
|
62
64
|
STDERR.puts " * The instance that you want to stop has stored its PID file in a non-standard"
|
|
63
65
|
STDERR.puts " location. In this case please specify the right PID file with --pid-file."
|
|
64
66
|
end
|
|
67
|
+
|
|
65
68
|
end
|
|
66
69
|
|
|
67
70
|
end
|
|
71
|
+
|
|
68
72
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2013-
|
|
2
|
+
# Copyright (c) 2013-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -28,6 +28,7 @@ module PhusionPassenger
|
|
|
28
28
|
|
|
29
29
|
# Core of the `passenger` command (Passenger Standalone). Dispatches a subcommand to a specific class.
|
|
30
30
|
module Standalone
|
|
31
|
+
|
|
31
32
|
KNOWN_COMMANDS = [
|
|
32
33
|
[ "start", "StartCommand" ],
|
|
33
34
|
[ "stop", "StopCommand" ],
|
|
@@ -109,6 +110,7 @@ module PhusionPassenger
|
|
|
109
110
|
PhusionPassenger.require_passenger_lib("standalone/#{base_name}")
|
|
110
111
|
PhusionPassenger::Standalone.const_get(class_name)
|
|
111
112
|
end
|
|
113
|
+
|
|
112
114
|
end
|
|
113
115
|
|
|
114
116
|
end # module PhusionPassenger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
3
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
4
|
-
# Copyright (c) 2014-
|
|
4
|
+
# Copyright (c) 2014-2026 Asynchronous B.V.
|
|
5
5
|
#
|
|
6
6
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
7
7
|
# trademarks of Asynchronous B.V.
|
|
@@ -33,13 +33,16 @@ PhusionPassenger.require_passenger_lib 'utils/shellwords'
|
|
|
33
33
|
PhusionPassenger.require_passenger_lib 'utils/json'
|
|
34
34
|
|
|
35
35
|
module PhusionPassenger
|
|
36
|
+
|
|
36
37
|
module Standalone
|
|
38
|
+
|
|
37
39
|
class StartCommand
|
|
38
40
|
module BuiltinEngine
|
|
41
|
+
|
|
39
42
|
private
|
|
40
43
|
def start_engine_real
|
|
41
44
|
Standalone::ControlUtils.require_daemon_controller
|
|
42
|
-
@engine = DaemonController.new(build_daemon_controller_options)
|
|
45
|
+
@engine = DaemonController.new(**build_daemon_controller_options)
|
|
43
46
|
start_engine_no_create
|
|
44
47
|
end
|
|
45
48
|
|
|
@@ -273,7 +276,10 @@ module PhusionPassenger
|
|
|
273
276
|
end
|
|
274
277
|
|
|
275
278
|
#####################
|
|
279
|
+
|
|
276
280
|
end # module BuiltinEngine
|
|
277
281
|
end # module StartCommand
|
|
282
|
+
|
|
278
283
|
end # module Standalone
|
|
284
|
+
|
|
279
285
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -33,9 +33,12 @@ PhusionPassenger.require_passenger_lib 'utils/shellwords'
|
|
|
33
33
|
PhusionPassenger.require_passenger_lib 'utils/json'
|
|
34
34
|
|
|
35
35
|
module PhusionPassenger
|
|
36
|
+
|
|
36
37
|
module Standalone
|
|
38
|
+
|
|
37
39
|
class StartCommand
|
|
38
40
|
module NginxEngine
|
|
41
|
+
|
|
39
42
|
private
|
|
40
43
|
def start_engine_real
|
|
41
44
|
write_nginx_config_file(nginx_config_path)
|
|
@@ -43,7 +46,7 @@ module PhusionPassenger
|
|
|
43
46
|
test_nginx_config(nginx_config_path, 'nginx.conf')
|
|
44
47
|
|
|
45
48
|
Standalone::ControlUtils.require_daemon_controller
|
|
46
|
-
@engine = DaemonController.new(build_daemon_controller_options)
|
|
49
|
+
@engine = DaemonController.new(**build_daemon_controller_options)
|
|
47
50
|
|
|
48
51
|
begin
|
|
49
52
|
@engine.start
|
|
@@ -321,17 +324,16 @@ module PhusionPassenger
|
|
|
321
324
|
end
|
|
322
325
|
|
|
323
326
|
def serialize_strset(*items)
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
null = "\0".force_encoding('binary')
|
|
327
|
-
else
|
|
328
|
-
null = "\0"
|
|
329
|
-
end
|
|
327
|
+
items = items.map(&:b)
|
|
328
|
+
null = "\0".b
|
|
330
329
|
[ items.join(null) ].pack('m*').gsub("\n", "").strip
|
|
331
330
|
end
|
|
332
331
|
|
|
333
332
|
#####################
|
|
333
|
+
|
|
334
334
|
end # module NginxEngine
|
|
335
335
|
end # module StartCommand
|
|
336
|
+
|
|
336
337
|
end # module Standalone
|
|
338
|
+
|
|
337
339
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -42,6 +42,7 @@ PhusionPassenger.require_passenger_lib 'platform_info/ruby'
|
|
|
42
42
|
# checking stage of the runtime installer.
|
|
43
43
|
|
|
44
44
|
module PhusionPassenger
|
|
45
|
+
|
|
45
46
|
module Standalone
|
|
46
47
|
|
|
47
48
|
class StartCommand < Command
|
|
@@ -563,4 +564,5 @@ module PhusionPassenger
|
|
|
563
564
|
end
|
|
564
565
|
|
|
565
566
|
end # module Standalone
|
|
567
|
+
|
|
566
568
|
end # module PhusionPassenger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -30,6 +30,7 @@ PhusionPassenger.require_passenger_lib 'standalone/control_utils'
|
|
|
30
30
|
PhusionPassenger.require_passenger_lib 'ruby_core_enhancements'
|
|
31
31
|
|
|
32
32
|
module PhusionPassenger
|
|
33
|
+
|
|
33
34
|
module Standalone
|
|
34
35
|
|
|
35
36
|
class StatusCommand < Command
|
|
@@ -120,4 +121,5 @@ module PhusionPassenger
|
|
|
120
121
|
end
|
|
121
122
|
|
|
122
123
|
end
|
|
124
|
+
|
|
123
125
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
|
2
|
-
# Copyright (c) 2010-
|
|
2
|
+
# Copyright (c) 2010-2026 Asynchronous B.V.
|
|
3
3
|
#
|
|
4
4
|
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
|
5
5
|
# trademarks of Asynchronous B.V.
|
|
@@ -30,6 +30,7 @@ PhusionPassenger.require_passenger_lib 'standalone/control_utils'
|
|
|
30
30
|
PhusionPassenger.require_passenger_lib 'ruby_core_enhancements'
|
|
31
31
|
|
|
32
32
|
module PhusionPassenger
|
|
33
|
+
|
|
33
34
|
module Standalone
|
|
34
35
|
|
|
35
36
|
class StopCommand < Command
|
|
@@ -137,4 +138,5 @@ module PhusionPassenger
|
|
|
137
138
|
end
|
|
138
139
|
|
|
139
140
|
end
|
|
141
|
+
|
|
140
142
|
end
|