passenger 3.0.0.pre4 → 3.0.0

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.

Files changed (175) hide show
  1. data/bin/passenger-install-apache2-module +6 -6
  2. data/doc/Users guide Apache.html +1 -1
  3. data/doc/Users guide Nginx.html +1 -1
  4. data/doc/Users guide Standalone.html +1 -1
  5. data/doc/cxxapi/Constants_8h_source.html +1 -1
  6. data/doc/cxxapi/MessageServer_8h_source.html +416 -410
  7. data/doc/rdoc/classes/ConditionVariable.html +215 -0
  8. data/doc/rdoc/classes/Exception.html +120 -0
  9. data/doc/rdoc/classes/GC.html +113 -0
  10. data/doc/rdoc/classes/IO.html +221 -0
  11. data/doc/rdoc/classes/PhusionPassenger.html +397 -0
  12. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +180 -0
  13. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +647 -0
  14. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +654 -0
  15. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +92 -0
  16. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +97 -0
  17. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +96 -0
  18. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +97 -0
  19. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +96 -0
  20. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +619 -0
  21. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +142 -0
  22. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +368 -0
  23. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +231 -0
  24. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +588 -0
  25. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +92 -0
  26. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +92 -0
  27. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +147 -0
  28. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +279 -0
  29. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +92 -0
  30. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +92 -0
  31. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +123 -0
  32. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +92 -0
  33. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +341 -0
  34. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +294 -0
  35. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +199 -0
  36. data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +155 -0
  37. data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +367 -0
  38. data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +95 -0
  39. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +351 -0
  40. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +98 -0
  41. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +200 -0
  42. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +410 -0
  43. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +98 -0
  44. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +156 -0
  45. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +115 -0
  46. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +202 -0
  47. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +172 -0
  48. data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +273 -0
  49. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +145 -0
  50. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +162 -0
  51. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +141 -0
  52. data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +92 -0
  53. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +673 -0
  54. data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +92 -0
  55. data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +415 -0
  56. data/doc/rdoc/classes/PhusionPassenger/NativeSupportLoader.html +134 -0
  57. data/doc/rdoc/classes/PhusionPassenger/Packaging.html +129 -0
  58. data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +1809 -0
  59. data/doc/rdoc/classes/PhusionPassenger/Plugin.html +237 -0
  60. data/doc/rdoc/classes/PhusionPassenger/Rack.html +91 -0
  61. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +312 -0
  62. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +98 -0
  63. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +218 -0
  64. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +114 -0
  65. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +256 -0
  66. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +139 -0
  67. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +118 -0
  68. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +135 -0
  69. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +378 -0
  70. data/doc/rdoc/classes/PhusionPassenger/Standalone.html +111 -0
  71. data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +252 -0
  72. data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +161 -0
  73. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +368 -0
  74. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +132 -0
  75. data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +151 -0
  76. data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +189 -0
  77. data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +177 -0
  78. data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +341 -0
  79. data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +203 -0
  80. data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +156 -0
  81. data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +168 -0
  82. data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +86 -0
  83. data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +135 -0
  84. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +125 -0
  85. data/doc/rdoc/classes/PhusionPassenger/Utils.html +1550 -0
  86. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +204 -0
  87. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +171 -0
  88. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +140 -0
  89. data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +260 -0
  90. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +169 -0
  91. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +265 -0
  92. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +120 -0
  93. data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +561 -0
  94. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +140 -0
  95. data/doc/rdoc/classes/PhusionPassenger/WSGI.html +89 -0
  96. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +182 -0
  97. data/doc/rdoc/classes/Process.html +115 -0
  98. data/doc/rdoc/classes/Signal.html +139 -0
  99. data/doc/rdoc/created.rid +1 -0
  100. data/doc/rdoc/files/DEVELOPERS_TXT.html +276 -0
  101. data/doc/rdoc/files/README.html +157 -0
  102. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +130 -0
  103. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +135 -0
  104. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +126 -0
  105. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +128 -0
  106. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +126 -0
  107. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +132 -0
  108. data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +122 -0
  109. data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +129 -0
  110. data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +127 -0
  111. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +141 -0
  112. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +126 -0
  113. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +146 -0
  114. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +125 -0
  115. data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +132 -0
  116. data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +126 -0
  117. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +122 -0
  118. data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +122 -0
  119. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +147 -0
  120. data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +122 -0
  121. data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +127 -0
  122. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +120 -0
  123. data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +127 -0
  124. data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +132 -0
  125. data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +122 -0
  126. data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +127 -0
  127. data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +129 -0
  128. data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +126 -0
  129. data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +126 -0
  130. data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +126 -0
  131. data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +126 -0
  132. data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +127 -0
  133. data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +128 -0
  134. data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +126 -0
  135. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +122 -0
  136. data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +127 -0
  137. data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +127 -0
  138. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +137 -0
  139. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +125 -0
  140. data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +127 -0
  141. data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +122 -0
  142. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +160 -0
  143. data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +127 -0
  144. data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +135 -0
  145. data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +126 -0
  146. data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +126 -0
  147. data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +126 -0
  148. data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +127 -0
  149. data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +133 -0
  150. data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +136 -0
  151. data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +126 -0
  152. data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +126 -0
  153. data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +126 -0
  154. data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +127 -0
  155. data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +126 -0
  156. data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +120 -0
  157. data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +100 -0
  158. data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +122 -0
  159. data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +126 -0
  160. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +179 -0
  161. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +132 -0
  162. data/doc/rdoc/fr_class_index.html +138 -0
  163. data/doc/rdoc/fr_file_index.html +108 -0
  164. data/doc/rdoc/fr_method_index.html +430 -0
  165. data/doc/rdoc/index.html +26 -0
  166. data/doc/rdoc/rdoc-style.css +187 -0
  167. data/ext/apache2/HelperAgent.cpp +7 -1
  168. data/ext/common/Constants.h +1 -1
  169. data/ext/common/MessageServer.h +7 -1
  170. data/ext/nginx/StaticContentHandler.c +5 -13
  171. data/lib/phusion_passenger.rb +2 -2
  172. data/lib/phusion_passenger/standalone/start_command.rb +6 -6
  173. data/lib/phusion_passenger/templates/standalone/config.erb +2 -2
  174. metadata +168 -12
  175. data/ext/libev/config.h +0 -122
@@ -0,0 +1,26 @@
1
+
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <title>Passenger Ruby API</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ </head>
10
+
11
+ <frameset cols="20%,*">
12
+ <frameset rows="15%,55%,30%">
13
+ <frame src="fr_file_index.html" title="Files" name="Files" />
14
+ <frame src="fr_class_index.html" name="Classes" />
15
+ <frame src="fr_method_index.html" name="Methods" />
16
+ </frameset>
17
+ <frame src="files/README.html" name="docwin" />
18
+ <noframes>
19
+ <body bgcolor="white">
20
+ Click <a href="html/index.html">here</a> for a non-frames
21
+ version of this page.
22
+ </body>
23
+ </noframes>
24
+ </frameset>
25
+
26
+ </html>
@@ -0,0 +1,187 @@
1
+ a {
2
+ color: #00F;
3
+ text-decoration: none;
4
+ }
5
+
6
+ a:hover {
7
+ color: #77F;
8
+ text-decoration: underline;
9
+ }
10
+
11
+ body, td, p {
12
+ font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
13
+ background: #FFF;
14
+ color: #000;
15
+ margin: 0px;
16
+ font-size: small;
17
+ }
18
+
19
+ p {
20
+ margin-top: 0.5em;
21
+ margin-bottom: 0.5em;
22
+ }
23
+
24
+ #content {
25
+ margin: 2em;
26
+ margin-left: 3.5em;
27
+ margin-right: 3.5em;
28
+ }
29
+
30
+ #description p {
31
+ margin-bottom: 0.5em;
32
+ }
33
+
34
+ .sectiontitle {
35
+ margin-top: 1em;
36
+ margin-bottom: 1em;
37
+ padding: 0.5em;
38
+ padding-left: 2em;
39
+ background: #005;
40
+ color: #FFF;
41
+ font-weight: bold;
42
+ }
43
+
44
+ .attr-rw {
45
+ padding-left: 1em;
46
+ padding-right: 1em;
47
+ text-align: center;
48
+ color: #055;
49
+ }
50
+
51
+ .attr-name {
52
+ font-weight: bold;
53
+ }
54
+
55
+ .attr-desc {
56
+ }
57
+
58
+ .attr-value {
59
+ font-family: monospace;
60
+ }
61
+
62
+ .file-title-prefix {
63
+ font-size: large;
64
+ }
65
+
66
+ .file-title {
67
+ font-size: large;
68
+ font-weight: bold;
69
+ background: #005;
70
+ color: #FFF;
71
+ }
72
+
73
+ .banner {
74
+ background: #005;
75
+ color: #FFF;
76
+ border: 1px solid black;
77
+ padding: 1em;
78
+ }
79
+
80
+ .banner td {
81
+ background: transparent;
82
+ color: #FFF;
83
+ }
84
+
85
+ h1 a, h2 a, .sectiontitle a, .banner a {
86
+ color: #FF0;
87
+ }
88
+
89
+ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
90
+ color: #FF7;
91
+ }
92
+
93
+ .dyn-source {
94
+ display: none;
95
+ background: #fffde8;
96
+ color: #000;
97
+ border: #ffe0bb dotted 1px;
98
+ margin: 0.5em 2em 0.5em 2em;
99
+ padding: 0.5em;
100
+ }
101
+
102
+ .dyn-source .cmt {
103
+ color: #00F;
104
+ font-style: italic;
105
+ }
106
+
107
+ .dyn-source .kw {
108
+ color: #070;
109
+ font-weight: bold;
110
+ }
111
+
112
+ .method {
113
+ margin-left: 1em;
114
+ margin-right: 1em;
115
+ margin-bottom: 1em;
116
+ }
117
+
118
+ .description pre {
119
+ padding: 0.5em;
120
+ border: #ffe0bb dotted 1px;
121
+ background: #fffde8;
122
+ }
123
+
124
+ .method .title {
125
+ font-family: monospace;
126
+ font-size: large;
127
+ border-bottom: 1px dashed black;
128
+ margin-bottom: 0.3em;
129
+ padding-bottom: 0.1em;
130
+ }
131
+
132
+ .method .description, .method .sourcecode {
133
+ margin-left: 1em;
134
+ }
135
+
136
+ .description p, .sourcecode p {
137
+ margin-bottom: 0.5em;
138
+ }
139
+
140
+ .method .sourcecode p.source-link {
141
+ text-indent: 0em;
142
+ margin-top: 0.5em;
143
+ }
144
+
145
+ .method .aka {
146
+ margin-top: 0.3em;
147
+ margin-left: 1em;
148
+ font-style: italic;
149
+ text-indent: 2em;
150
+ }
151
+
152
+ h1 {
153
+ padding: 1em;
154
+ margin-left: -1.5em;
155
+ font-size: x-large;
156
+ font-weight: bold;
157
+ color: #FFF;
158
+ background: #007;
159
+ }
160
+
161
+ h2 {
162
+ padding: 0.5em 1em 0.5em 1em;
163
+ margin-left: -1.5em;
164
+ font-size: large;
165
+ font-weight: bold;
166
+ color: #FFF;
167
+ background: #009;
168
+ }
169
+
170
+ h3, h4, h5, h6 {
171
+ color: #220088;
172
+ border-bottom: #5522bb solid 1px;
173
+ }
174
+
175
+ .sourcecode > pre {
176
+ padding: 0.5em;
177
+ border: 1px dotted black;
178
+ background: #FFE;
179
+ }
180
+
181
+ dt {
182
+ font-weight: bold
183
+ }
184
+
185
+ dd {
186
+ margin-bottom: 0.7em;
187
+ }
@@ -126,7 +126,13 @@ public:
126
126
 
127
127
  class Server {
128
128
  private:
129
- static const unsigned int MESSAGE_SERVER_STACK_SIZE = 64 * 1024;
129
+ static const unsigned int MESSAGE_SERVER_STACK_SIZE =
130
+ #ifdef __FreeBSD__
131
+ // localtime() on FreeBSD needs some more stack space.
132
+ 1024 * 96;
133
+ #else
134
+ 1024 * 64;
135
+ #endif
130
136
 
131
137
  ServerInstanceDir serverInstanceDir;
132
138
  ServerInstanceDir::GenerationPtr generation;
@@ -26,7 +26,7 @@
26
26
  #define _PASSENGER_CONSTANTS_H_
27
27
 
28
28
  /* Don't forget to update lib/phusion_passenger.rb too. */
29
- #define PASSENGER_VERSION "3.0.0.pre4"
29
+ #define PASSENGER_VERSION "3.0.0"
30
30
 
31
31
  #define FEEDBACK_FD 3
32
32
 
@@ -157,7 +157,13 @@ using namespace oxt;
157
157
  */
158
158
  class MessageServer {
159
159
  public:
160
- static const unsigned int CLIENT_THREAD_STACK_SIZE = 64 * 1024;
160
+ static const unsigned int CLIENT_THREAD_STACK_SIZE =
161
+ #ifdef __FreeBSD__
162
+ // localtime() on FreeBSD needs some more stack space.
163
+ 1024 * 96;
164
+ #else
165
+ 1024 * 64;
166
+ #endif
161
167
 
162
168
  /** Interface for client context objects. */
163
169
  class ClientContext {
@@ -82,14 +82,10 @@ passenger_static_content_handler(ngx_http_request_t *r, ngx_str_t *filename)
82
82
  clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
83
83
 
84
84
  ngx_memzero(&of, sizeof(ngx_open_file_info_t));
85
- #if NGINX_VERSION_NUM < 7000
86
- of.test_dir = 0;
87
- #else
88
- #if NGX_VERSION_NUM >= 8000
89
- of.read_ahead = clcf->read_ahead;
90
- #endif
91
- of.directio = clcf->directio;
85
+ #if NGX_VERSION_NUM >= 8000
86
+ of.read_ahead = clcf->read_ahead;
92
87
  #endif
88
+ of.directio = clcf->directio;
93
89
  of.valid = clcf->open_file_cache_valid;
94
90
  of.min_uses = clcf->open_file_cache_min_uses;
95
91
  of.errors = clcf->open_file_cache_errors;
@@ -157,11 +153,7 @@ passenger_static_content_handler(ngx_http_request_t *r, ngx_str_t *filename)
157
153
  len += r->args.len + 1;
158
154
  }
159
155
 
160
- #if NGINX_VERSION_NUM < 7000
161
- location = ngx_palloc(r->pool, len);
162
- #else
163
- location = ngx_pnalloc(r->pool, len);
164
- #endif
156
+ location = ngx_pnalloc(r->pool, len);
165
157
  if (location == NULL) {
166
158
  return NGX_HTTP_INTERNAL_SERVER_ERROR;
167
159
  }
@@ -190,7 +182,7 @@ passenger_static_content_handler(ngx_http_request_t *r, ngx_str_t *filename)
190
182
  #if !(NGX_WIN32) /* the not regular files are probably Unix specific */
191
183
 
192
184
  if (!of.is_file) {
193
- ngx_log_error(NGX_LOG_CRIT, log, ngx_errno,
185
+ ngx_log_error(NGX_LOG_CRIT, log, 0,
194
186
  "\"%s\" is not a regular file", filename->data);
195
187
 
196
188
  return NGX_HTTP_NOT_FOUND;
@@ -25,9 +25,9 @@ module PhusionPassenger
25
25
  ###### Version numbers ######
26
26
 
27
27
  # Phusion Passenger version number. Don't forget to edit ext/common/Constants.h too.
28
- VERSION_STRING = '3.0.0.pre4'
28
+ VERSION_STRING = '3.0.0'
29
29
 
30
- PREFERRED_NGINX_VERSION = '0.7.67'
30
+ PREFERRED_NGINX_VERSION = '0.8.52'
31
31
  PREFERRED_PCRE_VERSION = '8.10'
32
32
  STANDALONE_INTERFACE_VERSION = 1
33
33
 
@@ -484,16 +484,16 @@ private
484
484
 
485
485
  #### Config file template helpers ####
486
486
 
487
- def nginx_listen_address(for_ping_port = false)
488
- if @options[:socket_file]
489
- return "unix:" + File.expand_path(@options[:socket_file])
487
+ def nginx_listen_address(options = @options, for_ping_port = false)
488
+ if options[:socket_file]
489
+ return "unix:" + File.expand_path(options[:socket_file])
490
490
  else
491
491
  if for_ping_port
492
- port = @options[:ping_port]
492
+ port = options[:ping_port]
493
493
  else
494
- port = @options[:port]
494
+ port = options[:port]
495
495
  end
496
- return "#{@options[:address]}:#{port}"
496
+ return "#{options[:address]}:#{port}"
497
497
  end
498
498
  end
499
499
 
@@ -41,14 +41,14 @@ http {
41
41
 
42
42
  <% if @options[:ping_port] %>
43
43
  server {
44
- listen <%= nginx_listen_address(true) %>;
44
+ listen <%= nginx_listen_address(@options, true) %>;
45
45
  root '<%= LIBDIR %>/phusion_passenger/templates/standalone_default_root';
46
46
  }
47
47
  <% end %>
48
48
 
49
49
  <% for app in @apps %>
50
50
  server {
51
- listen <%= @options[:address] %>:<%= @options[:port] %>;
51
+ listen <%= nginx_listen_address(app) %>;
52
52
  server_name <%= app[:server_names].join(' ') %>;
53
53
  root '<%= app[:root] %>/public';
54
54
  passenger_enabled on;
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1876988209
5
- prerelease: true
4
+ hash: 7
5
+ prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
- - pre4
11
- version: 3.0.0.pre4
10
+ version: 3.0.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Phusion - http://www.phusion.nl/
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-10-01 00:00:00 +02:00
18
+ date: 2010-10-18 00:00:00 +02:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -735,6 +734,166 @@ files:
735
734
  - doc/images/spawn_server_architecture.svg
736
735
  - doc/images/typical_isolated_web_application.png
737
736
  - doc/images/typical_isolated_web_application.svg
737
+ - doc/rdoc/classes/ConditionVariable.html
738
+ - doc/rdoc/classes/Exception.html
739
+ - doc/rdoc/classes/GC.html
740
+ - doc/rdoc/classes/IO.html
741
+ - doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html
742
+ - doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html
743
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html
744
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html
745
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html
746
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html
747
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html
748
+ - doc/rdoc/classes/PhusionPassenger/AbstractServer.html
749
+ - doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html
750
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html
751
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html
752
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html
753
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html
754
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html
755
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html
756
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html
757
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html
758
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html
759
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html
760
+ - doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html
761
+ - doc/rdoc/classes/PhusionPassenger/AdminTools.html
762
+ - doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html
763
+ - doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html
764
+ - doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html
765
+ - doc/rdoc/classes/PhusionPassenger/AppInitError.html
766
+ - doc/rdoc/classes/PhusionPassenger/AppProcess.html
767
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html
768
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html
769
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html
770
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html
771
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html
772
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html
773
+ - doc/rdoc/classes/PhusionPassenger/ClassicRails.html
774
+ - doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html
775
+ - doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html
776
+ - doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html
777
+ - doc/rdoc/classes/PhusionPassenger/DebugLogging.html
778
+ - doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html
779
+ - doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html
780
+ - doc/rdoc/classes/PhusionPassenger/InitializationError.html
781
+ - doc/rdoc/classes/PhusionPassenger/InvalidPath.html
782
+ - doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html
783
+ - doc/rdoc/classes/PhusionPassenger/MessageChannel.html
784
+ - doc/rdoc/classes/PhusionPassenger/MessageClient.html
785
+ - doc/rdoc/classes/PhusionPassenger/NativeSupportLoader.html
786
+ - doc/rdoc/classes/PhusionPassenger/Packaging.html
787
+ - doc/rdoc/classes/PhusionPassenger/PlatformInfo.html
788
+ - doc/rdoc/classes/PhusionPassenger/Plugin.html
789
+ - doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html
790
+ - doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html
791
+ - doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html
792
+ - doc/rdoc/classes/PhusionPassenger/Rack.html
793
+ - doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html
794
+ - doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html
795
+ - doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html
796
+ - doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html
797
+ - doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html
798
+ - doc/rdoc/classes/PhusionPassenger/SpawnManager.html
799
+ - doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html
800
+ - doc/rdoc/classes/PhusionPassenger/Standalone/Command.html
801
+ - doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html
802
+ - doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html
803
+ - doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html
804
+ - doc/rdoc/classes/PhusionPassenger/Standalone/Main.html
805
+ - doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html
806
+ - doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html
807
+ - doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html
808
+ - doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html
809
+ - doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html
810
+ - doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html
811
+ - doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html
812
+ - doc/rdoc/classes/PhusionPassenger/Standalone.html
813
+ - doc/rdoc/classes/PhusionPassenger/UnknownError.html
814
+ - doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html
815
+ - doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html
816
+ - doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html
817
+ - doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html
818
+ - doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html
819
+ - doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html
820
+ - doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html
821
+ - doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html
822
+ - doc/rdoc/classes/PhusionPassenger/Utils.html
823
+ - doc/rdoc/classes/PhusionPassenger/VersionNotFound.html
824
+ - doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html
825
+ - doc/rdoc/classes/PhusionPassenger/WSGI.html
826
+ - doc/rdoc/classes/PhusionPassenger.html
827
+ - doc/rdoc/classes/Process.html
828
+ - doc/rdoc/classes/Signal.html
829
+ - doc/rdoc/created.rid
830
+ - doc/rdoc/files/DEVELOPERS_TXT.html
831
+ - doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html
832
+ - doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html
833
+ - doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html
834
+ - doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html
835
+ - doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html
836
+ - doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html
837
+ - doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html
838
+ - doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html
839
+ - doc/rdoc/files/lib/phusion_passenger/app_process_rb.html
840
+ - doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html
841
+ - doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html
842
+ - doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html
843
+ - doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html
844
+ - doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html
845
+ - doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html
846
+ - doc/rdoc/files/lib/phusion_passenger/constants_rb.html
847
+ - doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html
848
+ - doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html
849
+ - doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html
850
+ - doc/rdoc/files/lib/phusion_passenger/html_template_rb.html
851
+ - doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html
852
+ - doc/rdoc/files/lib/phusion_passenger/message_client_rb.html
853
+ - doc/rdoc/files/lib/phusion_passenger/native_support_rb.html
854
+ - doc/rdoc/files/lib/phusion_passenger/packaging_rb.html
855
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html
856
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html
857
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html
858
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html
859
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html
860
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html
861
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html
862
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html
863
+ - doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html
864
+ - doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html
865
+ - doc/rdoc/files/lib/phusion_passenger/plugin_rb.html
866
+ - doc/rdoc/files/lib/phusion_passenger/public_api_rb.html
867
+ - doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html
868
+ - doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html
869
+ - doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html
870
+ - doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html
871
+ - doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html
872
+ - doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html
873
+ - doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html
874
+ - doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html
875
+ - doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html
876
+ - doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html
877
+ - doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html
878
+ - doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html
879
+ - doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html
880
+ - doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html
881
+ - doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html
882
+ - doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html
883
+ - doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html
884
+ - doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html
885
+ - doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html
886
+ - doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html
887
+ - doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html
888
+ - doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html
889
+ - doc/rdoc/files/lib/phusion_passenger/utils_rb.html
890
+ - doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html
891
+ - doc/rdoc/files/README.html
892
+ - doc/rdoc/fr_class_index.html
893
+ - doc/rdoc/fr_file_index.html
894
+ - doc/rdoc/fr_method_index.html
895
+ - doc/rdoc/index.html
896
+ - doc/rdoc/rdoc-style.css
738
897
  - doc/Security of user switching support.html
739
898
  - doc/Security of user switching support.txt
740
899
  - doc/template/horo.rb
@@ -1498,7 +1657,6 @@ files:
1498
1657
  - ext/libev/ltmain.sh
1499
1658
  - ext/libev/missing
1500
1659
  - ext/libev/mkinstalldirs
1501
- - ext/libev/config.h
1502
1660
  - ext/libev/ev++.h
1503
1661
  - ext/libev/ev.h
1504
1662
  - ext/libev/ev_vars.h
@@ -1951,14 +2109,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1951
2109
  required_rubygems_version: !ruby/object:Gem::Requirement
1952
2110
  none: false
1953
2111
  requirements:
1954
- - - ">"
2112
+ - - ">="
1955
2113
  - !ruby/object:Gem::Version
1956
- hash: 25
2114
+ hash: 3
1957
2115
  segments:
1958
- - 1
1959
- - 3
1960
- - 1
1961
- version: 1.3.1
2116
+ - 0
2117
+ version: "0"
1962
2118
  requirements: []
1963
2119
 
1964
2120
  rubyforge_project: passenger