passenger 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- data/NEWS +137 -0
- data/Rakefile +101 -19
- data/bin/passenger-install-nginx-module +10 -3
- data/bin/passenger-make-enterprisey +1 -1
- data/doc/Users guide Apache.html +227 -92
- data/doc/Users guide Apache.txt +169 -75
- data/doc/Users guide Nginx.html +1 -1
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/Configuration_8h-source.html +373 -338
- data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
- data/doc/cxxapi/Hooks_8h-source.html +1 -1
- data/doc/cxxapi/annotated.html +1 -1
- data/doc/cxxapi/classHooks-members.html +1 -1
- data/doc/cxxapi/classHooks.html +2 -2
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
- data/doc/cxxapi/classes.html +1 -1
- data/doc/cxxapi/definitions_8h-source.html +1 -1
- data/doc/cxxapi/files.html +1 -1
- data/doc/cxxapi/functions.html +1 -1
- data/doc/cxxapi/functions_func.html +1 -1
- data/doc/cxxapi/graph_legend.html +1 -1
- data/doc/cxxapi/group__Configuration.html +1 -1
- data/doc/cxxapi/group__Core.html +1 -1
- data/doc/cxxapi/group__Hooks.html +1 -1
- data/doc/cxxapi/group__Support.html +1 -1
- data/doc/cxxapi/main.html +1 -1
- data/doc/cxxapi/modules.html +1 -1
- data/doc/rdoc/classes/ConditionVariable.html +59 -59
- data/doc/rdoc/classes/Exception.html +11 -11
- data/doc/rdoc/classes/GC.html +4 -4
- data/doc/rdoc/classes/IO.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger.html +1 -1
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +136 -136
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +254 -254
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +139 -139
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +61 -56
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +3 -3
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +7 -7
- data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +15 -15
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +119 -119
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +310 -312
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +169 -0
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
- data/doc/rdoc/classes/PlatformInfo.html +165 -164
- data/doc/rdoc/classes/Signal.html +23 -23
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -2
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +26 -28
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +34 -36
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +72 -68
- data/ext/apache2/Configuration.cpp +69 -15
- data/ext/apache2/Configuration.h +37 -2
- data/ext/apache2/Hooks.cpp +167 -59
- data/ext/common/ApplicationPoolServerExecutable.cpp +1 -1
- data/ext/common/MessageChannel.h +4 -4
- data/ext/common/StandardApplicationPool.h +1 -1
- data/ext/common/Timer.h +2 -0
- data/ext/common/Version.h +1 -1
- data/ext/nginx/Configuration.c +3 -3
- data/ext/nginx/ContentHandler.c +16 -4
- data/ext/nginx/HelperServer.cpp +1 -1
- data/ext/oxt/system_calls.cpp +6 -1
- data/ext/oxt/thread.hpp +17 -2
- data/ext/phusion_passenger/native_support.c +4 -4
- data/lib/phusion_passenger/abstract_request_handler.rb +3 -3
- data/lib/phusion_passenger/abstract_server.rb +1 -0
- data/lib/phusion_passenger/constants.rb +1 -1
- data/lib/phusion_passenger/message_channel.rb +1 -0
- data/lib/phusion_passenger/platform_info.rb +3 -2
- data/lib/phusion_passenger/rack/request_handler.rb +11 -7
- data/lib/phusion_passenger/railz/application_spawner.rb +7 -4
- data/lib/phusion_passenger/railz/request_handler.rb +1 -0
- data/lib/phusion_passenger/spawn_manager.rb +1 -0
- data/lib/phusion_passenger/utils.rb +38 -20
- data/test/integration_tests/apache2_tests.rb +162 -100
- data/test/integration_tests/mycook_spec.rb +63 -62
- data/test/integration_tests/nginx_tests.rb +12 -5
- data/test/ruby/utils_spec.rb +98 -14
- data/test/stub/apache2/httpd.conf.erb +2 -1
- data/test/stub/rails_apps/mycook/app/controllers/welcome_controller.rb +8 -0
- data/test/support/apache2_controller.rb +5 -1
- data/test/support/test_helper.rb +42 -13
- metadata +7 -137
@@ -78,7 +78,7 @@ Object
|
|
78
78
|
<div class="description"><p>
|
79
79
|
This class maintains a collection of <a
|
80
80
|
href="AbstractServer.html">AbstractServer</a> objects. One can add <a
|
81
|
-
href="AbstractServerCollection.html#
|
81
|
+
href="AbstractServerCollection.html#M000101">new</a> <a
|
82
82
|
href="AbstractServer.html">AbstractServer</a> objects, or look up existing
|
83
83
|
ones via a key. <a
|
84
84
|
href="AbstractServerCollection.html">AbstractServerCollection</a> also
|
@@ -106,18 +106,18 @@ followed.
|
|
106
106
|
|
107
107
|
<div class="sectiontitle">Methods</div>
|
108
108
|
<ul>
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
109
|
+
<li><a href="#M000108">check_idle_servers!</a></li>
|
110
|
+
<li><a href="#M000112">cleanup</a></li>
|
111
|
+
<li><a href="#M000111">clear</a></li>
|
112
|
+
<li><a href="#M000106">delete</a></li>
|
113
|
+
<li><a href="#M000109">each</a></li>
|
114
|
+
<li><a href="#M000110">each_pair</a></li>
|
115
|
+
<li><a href="#M000105">empty?</a></li>
|
116
|
+
<li><a href="#M000104">has_key?</a></li>
|
117
|
+
<li><a href="#M000103">lookup_or_add</a></li>
|
118
|
+
<li><a href="#M000101">new</a></li>
|
119
|
+
<li><a href="#M000107">register_activity</a></li>
|
120
|
+
<li><a href="#M000102">synchronize</a></li>
|
121
121
|
</ul>
|
122
122
|
|
123
123
|
<div class="sectiontitle">Included Modules</div>
|
@@ -142,11 +142,11 @@ followed.
|
|
142
142
|
<div class="sectiontitle">Public Class methods</div>
|
143
143
|
<div class="method">
|
144
144
|
<div class="title">
|
145
|
-
<a name="
|
145
|
+
<a name="M000101"></a><b>new</b>()
|
146
146
|
</div>
|
147
147
|
<div class="sourcecode">
|
148
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
149
|
-
<div id="
|
148
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p>
|
149
|
+
<div id="M000101_source" class="dyn-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 44</span>
|
152
152
|
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -186,7 +186,7 @@ followed.
|
|
186
186
|
<div class="sectiontitle">Public Instance methods</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000108"></a><b>check_idle_servers!</b>()
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
@@ -195,12 +195,12 @@ instead of sleeping until the next scheduled cleaning time.
|
|
195
195
|
</p>
|
196
196
|
<p>
|
197
197
|
Precondition: this method must NOT be called within a <a
|
198
|
-
href="AbstractServerCollection.html#
|
198
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
199
199
|
</p>
|
200
200
|
</div>
|
201
201
|
<div class="sourcecode">
|
202
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
203
|
-
<div id="
|
202
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
203
|
+
<div id="M000108_source" class="dyn-source">
|
204
204
|
<pre>
|
205
205
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 198</span>
|
206
206
|
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_idle_servers!</span>
|
@@ -215,7 +215,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
215
215
|
</div>
|
216
216
|
<div class="method">
|
217
217
|
<div class="title">
|
218
|
-
<a name="
|
218
|
+
<a name="M000112"></a><b>cleanup</b>()
|
219
219
|
</div>
|
220
220
|
<div class="description">
|
221
221
|
<p>
|
@@ -233,12 +233,12 @@ will become unusable.
|
|
233
233
|
</p>
|
234
234
|
<p>
|
235
235
|
Precondition: this method must <b>NOT</b> be called within a <a
|
236
|
-
href="AbstractServerCollection.html#
|
236
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
237
237
|
</p>
|
238
238
|
</div>
|
239
239
|
<div class="sourcecode">
|
240
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
241
|
-
<div id="
|
240
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
|
241
|
+
<div id="M000112_source" class="dyn-source">
|
242
242
|
<pre>
|
243
243
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 246</span>
|
244
244
|
246: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleanup</span>
|
@@ -258,7 +258,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
258
258
|
</div>
|
259
259
|
<div class="method">
|
260
260
|
<div class="title">
|
261
|
-
<a name="
|
261
|
+
<a name="M000111"></a><b>clear</b>()
|
262
262
|
</div>
|
263
263
|
<div class="description">
|
264
264
|
<p>
|
@@ -268,12 +268,12 @@ necessary.
|
|
268
268
|
</p>
|
269
269
|
<p>
|
270
270
|
Precondition: this method must be called within a <a
|
271
|
-
href="AbstractServerCollection.html#
|
271
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
272
272
|
</p>
|
273
273
|
</div>
|
274
274
|
<div class="sourcecode">
|
275
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
276
|
-
<div id="
|
275
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
|
276
|
+
<div id="M000111_source" class="dyn-source">
|
277
277
|
<pre>
|
278
278
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 228</span>
|
279
279
|
228: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
@@ -291,7 +291,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
291
291
|
</div>
|
292
292
|
<div class="method">
|
293
293
|
<div class="title">
|
294
|
-
<a name="
|
294
|
+
<a name="M000106"></a><b>delete</b>(key)
|
295
295
|
</div>
|
296
296
|
<div class="description">
|
297
297
|
<p>
|
@@ -306,12 +306,12 @@ will be stopped before deletion.
|
|
306
306
|
</p>
|
307
307
|
<p>
|
308
308
|
Precondition: this method must be called within a <a
|
309
|
-
href="AbstractServerCollection.html#
|
309
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
310
310
|
</p>
|
311
311
|
</div>
|
312
312
|
<div class="sourcecode">
|
313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
314
|
-
<div id="
|
313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
314
|
+
<div id="M000106_source" class="dyn-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 162</span>
|
317
317
|
162: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">key</span>)
|
@@ -333,7 +333,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
333
333
|
</div>
|
334
334
|
<div class="method">
|
335
335
|
<div class="title">
|
336
|
-
<a name="
|
336
|
+
<a name="M000109"></a><b>each</b>() {|server| ...}
|
337
337
|
</div>
|
338
338
|
<div class="description">
|
339
339
|
<p>
|
@@ -341,12 +341,12 @@ Iterate over all <a href="AbstractServer.html">AbstractServer</a> objects.
|
|
341
341
|
</p>
|
342
342
|
<p>
|
343
343
|
Precondition: this method must be called within a <a
|
344
|
-
href="AbstractServerCollection.html#
|
344
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
345
345
|
</p>
|
346
346
|
</div>
|
347
347
|
<div class="sourcecode">
|
348
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
349
|
-
<div id="
|
348
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
349
|
+
<div id="M000109_source" class="dyn-source">
|
350
350
|
<pre>
|
351
351
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 208</span>
|
352
352
|
208: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
@@ -360,7 +360,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
360
360
|
</div>
|
361
361
|
<div class="method">
|
362
362
|
<div class="title">
|
363
|
-
<a name="
|
363
|
+
<a name="M000110"></a><b>each_pair</b>() {|key, server| ...}
|
364
364
|
</div>
|
365
365
|
<div class="description">
|
366
366
|
<p>
|
@@ -369,12 +369,12 @@ href="AbstractServer.html">AbstractServer</a> objects.
|
|
369
369
|
</p>
|
370
370
|
<p>
|
371
371
|
Precondition: this method must be called within a <a
|
372
|
-
href="AbstractServerCollection.html#
|
372
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
373
373
|
</p>
|
374
374
|
</div>
|
375
375
|
<div class="sourcecode">
|
376
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
377
|
-
<div id="
|
376
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
|
377
|
+
<div id="M000110_source" class="dyn-source">
|
378
378
|
<pre>
|
379
379
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 217</span>
|
380
380
|
217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_pair</span>
|
@@ -389,7 +389,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
389
389
|
</div>
|
390
390
|
<div class="method">
|
391
391
|
<div class="title">
|
392
|
-
<a name="
|
392
|
+
<a name="M000105"></a><b>empty?</b>()
|
393
393
|
</div>
|
394
394
|
<div class="description">
|
395
395
|
<p>
|
@@ -397,12 +397,12 @@ Checks whether the collection is empty.
|
|
397
397
|
</p>
|
398
398
|
<p>
|
399
399
|
Precondition: this method must be called within a <a
|
400
|
-
href="AbstractServerCollection.html#
|
400
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
401
401
|
</p>
|
402
402
|
</div>
|
403
403
|
<div class="sourcecode">
|
404
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
405
|
-
<div id="
|
404
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
405
|
+
<div id="M000105_source" class="dyn-source">
|
406
406
|
<pre>
|
407
407
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 152</span>
|
408
408
|
152: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
@@ -414,7 +414,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
414
414
|
</div>
|
415
415
|
<div class="method">
|
416
416
|
<div class="title">
|
417
|
-
<a name="
|
417
|
+
<a name="M000104"></a><b>has_key?</b>(key)
|
418
418
|
</div>
|
419
419
|
<div class="description">
|
420
420
|
<p>
|
@@ -424,12 +424,12 @@ given key.
|
|
424
424
|
</p>
|
425
425
|
<p>
|
426
426
|
Precondition: this method must be called within a <a
|
427
|
-
href="AbstractServerCollection.html#
|
427
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
428
428
|
</p>
|
429
429
|
</div>
|
430
430
|
<div class="sourcecode">
|
431
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
432
|
-
<div id="
|
431
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
432
|
+
<div id="M000104_source" class="dyn-source">
|
433
433
|
<pre>
|
434
434
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 145</span>
|
435
435
|
145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
|
@@ -441,7 +441,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
441
441
|
</div>
|
442
442
|
<div class="method">
|
443
443
|
<div class="title">
|
444
|
-
<a name="
|
444
|
+
<a name="M000103"></a><b>lookup_or_add</b>(key) {|| ...}
|
445
445
|
</div>
|
446
446
|
<div class="description">
|
447
447
|
<p>
|
@@ -469,12 +469,12 @@ and the exception will be propagated.
|
|
469
469
|
</p>
|
470
470
|
<p>
|
471
471
|
Precondition: this method must be called within a <a
|
472
|
-
href="AbstractServerCollection.html#
|
472
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
473
473
|
</p>
|
474
474
|
</div>
|
475
475
|
<div class="sourcecode">
|
476
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
477
|
-
<div id="
|
476
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
|
477
|
+
<div id="M000103_source" class="dyn-source">
|
478
478
|
<pre>
|
479
479
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 119</span>
|
480
480
|
119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lookup_or_add</span>(<span class="ruby-identifier">key</span>)
|
@@ -505,7 +505,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
505
505
|
</div>
|
506
506
|
<div class="method">
|
507
507
|
<div class="title">
|
508
|
-
<a name="
|
508
|
+
<a name="M000107"></a><b>register_activity</b>(server)
|
509
509
|
</div>
|
510
510
|
<div class="description">
|
511
511
|
<p>
|
@@ -516,21 +516,21 @@ href="AbstractServerCollection.html">AbstractServerCollection</a> will
|
|
516
516
|
update the idle information associated with <tt>server</tt> accordingly.
|
517
517
|
</p>
|
518
518
|
<p>
|
519
|
-
<a href="AbstractServerCollection.html#
|
519
|
+
<a href="AbstractServerCollection.html#M000103">lookup_or_add</a> already
|
520
520
|
automatically updates idle information, so you only need to call this
|
521
521
|
method if the time at which the server has performed an activity is not
|
522
522
|
close to the time at which <a
|
523
|
-
href="AbstractServerCollection.html#
|
523
|
+
href="AbstractServerCollection.html#M000103">lookup_or_add</a> had been
|
524
524
|
called.
|
525
525
|
</p>
|
526
526
|
<p>
|
527
527
|
Precondition: this method must be called within a <a
|
528
|
-
href="AbstractServerCollection.html#
|
528
|
+
href="AbstractServerCollection.html#M000102">#synchronize</a> block.
|
529
529
|
</p>
|
530
530
|
</div>
|
531
531
|
<div class="sourcecode">
|
532
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
533
|
-
<div id="
|
532
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
533
|
+
<div id="M000107_source" class="dyn-source">
|
534
534
|
<pre>
|
535
535
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 185</span>
|
536
536
|
185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_activity</span>(<span class="ruby-identifier">server</span>)
|
@@ -547,7 +547,7 @@ href="AbstractServerCollection.html#M000098">#synchronize</a> block.
|
|
547
547
|
</div>
|
548
548
|
<div class="method">
|
549
549
|
<div class="title">
|
550
|
-
<a name="
|
550
|
+
<a name="M000102"></a><b>synchronize</b>() {|| ...}
|
551
551
|
</div>
|
552
552
|
<div class="description">
|
553
553
|
<p>
|
@@ -558,8 +558,8 @@ operation.
|
|
558
558
|
</p>
|
559
559
|
</div>
|
560
560
|
<div class="sourcecode">
|
561
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
562
|
-
<div id="
|
561
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
|
562
|
+
<div id="M000102_source" class="dyn-source">
|
563
563
|
<pre>
|
564
564
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_server_collection.rb, line 78</span>
|
565
565
|
78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">synchronize</span>
|
@@ -96,7 +96,7 @@ instance of <tt>SystemExit</tt>.
|
|
96
96
|
|
97
97
|
<div class="sectiontitle">Methods</div>
|
98
98
|
<ul>
|
99
|
-
<li><a href="#
|
99
|
+
<li><a href="#M000099">new</a></li>
|
100
100
|
</ul>
|
101
101
|
|
102
102
|
|
@@ -130,11 +130,11 @@ Any messages printed to stderr before the failure. May be nil.
|
|
130
130
|
<div class="sectiontitle">Public Class methods</div>
|
131
131
|
<div class="method">
|
132
132
|
<div class="title">
|
133
|
-
<a name="
|
133
|
+
<a name="M000099"></a><b>new</b>(message, child_exception = nil, app_type = "rails", stderr = nil)
|
134
134
|
</div>
|
135
135
|
<div class="sourcecode">
|
136
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
137
|
-
<div id="
|
136
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p>
|
137
|
+
<div id="M000099_source" class="dyn-source">
|
138
138
|
<pre>
|
139
139
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 66</span>
|
140
140
|
66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">child_exception</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">app_type</span> = <span class="ruby-value str">"rails"</span>, <span class="ruby-identifier">stderr</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -84,9 +84,9 @@ Represents a single application instance.
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
86
|
<ul>
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
87
|
+
<li><a href="#M000119">close</a></li>
|
88
|
+
<li><a href="#M000117">detect_framework_version</a></li>
|
89
|
+
<li><a href="#M000118">new</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
|
@@ -113,7 +113,7 @@ The root directory of this application, i.e. the directory that contains
|
|
113
113
|
<td class='attr-name'>listen_socket_name</td>
|
114
114
|
<td class='attr-desc'>
|
115
115
|
The name of the socket on which the application instance will accept <a
|
116
|
-
href="Application.html#
|
116
|
+
href="Application.html#M000118">new</a> connections. See
|
117
117
|
#listen_socket_type on how one should interpret this value.
|
118
118
|
|
119
119
|
</td>
|
@@ -156,7 +156,7 @@ The process ID of this application instance.
|
|
156
156
|
<div class="sectiontitle">Public Class methods</div>
|
157
157
|
<div class="method">
|
158
158
|
<div class="title">
|
159
|
-
<a name="
|
159
|
+
<a name="M000117"></a><b>detect_framework_version</b>(app_root)
|
160
160
|
</div>
|
161
161
|
<div class="description">
|
162
162
|
<ul>
|
@@ -176,8 +176,8 @@ Rails version is not installed.
|
|
176
176
|
</p>
|
177
177
|
</div>
|
178
178
|
<div class="sourcecode">
|
179
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
180
|
-
<div id="
|
179
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
180
|
+
<div id="M000117_source" class="dyn-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 55</span>
|
183
183
|
55: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">detect_framework_version</span>(<span class="ruby-identifier">app_root</span>)
|
@@ -223,18 +223,18 @@ Rails version is not installed.
|
|
223
223
|
</div>
|
224
224
|
<div class="method">
|
225
225
|
<div class="title">
|
226
|
-
<a name="
|
226
|
+
<a name="M000118"></a><b>new</b>(app_root, pid, listen_socket_name, listen_socket_type, owner_pipe)
|
227
227
|
</div>
|
228
228
|
<div class="description">
|
229
229
|
<p>
|
230
|
-
Creates a <a href="Application.html#
|
230
|
+
Creates a <a href="Application.html#M000118">new</a> instance of <a
|
231
231
|
href="Application.html">Application</a>. The parameters correspond with the
|
232
232
|
attributes of the same names. No exceptions will be thrown.
|
233
233
|
</p>
|
234
234
|
</div>
|
235
235
|
<div class="sourcecode">
|
236
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
237
|
-
<div id="
|
236
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
237
|
+
<div id="M000118_source" class="dyn-source">
|
238
238
|
<pre>
|
239
239
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 95</span>
|
240
240
|
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">app_root</span>, <span class="ruby-identifier">pid</span>, <span class="ruby-identifier">listen_socket_name</span>, <span class="ruby-identifier">listen_socket_type</span>, <span class="ruby-identifier">owner_pipe</span>)
|
@@ -251,7 +251,7 @@ attributes of the same names. No exceptions will be thrown.
|
|
251
251
|
<div class="sectiontitle">Public Instance methods</div>
|
252
252
|
<div class="method">
|
253
253
|
<div class="title">
|
254
|
-
<a name="
|
254
|
+
<a name="M000119"></a><b>close</b>()
|
255
255
|
</div>
|
256
256
|
<div class="description">
|
257
257
|
<p>
|
@@ -264,8 +264,8 @@ See also AbstractRequestHandler#owner_pipe.
|
|
264
264
|
</p>
|
265
265
|
</div>
|
266
266
|
<div class="sourcecode">
|
267
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
268
|
-
<div id="
|
267
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
268
|
+
<div id="M000119_source" class="dyn-source">
|
269
269
|
<pre>
|
270
270
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 108</span>
|
271
271
|
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -80,9 +80,9 @@ Object
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
82
|
<ul>
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
83
|
+
<li><a href="#M000131">[]=</a></li>
|
84
|
+
<li><a href="#M000130">new</a></li>
|
85
|
+
<li><a href="#M000132">result</a></li>
|
86
86
|
</ul>
|
87
87
|
|
88
88
|
|
@@ -106,11 +106,11 @@ Object
|
|
106
106
|
<div class="sectiontitle">Public Class methods</div>
|
107
107
|
<div class="method">
|
108
108
|
<div class="title">
|
109
|
-
<a name="
|
109
|
+
<a name="M000130"></a><b>new</b>(input, options = {})
|
110
110
|
</div>
|
111
111
|
<div class="sourcecode">
|
112
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
113
|
-
<div id="
|
112
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">show source</a> ]</p>
|
113
|
+
<div id="M000130_source" class="dyn-source">
|
114
114
|
<pre>
|
115
115
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/console_text_template.rb, line 30</span>
|
116
116
|
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">options</span> = {})
|
@@ -133,11 +133,11 @@ Object
|
|
133
133
|
<div class="sectiontitle">Public Instance methods</div>
|
134
134
|
<div class="method">
|
135
135
|
<div class="title">
|
136
|
-
<a name="
|
136
|
+
<a name="M000131"></a><b>[]=</b>(name, value)
|
137
137
|
</div>
|
138
138
|
<div class="sourcecode">
|
139
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
140
|
-
<div id="
|
139
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
140
|
+
<div id="M000131_source" class="dyn-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/console_text_template.rb, line 44</span>
|
143
143
|
44: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -150,11 +150,11 @@ Object
|
|
150
150
|
</div>
|
151
151
|
<div class="method">
|
152
152
|
<div class="title">
|
153
|
-
<a name="
|
153
|
+
<a name="M000132"></a><b>result</b>()
|
154
154
|
</div>
|
155
155
|
<div class="sourcecode">
|
156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
157
|
-
<div id="
|
156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
157
|
+
<div id="M000132_source" class="dyn-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/console_text_template.rb, line 49</span>
|
160
160
|
49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>
|