passenger 5.0.20 → 5.0.21
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.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/CHANGELOG +14 -0
- data/CONTRIBUTORS +1 -0
- data/README.md +1 -1
- data/Rakefile +4 -1
- data/bin/passenger +3 -2
- data/bin/passenger-config +3 -2
- data/bin/passenger-install-apache2-module +3 -3
- data/bin/passenger-install-nginx-module +10 -3
- data/bin/passenger-memory-stats +3 -2
- data/bin/passenger-status +3 -2
- data/build/agent.rb +4 -3
- data/build/apache2.rb +3 -2
- data/build/basics.rb +3 -2
- data/build/common_library.rb +9 -8
- data/build/cplusplus_support.rb +3 -2
- data/build/cxx_dependency_map.rb +67 -134
- data/build/cxx_tests.rb +3 -2
- data/build/documentation.rb +3 -2
- data/build/integration_tests.rb +3 -2
- data/build/misc.rb +3 -22
- data/build/nginx.rb +3 -2
- data/build/node_tests.rb +3 -2
- data/build/oxt_tests.rb +3 -2
- data/build/packaging.rb +4 -3
- data/build/ruby_extension.rb +3 -2
- data/build/ruby_tests.rb +3 -2
- data/build/test_basics.rb +3 -2
- data/dev/copy_boost_headers +3 -2
- data/doc/Design and Architecture.html +1 -1
- data/doc/Design and Architecture.txt +1 -1
- data/doc/Users guide Apache.html +1 -1
- data/doc/Users guide Nginx.html +1 -1
- data/doc/users_guide_snippets/appendix_a_about.txt +1 -1
- data/man/passenger-config.1 +0 -2
- data/man/passenger-memory-stats.8 +0 -2
- data/man/passenger-status.8 +0 -2
- data/src/agent/AgentMain.cpp +3 -2
- data/src/agent/Core/ApiServer.h +3 -2
- data/src/agent/Core/ApplicationPool/BasicGroupInfo.h +3 -2
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +3 -2
- data/src/agent/Core/ApplicationPool/Common.h +3 -2
- data/src/agent/Core/ApplicationPool/Context.h +3 -2
- data/src/agent/Core/ApplicationPool/ErrorRenderer.h +3 -2
- data/src/agent/Core/ApplicationPool/Group.h +3 -2
- data/src/agent/Core/ApplicationPool/Group/InitializationAndShutdown.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/LifetimeAndBasics.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/Miscellaneous.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/SpawningAndRestarting.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/Verification.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Implementation.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Options.h +3 -11
- data/src/agent/Core/ApplicationPool/Pool.h +3 -2
- data/src/agent/Core/ApplicationPool/Pool/AnalyticsCollection.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/GarbageCollection.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/GeneralUtils.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/GroupUtils.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/InitializationAndShutdown.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/Miscellaneous.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Process.h +3 -2
- data/src/agent/Core/ApplicationPool/Session.h +3 -2
- data/src/agent/Core/ApplicationPool/Socket.h +3 -2
- data/src/agent/Core/CoreMain.cpp +3 -2
- data/src/agent/Core/OptionParser.h +3 -2
- data/src/agent/Core/RequestHandler.h +3 -2
- data/src/agent/Core/RequestHandler/AppResponse.h +3 -2
- data/src/agent/Core/RequestHandler/BufferBody.cpp +3 -2
- data/src/agent/Core/RequestHandler/CheckoutSession.cpp +3 -2
- data/src/agent/Core/RequestHandler/Client.h +3 -2
- data/src/agent/Core/RequestHandler/ForwardResponse.cpp +3 -2
- data/src/agent/Core/RequestHandler/Hooks.cpp +4 -2
- data/src/agent/Core/RequestHandler/InitRequest.cpp +13 -4
- data/src/agent/Core/RequestHandler/Request.h +10 -2
- data/src/agent/Core/RequestHandler/SendRequest.cpp +40 -9
- data/src/agent/Core/RequestHandler/TurboCaching.h +3 -2
- data/src/agent/Core/RequestHandler/Utils.cpp +3 -2
- data/src/agent/Core/ResponseCache.h +3 -2
- data/src/agent/Core/SpawningKit/BackgroundIOCapturer.h +3 -2
- data/src/agent/Core/SpawningKit/Config.h +3 -2
- data/src/agent/Core/SpawningKit/DirectSpawner.h +3 -2
- data/src/agent/Core/SpawningKit/DummySpawner.h +3 -2
- data/src/agent/Core/SpawningKit/Factory.h +3 -2
- data/src/agent/Core/SpawningKit/Options.h +3 -2
- data/src/agent/Core/SpawningKit/PipeWatcher.h +3 -2
- data/src/agent/Core/SpawningKit/Result.h +3 -2
- data/src/agent/Core/SpawningKit/SmartSpawner.h +3 -2
- data/src/agent/Core/SpawningKit/Spawner.h +18 -2
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +3 -2
- data/src/agent/Core/UnionStation/Connection.h +3 -2
- data/src/agent/Core/UnionStation/Core.h +3 -2
- data/src/agent/Core/UnionStation/StopwatchLog.h +3 -2
- data/src/agent/Core/UnionStation/Transaction.h +3 -2
- data/src/agent/Shared/ApiServerUtils.h +3 -2
- data/src/agent/Shared/ApplicationPoolApiKey.h +3 -2
- data/src/agent/Shared/Base.cpp +3 -2
- data/src/agent/Shared/Base.h +3 -2
- data/src/agent/SpawnPreparer/SpawnPreparerMain.cpp +3 -2
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +3 -2
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +3 -2
- data/src/agent/UstRouter/ApiServer.h +3 -2
- data/src/agent/UstRouter/Client.h +3 -2
- data/src/agent/UstRouter/Controller.h +3 -2
- data/src/agent/UstRouter/DataStoreId.h +3 -2
- data/src/agent/UstRouter/FileSink.h +3 -2
- data/src/agent/UstRouter/LogSink.h +3 -2
- data/src/agent/UstRouter/OptionParser.h +3 -2
- data/src/agent/UstRouter/RemoteSender.h +3 -2
- data/src/agent/UstRouter/RemoteSink.h +3 -2
- data/src/agent/UstRouter/Transaction.h +3 -2
- data/src/agent/UstRouter/UstRouterMain.cpp +3 -2
- data/src/agent/Watchdog/AgentWatcher.cpp +3 -2
- data/src/agent/Watchdog/ApiServer.h +3 -2
- data/src/agent/Watchdog/CoreWatcher.cpp +3 -2
- data/src/agent/Watchdog/InstanceDirToucher.cpp +3 -2
- data/src/agent/Watchdog/UstRouterWatcher.cpp +3 -2
- data/src/agent/Watchdog/WatchdogMain.cpp +4 -3
- data/src/apache2_module/Bucket.cpp +3 -2
- data/src/apache2_module/Bucket.h +3 -2
- data/src/apache2_module/Configuration.cpp +3 -2
- data/src/apache2_module/Configuration.h +3 -2
- data/src/apache2_module/Configuration.hpp +3 -2
- data/src/apache2_module/ConfigurationCommands.cpp +3 -2
- data/src/apache2_module/ConfigurationCommands.cpp.erb +3 -2
- data/src/apache2_module/ConfigurationFields.hpp +3 -2
- data/src/apache2_module/ConfigurationFields.hpp.erb +3 -2
- data/src/apache2_module/ConfigurationSetters.cpp +3 -2
- data/src/apache2_module/ConfigurationSetters.cpp.erb +3 -2
- data/src/apache2_module/CreateDirConfig.cpp +3 -2
- data/src/apache2_module/CreateDirConfig.cpp.erb +3 -2
- data/src/apache2_module/DirectoryMapper.h +3 -2
- data/src/apache2_module/Hooks.cpp +12 -11
- data/src/apache2_module/Hooks.h +3 -2
- data/src/apache2_module/MergeDirConfig.cpp +3 -2
- data/src/apache2_module/MergeDirConfig.cpp.erb +3 -2
- data/src/apache2_module/SetHeaders.cpp +3 -2
- data/src/apache2_module/SetHeaders.cpp.erb +3 -2
- data/src/apache2_module/mod_passenger.c +3 -2
- data/src/cxx_supportlib/AppTypes.cpp +3 -2
- data/src/cxx_supportlib/AppTypes.h +3 -2
- data/src/cxx_supportlib/BackgroundEventLoop.cpp +3 -2
- data/src/cxx_supportlib/BackgroundEventLoop.h +3 -2
- data/src/cxx_supportlib/Constants.h +4 -7
- data/src/cxx_supportlib/Constants.h.erb +3 -4
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +3 -2
- data/src/cxx_supportlib/DataStructures/LString.h +3 -2
- data/src/cxx_supportlib/DataStructures/StringKeyTable.h +3 -2
- data/src/cxx_supportlib/Exceptions.cpp +3 -2
- data/src/cxx_supportlib/Exceptions.h +3 -2
- data/src/cxx_supportlib/FileDescriptor.h +3 -2
- data/src/cxx_supportlib/Hooks.h +3 -2
- data/src/cxx_supportlib/InstanceDirectory.h +4 -3
- data/src/cxx_supportlib/Logging.cpp +3 -2
- data/src/cxx_supportlib/Logging.h +3 -2
- 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/MessageClient.h +3 -2
- data/src/cxx_supportlib/MessageReadersWriters.h +3 -2
- data/src/cxx_supportlib/RandomGenerator.h +3 -2
- data/src/cxx_supportlib/ResourceLocator.h +3 -2
- data/src/cxx_supportlib/SafeLibev.h +3 -2
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +3 -2
- data/src/cxx_supportlib/ServerKit/Channel.h +3 -2
- data/src/cxx_supportlib/ServerKit/Client.h +3 -2
- data/src/cxx_supportlib/ServerKit/ClientRef.h +3 -2
- data/src/cxx_supportlib/ServerKit/Context.h +3 -2
- data/src/cxx_supportlib/ServerKit/CookieUtils.h +3 -2
- data/src/cxx_supportlib/ServerKit/Errors.h +3 -2
- data/src/cxx_supportlib/ServerKit/FdSinkChannel.h +3 -2
- data/src/cxx_supportlib/ServerKit/FdSourceChannel.h +3 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +3 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedFdSinkChannel.h +3 -2
- data/src/cxx_supportlib/ServerKit/HeaderTable.h +3 -2
- data/src/cxx_supportlib/ServerKit/Hooks.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParser.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParserState.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpClient.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpRequest.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpRequestRef.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpServer.h +3 -2
- data/src/cxx_supportlib/ServerKit/Implementation.cpp +3 -2
- data/src/cxx_supportlib/ServerKit/Server.h +3 -2
- data/src/cxx_supportlib/StaticString.h +3 -2
- data/src/cxx_supportlib/UnionStationFilterSupport.cpp +3 -2
- data/src/cxx_supportlib/UnionStationFilterSupport.h +3 -2
- data/src/cxx_supportlib/Utils.cpp +3 -2
- data/src/cxx_supportlib/Utils.h +3 -2
- data/src/cxx_supportlib/Utils/AnsiColorConstants.h +3 -2
- data/src/cxx_supportlib/Utils/BlockingQueue.h +3 -2
- data/src/cxx_supportlib/Utils/BufferedIO.h +3 -2
- data/src/cxx_supportlib/Utils/CachedFileStat.cpp +3 -2
- data/src/cxx_supportlib/Utils/CachedFileStat.h +3 -2
- data/src/cxx_supportlib/Utils/CachedFileStat.hpp +3 -2
- data/src/cxx_supportlib/Utils/ClassUtils.h +20 -2
- data/src/cxx_supportlib/Utils/Curl.h +3 -2
- data/src/cxx_supportlib/Utils/DateParsing.h +3 -2
- data/src/cxx_supportlib/Utils/FastStringStream.h +3 -2
- data/src/cxx_supportlib/Utils/FileChangeChecker.h +3 -2
- data/src/cxx_supportlib/Utils/HashMap.h +3 -2
- data/src/cxx_supportlib/Utils/Hasher.cpp +3 -2
- data/src/cxx_supportlib/Utils/Hasher.h +3 -2
- data/src/cxx_supportlib/Utils/HttpConstants.h +3 -2
- data/src/cxx_supportlib/Utils/IOUtils.cpp +3 -2
- data/src/cxx_supportlib/Utils/IOUtils.h +3 -2
- data/src/cxx_supportlib/Utils/IniFile.h +3 -2
- data/src/cxx_supportlib/Utils/JsonUtils.h +3 -2
- data/src/cxx_supportlib/Utils/LargeFiles.h +3 -2
- data/src/cxx_supportlib/Utils/MemZeroGuard.h +3 -2
- data/src/cxx_supportlib/Utils/MemoryBarrier.h +3 -2
- data/src/cxx_supportlib/Utils/MessageIO.h +3 -2
- data/src/cxx_supportlib/Utils/MessagePassing.h +4 -3
- data/src/cxx_supportlib/Utils/OptionParsing.h +3 -2
- data/src/cxx_supportlib/Utils/ProcessMetricsCollector.h +3 -2
- data/src/cxx_supportlib/Utils/ScopeGuard.h +3 -2
- data/src/cxx_supportlib/Utils/SpeedMeter.h +3 -2
- data/src/cxx_supportlib/Utils/StrIntUtils.cpp +3 -2
- data/src/cxx_supportlib/Utils/StrIntUtils.h +3 -2
- data/src/cxx_supportlib/Utils/StrIntUtilsNoStrictAliasing.cpp +3 -2
- data/src/cxx_supportlib/Utils/StringMap.h +3 -2
- data/src/cxx_supportlib/Utils/StringScanning.h +3 -2
- data/src/cxx_supportlib/Utils/SystemMetricsCollector.h +3 -2
- data/src/cxx_supportlib/Utils/SystemTime.cpp +3 -2
- data/src/cxx_supportlib/Utils/SystemTime.h +3 -2
- data/src/cxx_supportlib/Utils/Timer.h +3 -2
- data/src/cxx_supportlib/Utils/VariantMap.h +3 -2
- data/src/cxx_supportlib/{AgentsStarter.cpp → WatchdogLauncher.cpp} +42 -41
- data/src/cxx_supportlib/{AgentsStarter.h → WatchdogLauncher.h} +99 -112
- 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/spin_lock_darwin.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/spin_lock_gcc_x86.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/spin_lock_portable.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/spin_lock_pthreads.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-modified/boost/regex/v4/regex_raw_buffer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +2 -2
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/Changes +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/LICENSE +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/Makefile.am +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/Makefile.in +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/README +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/aclocal.m4 +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/autogen.sh +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/config.guess +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/config.h.in +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/config.sub +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/configure +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/configure.ac +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/depcomp +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev++.h +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev.h +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_epoll.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_kqueue.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_poll.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_port.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_select.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_vars.h +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_win32.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ev_wrap.h +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/event.c +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/event.h +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/install-sh +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/libev.m4 +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/ltmain.sh +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/missing +0 -0
- data/src/cxx_supportlib/{vendor-copy → vendor-modified}/libev/mkinstalldirs +0 -0
- data/src/helper-scripts/backtrace-sanitizer.rb +3 -2
- data/src/helper-scripts/crash-watch.rb +1 -1
- data/src/helper-scripts/download_binaries/extconf.rb +3 -2
- data/src/helper-scripts/meteor-loader.rb +3 -2
- data/src/helper-scripts/node-loader.js +8 -5
- data/src/helper-scripts/prespawn +3 -2
- data/src/helper-scripts/rack-loader.rb +6 -3
- data/src/helper-scripts/rack-preloader.rb +6 -3
- data/src/helper-scripts/wsgi-loader.py +3 -2
- data/src/nginx_module/CacheLocationConfig.c +3 -2
- data/src/nginx_module/CacheLocationConfig.c.erb +3 -2
- data/src/nginx_module/Configuration.c +1 -1
- data/src/nginx_module/Configuration.h +1 -1
- data/src/nginx_module/ConfigurationCommands.c +3 -2
- data/src/nginx_module/ConfigurationCommands.c.erb +3 -2
- data/src/nginx_module/ConfigurationFields.h +3 -2
- data/src/nginx_module/ConfigurationFields.h.erb +3 -2
- data/src/nginx_module/ContentHandler.c +7 -7
- data/src/nginx_module/ContentHandler.h +1 -1
- data/src/nginx_module/CreateLocationConfig.c +3 -2
- data/src/nginx_module/CreateLocationConfig.c.erb +3 -2
- data/src/nginx_module/MergeLocationConfig.c +3 -2
- data/src/nginx_module/MergeLocationConfig.c.erb +3 -2
- data/src/nginx_module/StaticContentHandler.c +1 -1
- data/src/nginx_module/StaticContentHandler.h +1 -1
- data/src/nginx_module/config +1 -1
- data/src/nginx_module/ngx_http_passenger_module.c +46 -46
- data/src/nginx_module/ngx_http_passenger_module.h +3 -3
- data/src/nodejs_supportlib/phusion_passenger/line_reader.js +3 -2
- data/src/ruby_native_extension/extconf.rb +3 -2
- data/src/ruby_native_extension/passenger_native_support.c +6 -5
- data/src/ruby_supportlib/phusion_passenger.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/abstract_installer.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +6 -5
- data/src/ruby_supportlib/phusion_passenger/config/about_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/api_call_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/build_native_support_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/compile_agent_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/compile_nginx_engine_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/detach_process_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/install_agent_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/installation_utils.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/list_instances_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/main.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +25 -3
- data/src/ruby_supportlib/phusion_passenger/config/reopen_logs_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/config/system_metrics_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/utils.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/constants.rb +3 -11
- data/src/ruby_supportlib/phusion_passenger/debug_logging.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +21 -2
- data/src/ruby_supportlib/phusion_passenger/message_channel.rb +8 -2
- data/src/ruby_supportlib/phusion_passenger/message_client.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache_detector.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck.rb +6 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +61 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/zlib.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/plugin.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/public_api.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/rack/out_of_band_gc.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +18 -6
- data/src/ruby_supportlib/phusion_passenger/request_handler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +45 -18
- data/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/simple_benchmarking.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +8 -7
- data/src/ruby_supportlib/phusion_passenger/standalone/command.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/standalone/control_utils.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/main.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +23 -20
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/status_command.rb +8 -3
- data/src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb +8 -3
- data/src/ruby_supportlib/phusion_passenger/standalone/version_command.rb +5 -3
- data/src/ruby_supportlib/phusion_passenger/utils.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/ansi_colors.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/download.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/hosts_file_parser.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/lock.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/progress_bar.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/terminal_choice_menu.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +3 -2
- metadata +36 -37
- metadata.gz.asc +7 -7
- data/src/cxx_supportlib/Account.h +0 -171
- data/src/cxx_supportlib/AccountsDatabase.h +0 -125
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright (C) Igor Sysoev
|
3
3
|
* Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
|
4
|
-
* Copyright (
|
4
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
5
5
|
*
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
7
7
|
* modification, are permitted provided that the following conditions
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-2015 Phusion
|
3
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-2015 Phusion
|
3
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-2015 Phusion
|
3
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-2015 Phusion
|
3
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright (C) Igor Sysoev
|
3
3
|
* Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
|
4
|
-
* Copyright (
|
4
|
+
* Copyright (c) 2010 Phusion Holding B.V.
|
5
5
|
*
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
7
7
|
* modification, are permitted provided that the following conditions
|
data/src/nginx_module/config
CHANGED
@@ -58,7 +58,7 @@ NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
|
|
58
58
|
${ngx_addon_dir}/StaticContentHandler.h \
|
59
59
|
${ngx_addon_dir}/ngx_http_passenger_module.h \
|
60
60
|
${PASSENGER_INCLUDEDIR}/cxx_supportlib/Constants.h \
|
61
|
-
${PASSENGER_INCLUDEDIR}/cxx_supportlib/
|
61
|
+
${PASSENGER_INCLUDEDIR}/cxx_supportlib/WatchdogLauncher.h \
|
62
62
|
${PASSENGER_INCLUDEDIR}/cxx_supportlib/AppTypes.h"
|
63
63
|
CORE_INCS="$CORE_INCS $PASSENGER_INCLUDEDIR"
|
64
64
|
CORE_LIBS="$CORE_LIBS $PASSENGER_LIBS -lstdc++ -lpthread"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright (C) Igor Sysoev
|
3
3
|
* Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
|
4
|
-
* Copyright (
|
4
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
5
5
|
*
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
7
7
|
* modification, are permitted provided that the following conditions
|
@@ -52,7 +52,7 @@ ngx_str_t pp_schema_string;
|
|
52
52
|
ngx_str_t pp_placeholder_upstream_address;
|
53
53
|
PP_CachedFileStat *pp_stat_cache;
|
54
54
|
PP_AppTypeDetector *pp_app_type_detector;
|
55
|
-
|
55
|
+
PsgWatchdogLauncher *psg_watchdog_launcher = NULL;
|
56
56
|
ngx_cycle_t *pp_current_cycle;
|
57
57
|
|
58
58
|
|
@@ -105,11 +105,11 @@ ngx_str_null_terminate(ngx_str_t *str) {
|
|
105
105
|
}
|
106
106
|
|
107
107
|
static void
|
108
|
-
|
108
|
+
psg_variant_map_set_ngx_str(PsgVariantMap *m,
|
109
109
|
const char *name,
|
110
110
|
ngx_str_t *value)
|
111
111
|
{
|
112
|
-
|
112
|
+
psg_variant_map_set(m, name, (const char *) value->data, value->len);
|
113
113
|
}
|
114
114
|
|
115
115
|
/**
|
@@ -129,7 +129,7 @@ save_master_process_pid(ngx_cycle_t *cycle) {
|
|
129
129
|
FILE *f;
|
130
130
|
|
131
131
|
last = ngx_snprintf(filename, sizeof(filename) - 1, "%s/web_server_control_process.pid",
|
132
|
-
|
132
|
+
psg_watchdog_launcher_get_instance_dir(psg_watchdog_launcher, NULL));
|
133
133
|
*last = (u_char) '\0';
|
134
134
|
|
135
135
|
f = fopen((const char *) filename, "w");
|
@@ -247,14 +247,14 @@ start_watchdog(ngx_cycle_t *cycle) {
|
|
247
247
|
ngx_str_t *prestart_uris;
|
248
248
|
char **prestart_uris_ary = NULL;
|
249
249
|
ngx_keyval_t *ctl = NULL;
|
250
|
-
|
250
|
+
PsgVariantMap *params = NULL;
|
251
251
|
u_char filename[NGX_MAX_PATH], *last;
|
252
252
|
char *passenger_root = NULL;
|
253
253
|
char *error_message = NULL;
|
254
254
|
|
255
255
|
core_conf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
|
256
256
|
result = NGX_OK;
|
257
|
-
params =
|
257
|
+
params = psg_variant_map_new();
|
258
258
|
passenger_root = ngx_str_null_terminate(&passenger_main_conf.root_dir);
|
259
259
|
if (passenger_root == NULL) {
|
260
260
|
goto error_enomem;
|
@@ -277,35 +277,35 @@ start_watchdog(ngx_cycle_t *cycle) {
|
|
277
277
|
}
|
278
278
|
}
|
279
279
|
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
280
|
+
psg_variant_map_set_int (params, "web_server_control_process_pid", getpid());
|
281
|
+
psg_variant_map_set_strset (params, "web_server_config_files", (const char **) &config_file, 1);
|
282
|
+
psg_variant_map_set (params, "server_software", NGINX_VER, strlen(NGINX_VER));
|
283
|
+
psg_variant_map_set_bool (params, "multi_app", 1);
|
284
|
+
psg_variant_map_set_bool (params, "load_shell_envvars", 1);
|
285
|
+
psg_variant_map_set_int (params, "log_level", passenger_main_conf.log_level);
|
286
|
+
psg_variant_map_set_ngx_str(params, "file_descriptor_log_file", &passenger_main_conf.file_descriptor_log_file);
|
287
|
+
psg_variant_map_set_ngx_str(params, "data_buffer_dir", &passenger_main_conf.data_buffer_dir);
|
288
|
+
psg_variant_map_set_ngx_str(params, "instance_registry_dir", &passenger_main_conf.instance_registry_dir);
|
289
|
+
psg_variant_map_set_bool (params, "user_switching", passenger_main_conf.user_switching);
|
290
|
+
psg_variant_map_set_bool (params, "show_version_in_header", passenger_main_conf.show_version_in_header);
|
291
|
+
psg_variant_map_set_bool (params, "turbocaching", passenger_main_conf.turbocaching);
|
292
|
+
psg_variant_map_set_ngx_str(params, "default_user", &passenger_main_conf.default_user);
|
293
|
+
psg_variant_map_set_ngx_str(params, "default_group", &passenger_main_conf.default_group);
|
294
|
+
psg_variant_map_set_ngx_str(params, "default_ruby", &passenger_main_conf.default_ruby);
|
295
|
+
psg_variant_map_set_int (params, "max_pool_size", passenger_main_conf.max_pool_size);
|
296
|
+
psg_variant_map_set_int (params, "pool_idle_time", passenger_main_conf.pool_idle_time);
|
297
|
+
psg_variant_map_set_int (params, "response_buffer_high_watermark", passenger_main_conf.response_buffer_high_watermark);
|
298
|
+
psg_variant_map_set_int (params, "stat_throttle_rate", passenger_main_conf.stat_throttle_rate);
|
299
|
+
psg_variant_map_set_ngx_str(params, "analytics_log_user", &passenger_main_conf.analytics_log_user);
|
300
|
+
psg_variant_map_set_ngx_str(params, "analytics_log_group", &passenger_main_conf.analytics_log_group);
|
301
|
+
psg_variant_map_set_ngx_str(params, "union_station_gateway_address", &passenger_main_conf.union_station_gateway_address);
|
302
|
+
psg_variant_map_set_int (params, "union_station_gateway_port", passenger_main_conf.union_station_gateway_port);
|
303
|
+
psg_variant_map_set_ngx_str(params, "union_station_gateway_cert", &passenger_main_conf.union_station_gateway_cert);
|
304
|
+
psg_variant_map_set_ngx_str(params, "union_station_proxy_address", &passenger_main_conf.union_station_proxy_address);
|
305
|
+
psg_variant_map_set_strset (params, "prestart_urls", (const char **) prestart_uris_ary, passenger_main_conf.prestart_uris->nelts);
|
306
306
|
|
307
307
|
if (passenger_main_conf.log_file.len > 0) {
|
308
|
-
|
308
|
+
psg_variant_map_set_ngx_str(params, "log_file", &passenger_main_conf.log_file);
|
309
309
|
} else if (cycle->new_log.file == NULL) {
|
310
310
|
ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, "Cannot initialize " PROGRAM_NAME
|
311
311
|
" because Nginx is not configured with an error log file."
|
@@ -314,19 +314,19 @@ start_watchdog(ngx_cycle_t *cycle) {
|
|
314
314
|
result = NGX_ERROR;
|
315
315
|
goto cleanup;
|
316
316
|
} else if (cycle->new_log.file->name.len > 0) {
|
317
|
-
|
317
|
+
psg_variant_map_set_ngx_str(params, "log_file", &cycle->new_log.file->name);
|
318
318
|
} else if (cycle->log->file->name.len > 0) {
|
319
|
-
|
319
|
+
psg_variant_map_set_ngx_str(params, "log_file", &cycle->log->file->name);
|
320
320
|
}
|
321
321
|
|
322
322
|
ctl = (ngx_keyval_t *) passenger_main_conf.ctl->elts;
|
323
323
|
for (i = 0; i < passenger_main_conf.ctl->nelts; i++) {
|
324
|
-
|
324
|
+
psg_variant_map_set2(params,
|
325
325
|
(const char *) ctl[i].key.data, ctl[i].key.len - 1,
|
326
326
|
(const char *) ctl[i].value.data, ctl[i].value.len - 1);
|
327
327
|
}
|
328
328
|
|
329
|
-
ret =
|
329
|
+
ret = psg_watchdog_launcher_start(psg_watchdog_launcher,
|
330
330
|
passenger_root,
|
331
331
|
params,
|
332
332
|
starting_watchdog_after_fork,
|
@@ -344,7 +344,7 @@ start_watchdog(ngx_cycle_t *cycle) {
|
|
344
344
|
*/
|
345
345
|
last = ngx_snprintf(filename, sizeof(filename) - 1,
|
346
346
|
"%s/web_server_control_process.pid",
|
347
|
-
|
347
|
+
psg_watchdog_launcher_get_instance_dir(psg_watchdog_launcher, NULL));
|
348
348
|
*last = (u_char) '\0';
|
349
349
|
if (create_file(cycle, filename, (const u_char *) "", 0) != NGX_OK) {
|
350
350
|
result = NGX_ERROR;
|
@@ -359,7 +359,7 @@ start_watchdog(ngx_cycle_t *cycle) {
|
|
359
359
|
}
|
360
360
|
|
361
361
|
cleanup:
|
362
|
-
|
362
|
+
psg_variant_map_free(params);
|
363
363
|
free(passenger_root);
|
364
364
|
free(error_message);
|
365
365
|
free(config_file);
|
@@ -387,9 +387,9 @@ error_enomem:
|
|
387
387
|
*/
|
388
388
|
static void
|
389
389
|
shutdown_watchdog() {
|
390
|
-
if (
|
391
|
-
|
392
|
-
|
390
|
+
if (psg_watchdog_launcher != NULL) {
|
391
|
+
psg_watchdog_launcher_free(psg_watchdog_launcher);
|
392
|
+
psg_watchdog_launcher = NULL;
|
393
393
|
}
|
394
394
|
}
|
395
395
|
|
@@ -413,9 +413,9 @@ pre_config_init(ngx_conf_t *cf)
|
|
413
413
|
pp_placeholder_upstream_address.len = sizeof("unix:/passenger_core") - 1;
|
414
414
|
pp_stat_cache = pp_cached_file_stat_new(1024);
|
415
415
|
pp_app_type_detector = pp_app_type_detector_new(DEFAULT_STAT_THROTTLE_RATE);
|
416
|
-
|
416
|
+
psg_watchdog_launcher = psg_watchdog_launcher_new(IM_NGINX, &error_message);
|
417
417
|
|
418
|
-
if (
|
418
|
+
if (psg_watchdog_launcher == NULL) {
|
419
419
|
ngx_log_error(NGX_LOG_ALERT, cf->log, ngx_errno, "%s", error_message);
|
420
420
|
free(error_message);
|
421
421
|
return NGX_ERROR;
|
@@ -466,7 +466,7 @@ init_worker_process(ngx_cycle_t *cycle) {
|
|
466
466
|
|
467
467
|
core_conf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
|
468
468
|
if (core_conf->master) {
|
469
|
-
|
469
|
+
psg_watchdog_launcher_detach(psg_watchdog_launcher);
|
470
470
|
}
|
471
471
|
}
|
472
472
|
return NGX_OK;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright (C) Igor Sysoev
|
3
3
|
* Copyright (C) 2007 Manlio Perillo (manlio.perillo@gmail.com)
|
4
|
-
* Copyright (
|
4
|
+
* Copyright (c) 2010-2015 Phusion Holding B.V.
|
5
5
|
*
|
6
6
|
* Redistribution and use in source and binary forms, with or without
|
7
7
|
* modification, are permitted provided that the following conditions
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
#include <ngx_config.h>
|
32
32
|
#include <ngx_core.h>
|
33
|
-
#include "cxx_supportlib/
|
33
|
+
#include "cxx_supportlib/WatchdogLauncher.h"
|
34
34
|
#include "cxx_supportlib/AppTypes.h"
|
35
35
|
#include "cxx_supportlib/Utils/CachedFileStat.h"
|
36
36
|
|
@@ -57,7 +57,7 @@ extern PP_CachedFileStat *pp_stat_cache;
|
|
57
57
|
|
58
58
|
extern PP_AppTypeDetector *pp_app_type_detector;
|
59
59
|
|
60
|
-
extern
|
60
|
+
extern PsgWatchdogLauncher *psg_watchdog_launcher;
|
61
61
|
|
62
62
|
extern ngx_cycle_t *pp_current_cycle;
|
63
63
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2012-2014 Phusion
|
3
|
+
* Copyright (c) 2012-2014 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
2
|
-
# Copyright (c) 2010-2013 Phusion
|
2
|
+
# Copyright (c) 2010-2013 Phusion Holding B.V.
|
3
3
|
#
|
4
|
-
# "Phusion Passenger"
|
4
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
5
|
+
# trademarks of Phusion Holding B.V.
|
5
6
|
#
|
6
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
8
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
* Copyright (c) 2010-2014 Phusion
|
3
|
+
* Copyright (c) 2010-2014 Phusion Holding B.V.
|
4
4
|
*
|
5
|
-
* "Phusion Passenger"
|
5
|
+
* "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
* trademarks of Phusion Holding B.V.
|
6
7
|
*
|
7
8
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -332,13 +333,13 @@ f_generic_writev(VALUE fd, VALUE *array_of_components, unsigned int count) {
|
|
332
333
|
writev_wrapper_data.iov = groups[i].io_vectors;
|
333
334
|
writev_wrapper_data.iovcnt = groups[i].count;
|
334
335
|
#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
|
335
|
-
ret = (
|
336
|
+
ret = (ssize_t) rb_thread_call_without_gvl(writev_wrapper,
|
336
337
|
&writev_wrapper_data, RUBY_UBF_IO, NULL);
|
337
338
|
#elif defined(HAVE_RB_THREAD_IO_BLOCKING_REGION)
|
338
|
-
ret = (
|
339
|
+
ret = (ssize_t) rb_thread_io_blocking_region(writev_wrapper,
|
339
340
|
&writev_wrapper_data, fd_num);
|
340
341
|
#else
|
341
|
-
ret = (
|
342
|
+
ret = (ssize_t) rb_thread_blocking_region(writev_wrapper,
|
342
343
|
&writev_wrapper_data, RUBY_UBF_IO, 0);
|
343
344
|
#endif
|
344
345
|
#endif
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
# Copyright (c) 2010-2015 Phusion
|
3
|
+
# Copyright (c) 2010-2015 Phusion Holding B.V.
|
4
4
|
#
|
5
|
-
# "Phusion Passenger"
|
5
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
# trademarks of Phusion Holding B.V.
|
6
7
|
#
|
7
8
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -30,7 +31,7 @@ module PhusionPassenger
|
|
30
31
|
|
31
32
|
PACKAGE_NAME = 'passenger'
|
32
33
|
# Run 'rake src/cxx_supportlib/Constants.h' after changing this number.
|
33
|
-
VERSION_STRING = '5.0.
|
34
|
+
VERSION_STRING = '5.0.21'
|
34
35
|
|
35
36
|
PREFERRED_NGINX_VERSION = '1.8.0'
|
36
37
|
NGINX_SHA256_CHECKSUM = '23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5'
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
2
|
-
# Copyright (c) 2010-2015 Phusion
|
2
|
+
# Copyright (c) 2010-2015 Phusion Holding B.V.
|
3
3
|
#
|
4
|
-
# "Phusion Passenger"
|
4
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
5
|
+
# trademarks of Phusion Holding B.V.
|
5
6
|
#
|
6
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
8
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
2
|
-
# Copyright (c) 2010-2014 Phusion
|
2
|
+
# Copyright (c) 2010-2014 Phusion Holding B.V.
|
3
3
|
#
|
4
|
-
# "Phusion Passenger"
|
4
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
5
|
+
# trademarks of Phusion Holding B.V.
|
5
6
|
#
|
6
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
8
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
# Copyright (c) 2014 Phusion
|
3
|
+
# Copyright (c) 2014 Phusion Holding B.V.
|
4
4
|
#
|
5
|
-
# "Phusion Passenger"
|
5
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
# trademarks of Phusion Holding B.V.
|
6
7
|
#
|
7
8
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
# Copyright (c) 2014-2015 Phusion
|
3
|
+
# Copyright (c) 2014-2015 Phusion Holding B.V.
|
4
4
|
#
|
5
|
-
# "Phusion Passenger"
|
5
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
# trademarks of Phusion Holding B.V.
|
6
7
|
#
|
7
8
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# encoding: binary
|
2
2
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
3
|
-
# Copyright (c) 2010-2013 Phusion
|
3
|
+
# Copyright (c) 2010-2013 Phusion Holding B.V.
|
4
4
|
#
|
5
|
-
# "Phusion Passenger"
|
5
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
6
|
+
# trademarks of Phusion Holding B.V.
|
6
7
|
#
|
7
8
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
9
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Phusion Passenger - https://www.phusionpassenger.com/
|
2
|
-
# Copyright (c) 2014-2015 Phusion
|
2
|
+
# Copyright (c) 2014-2015 Phusion Holding B.V.
|
3
3
|
#
|
4
|
-
# "Phusion Passenger"
|
4
|
+
# "Passenger", "Phusion Passenger" and "Union Station" are registered
|
5
|
+
# trademarks of Phusion Holding B.V.
|
5
6
|
#
|
6
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
8
|
# of this software and associated documentation files (the "Software"), to deal
|