passenger 2.2.5 → 2.2.6
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 +31 -1
- data/bin/passenger-install-apache2-module +7 -1
- data/bin/passenger-install-nginx-module +1 -1
- data/bin/passenger-memory-stats +3 -3
- data/doc/Users guide Apache.html +112 -13
- data/doc/Users guide Apache.txt +70 -9
- data/doc/Users guide Nginx.html +1 -1
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/Configuration_8h-source.html +1 -1
- data/doc/cxxapi/DirectoryMapper_8h-source.html +7 -7
- 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 +1 -1
- 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 +13 -13
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +32 -32
- 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 +42 -42
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +24 -24
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +62 -66
- data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +23 -23
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +30 -30
- data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +384 -384
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +36 -36
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +7 -7
- data/doc/rdoc/classes/PlatformInfo.html +234 -200
- data/doc/rdoc/classes/RakeExtensions.html +4 -4
- data/doc/rdoc/classes/Signal.html +27 -27
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
- 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 +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -3
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +10 -9
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +148 -147
- data/ext/apache2/DirectoryMapper.h +6 -6
- data/ext/common/Utils.cpp +31 -5
- data/ext/common/Version.h +1 -1
- data/ext/nginx/Configuration.c +4 -8
- data/ext/nginx/Configuration.h +2 -2
- data/ext/nginx/ContentHandler.c +11 -7
- data/ext/oxt/thread.hpp +12 -11
- data/lib/phusion_passenger/constants.rb +1 -1
- data/lib/phusion_passenger/dependencies.rb +40 -25
- data/lib/phusion_passenger/platform_info.rb +28 -11
- data/lib/phusion_passenger/railz/application_spawner.rb +3 -7
- data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +7 -4
- data/lib/phusion_passenger/utils.rb +1 -0
- data/test/integration_tests/apache2_tests.rb +16 -0
- data/test/integration_tests/nginx_tests.rb +46 -0
- data/test/stub/MessageServer.dSYM/Contents/Info.plist +25 -0
- data/test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer +0 -0
- data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
- metadata +4 -2
@@ -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="#M000103">close</a></li>
|
88
|
+
<li><a href="#M000101">detect_framework_version</a></li>
|
89
|
+
<li><a href="#M000102">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#M000102">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="M000101"></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('M000101_source')" id="l_M000101_source">show source</a> ]</p>
|
180
|
+
<div id="M000101_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="M000102"></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#M000102">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('M000102_source')" id="l_M000102_source">show source</a> ]</p>
|
237
|
+
<div id="M000102_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="M000103"></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('M000103_source')" id="l_M000103_source">show source</a> ]</p>
|
268
|
+
<div id="M000103_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="#M000158">[]=</a></li>
|
84
|
+
<li><a href="#M000157">new</a></li>
|
85
|
+
<li><a href="#M000159">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="M000157"></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('M000157_source')" id="l_M000157_source">show source</a> ]</p>
|
113
|
+
<div id="M000157_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="M000158"></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('M000158_source')" id="l_M000158_source">show source</a> ]</p>
|
140
|
+
<div id="M000158_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="M000159"></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('M000159_source')" id="l_M000159_source">show source</a> ]</p>
|
157
|
+
<div id="M000159_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>
|
@@ -90,7 +90,7 @@ attribute is guaranteed non-nil.
|
|
90
90
|
|
91
91
|
<div class="sectiontitle">Methods</div>
|
92
92
|
<ul>
|
93
|
-
<li><a href="#
|
93
|
+
<li><a href="#M000100">new</a></li>
|
94
94
|
</ul>
|
95
95
|
|
96
96
|
|
@@ -118,11 +118,11 @@ attribute is guaranteed non-nil.
|
|
118
118
|
<div class="sectiontitle">Public Class methods</div>
|
119
119
|
<div class="method">
|
120
120
|
<div class="title">
|
121
|
-
<a name="
|
121
|
+
<a name="M000100"></a><b>new</b>(message, child_exception, options)
|
122
122
|
</div>
|
123
123
|
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
125
|
-
<div id="
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
|
125
|
+
<div id="M000100_source" class="dyn-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 80</span>
|
128
128
|
80: <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-identifier">options</span>)
|
@@ -84,9 +84,9 @@ A convenience utility class for rendering our error pages.
|
|
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="#M000117">[]=</a></li>
|
88
|
+
<li><a href="#M000116">new</a></li>
|
89
|
+
<li><a href="#M000118">result</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
<div class="sectiontitle">Included Modules</div>
|
@@ -114,11 +114,11 @@ A convenience utility class for rendering our error pages.
|
|
114
114
|
<div class="sectiontitle">Public Class methods</div>
|
115
115
|
<div class="method">
|
116
116
|
<div class="title">
|
117
|
-
<a name="
|
117
|
+
<a name="M000116"></a><b>new</b>(template_name, options = {})
|
118
118
|
</div>
|
119
119
|
<div class="sourcecode">
|
120
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
121
|
-
<div id="
|
120
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
|
121
|
+
<div id="M000116_source" class="dyn-source">
|
122
122
|
<pre>
|
123
123
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 33</span>
|
124
124
|
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">template_name</span>, <span class="ruby-identifier">options</span> = {})
|
@@ -136,11 +136,11 @@ A convenience utility class for rendering our error pages.
|
|
136
136
|
<div class="sectiontitle">Public Instance methods</div>
|
137
137
|
<div class="method">
|
138
138
|
<div class="title">
|
139
|
-
<a name="
|
139
|
+
<a name="M000117"></a><b>[]=</b>(name, value)
|
140
140
|
</div>
|
141
141
|
<div class="sourcecode">
|
142
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
143
|
-
<div id="
|
142
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
143
|
+
<div id="M000117_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 42</span>
|
146
146
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -153,11 +153,11 @@ A convenience utility class for rendering our error pages.
|
|
153
153
|
</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000118"></a><b>result</b>()
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
160
|
+
<div id="M000118_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 47</span>
|
163
163
|
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>
|
@@ -86,7 +86,7 @@ the failure when initializing something.
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
88
88
|
<ul>
|
89
|
-
<li><a href="#
|
89
|
+
<li><a href="#M000156">new</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
|
@@ -110,19 +110,19 @@ The exception that caused initialization to fail. This may be nil.
|
|
110
110
|
<div class="sectiontitle">Public Class methods</div>
|
111
111
|
<div class="method">
|
112
112
|
<div class="title">
|
113
|
-
<a name="
|
113
|
+
<a name="M000156"></a><b>new</b>(message, child_exception = nil)
|
114
114
|
</div>
|
115
115
|
<div class="description">
|
116
116
|
<p>
|
117
|
-
Create a <a href="InitializationError.html#
|
117
|
+
Create a <a href="InitializationError.html#M000156">new</a> <a
|
118
118
|
href="InitializationError.html">InitializationError</a>. <tt>message</tt>
|
119
119
|
is the error message, and <tt>child_exception</tt> is the exception that
|
120
120
|
caused initialization to fail.
|
121
121
|
</p>
|
122
122
|
</div>
|
123
123
|
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
125
|
-
<div id="
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">show source</a> ]</p>
|
125
|
+
<div id="M000156_source" class="dyn-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 48</span>
|
128
128
|
48: <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>)
|
@@ -134,8 +134,8 @@ The life time of a <a href="MessageChannel.html">MessageChannel</a> is
|
|
134
134
|
independent from that of the wrapped <a href="../IO.html">IO</a> object. If
|
135
135
|
a <a href="MessageChannel.html">MessageChannel</a> object is destroyed, the
|
136
136
|
underlying <a href="../IO.html">IO</a> object is not automatically closed.
|
137
|
-
Call <a href="MessageChannel.html#
|
138
|
-
href="MessageChannel.html#
|
137
|
+
Call <a href="MessageChannel.html#M000147">close</a>() if you want to <a
|
138
|
+
href="MessageChannel.html#M000147">close</a> the underlying <a
|
139
139
|
href="../IO.html">IO</a> object.
|
140
140
|
</p>
|
141
141
|
<p>
|
@@ -154,15 +154,15 @@ things in the wrong order then bad things will happen.
|
|
154
154
|
|
155
155
|
<div class="sectiontitle">Methods</div>
|
156
156
|
<ul>
|
157
|
-
<li><a href="#
|
158
|
-
<li><a href="#
|
159
|
-
<li><a href="#
|
160
|
-
<li><a href="#
|
161
|
-
<li><a href="#
|
162
|
-
<li><a href="#
|
163
|
-
<li><a href="#
|
164
|
-
<li><a href="#
|
165
|
-
<li><a href="#
|
157
|
+
<li><a href="#M000147">close</a></li>
|
158
|
+
<li><a href="#M000146">fileno</a></li>
|
159
|
+
<li><a href="#M000139">new</a></li>
|
160
|
+
<li><a href="#M000140">read</a></li>
|
161
|
+
<li><a href="#M000141">read_scalar</a></li>
|
162
|
+
<li><a href="#M000144">recv_io</a></li>
|
163
|
+
<li><a href="#M000145">send_io</a></li>
|
164
|
+
<li><a href="#M000142">write</a></li>
|
165
|
+
<li><a href="#M000143">write_scalar</a></li>
|
166
166
|
</ul>
|
167
167
|
|
168
168
|
|
@@ -186,18 +186,18 @@ The wrapped <a href="../IO.html">IO</a> object.
|
|
186
186
|
<div class="sectiontitle">Public Class methods</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000139"></a><b>new</b>(io)
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
193
|
-
Create a <a href="MessageChannel.html#
|
193
|
+
Create a <a href="MessageChannel.html#M000139">new</a> <a
|
194
194
|
href="MessageChannel.html">MessageChannel</a> by wrapping the given <a
|
195
195
|
href="../IO.html">IO</a> object.
|
196
196
|
</p>
|
197
197
|
</div>
|
198
198
|
<div class="sourcecode">
|
199
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
200
|
-
<div id="
|
199
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
200
|
+
<div id="M000139_source" class="dyn-source">
|
201
201
|
<pre>
|
202
202
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 83</span>
|
203
203
|
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">io</span>)
|
@@ -210,7 +210,7 @@ href="../IO.html">IO</a> object.
|
|
210
210
|
<div class="sectiontitle">Public Instance methods</div>
|
211
211
|
<div class="method">
|
212
212
|
<div class="title">
|
213
|
-
<a name="
|
213
|
+
<a name="M000147"></a><b>close</b>()
|
214
214
|
</div>
|
215
215
|
<div class="description">
|
216
216
|
<p>
|
@@ -219,8 +219,8 @@ SystemCallError or IOError when something goes wrong.
|
|
219
219
|
</p>
|
220
220
|
</div>
|
221
221
|
<div class="sourcecode">
|
222
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
223
|
-
<div id="
|
222
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">show source</a> ]</p>
|
223
|
+
<div id="M000147_source" class="dyn-source">
|
224
224
|
<pre>
|
225
225
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 217</span>
|
226
226
|
217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -232,7 +232,7 @@ SystemCallError or IOError when something goes wrong.
|
|
232
232
|
</div>
|
233
233
|
<div class="method">
|
234
234
|
<div class="title">
|
235
|
-
<a name="
|
235
|
+
<a name="M000146"></a><b>fileno</b>()
|
236
236
|
</div>
|
237
237
|
<div class="description">
|
238
238
|
<p>
|
@@ -241,8 +241,8 @@ object.
|
|
241
241
|
</p>
|
242
242
|
</div>
|
243
243
|
<div class="sourcecode">
|
244
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
245
|
-
<div id="
|
244
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">show source</a> ]</p>
|
245
|
+
<div id="M000146_source" class="dyn-source">
|
246
246
|
<pre>
|
247
247
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 211</span>
|
248
248
|
211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fileno</span>
|
@@ -254,7 +254,7 @@ object.
|
|
254
254
|
</div>
|
255
255
|
<div class="method">
|
256
256
|
<div class="title">
|
257
|
-
<a name="
|
257
|
+
<a name="M000140"></a><b>read</b>()
|
258
258
|
</div>
|
259
259
|
<div class="description">
|
260
260
|
<p>
|
@@ -267,8 +267,8 @@ wrong.
|
|
267
267
|
</p>
|
268
268
|
</div>
|
269
269
|
<div class="sourcecode">
|
270
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
271
|
-
<div id="
|
270
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
271
|
+
<div id="M000140_source" class="dyn-source">
|
272
272
|
<pre>
|
273
273
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 93</span>
|
274
274
|
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>
|
@@ -307,12 +307,12 @@ wrong.
|
|
307
307
|
</div>
|
308
308
|
<div class="method">
|
309
309
|
<div class="title">
|
310
|
-
<a name="
|
310
|
+
<a name="M000141"></a><b>read_scalar</b>(max_size = nil)
|
311
311
|
</div>
|
312
312
|
<div class="description">
|
313
313
|
<p>
|
314
314
|
Read a scalar message from the underlying <a href="../IO.html">IO</a>
|
315
|
-
object. Returns the <a href="MessageChannel.html#
|
315
|
+
object. Returns the <a href="MessageChannel.html#M000140">read</a> message,
|
316
316
|
or nil on end-of-stream.
|
317
317
|
</p>
|
318
318
|
<p>
|
@@ -326,8 +326,8 @@ larger than <tt>max_size</tt>, then a SecurityError will be raised.
|
|
326
326
|
</p>
|
327
327
|
</div>
|
328
328
|
<div class="sourcecode">
|
329
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
330
|
-
<div id="
|
329
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
330
|
+
<div id="M000141_source" class="dyn-source">
|
331
331
|
<pre>
|
332
332
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 133</span>
|
333
333
|
133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_scalar</span>(<span class="ruby-identifier">max_size</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -362,13 +362,13 @@ larger than <tt>max_size</tt>, then a SecurityError will be raised.
|
|
362
362
|
</div>
|
363
363
|
<div class="method">
|
364
364
|
<div class="title">
|
365
|
-
<a name="
|
365
|
+
<a name="M000144"></a><b>recv_io</b>()
|
366
366
|
</div>
|
367
367
|
<div class="description">
|
368
368
|
<p>
|
369
369
|
Receive an <a href="../IO.html">IO</a> object (a file descriptor) from the
|
370
370
|
channel. The other side must have sent an <a href="../IO.html">IO</a>
|
371
|
-
object by calling <a href="MessageChannel.html#
|
371
|
+
object by calling <a href="MessageChannel.html#M000145">send_io</a>(). Note
|
372
372
|
that this only works on Unix sockets.
|
373
373
|
</p>
|
374
374
|
<p>
|
@@ -377,8 +377,8 @@ wrong.
|
|
377
377
|
</p>
|
378
378
|
</div>
|
379
379
|
<div class="sourcecode">
|
380
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
381
|
-
<div id="
|
380
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">show source</a> ]</p>
|
381
|
+
<div id="M000144_source" class="dyn-source">
|
382
382
|
<pre>
|
383
383
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 196</span>
|
384
384
|
196: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_io</span>
|
@@ -390,13 +390,13 @@ wrong.
|
|
390
390
|
</div>
|
391
391
|
<div class="method">
|
392
392
|
<div class="title">
|
393
|
-
<a name="
|
393
|
+
<a name="M000145"></a><b>send_io</b>(io)
|
394
394
|
</div>
|
395
395
|
<div class="description">
|
396
396
|
<p>
|
397
397
|
Send an <a href="../IO.html">IO</a> object (a file descriptor) over the
|
398
398
|
channel. The other side must receive the <a href="../IO.html">IO</a> object
|
399
|
-
by calling <a href="MessageChannel.html#
|
399
|
+
by calling <a href="MessageChannel.html#M000144">recv_io</a>(). Note that
|
400
400
|
this only works on Unix sockets.
|
401
401
|
</p>
|
402
402
|
<p>
|
@@ -405,8 +405,8 @@ wrong.
|
|
405
405
|
</p>
|
406
406
|
</div>
|
407
407
|
<div class="sourcecode">
|
408
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
409
|
-
<div id="
|
408
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">show source</a> ]</p>
|
409
|
+
<div id="M000145_source" class="dyn-source">
|
410
410
|
<pre>
|
411
411
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 206</span>
|
412
412
|
206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_io</span>(<span class="ruby-identifier">io</span>)
|
@@ -418,7 +418,7 @@ wrong.
|
|
418
418
|
</div>
|
419
419
|
<div class="method">
|
420
420
|
<div class="title">
|
421
|
-
<a name="
|
421
|
+
<a name="M000142"></a><b>write</b>(name, *args)
|
422
422
|
</div>
|
423
423
|
<div class="description">
|
424
424
|
<p>
|
@@ -433,8 +433,8 @@ wrong.
|
|
433
433
|
</p>
|
434
434
|
</div>
|
435
435
|
<div class="sourcecode">
|
436
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
437
|
-
<div id="
|
436
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
437
|
+
<div id="M000142_source" class="dyn-source">
|
438
438
|
<pre>
|
439
439
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 167</span>
|
440
440
|
167: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -456,7 +456,7 @@ wrong.
|
|
456
456
|
</div>
|
457
457
|
<div class="method">
|
458
458
|
<div class="title">
|
459
|
-
<a name="
|
459
|
+
<a name="M000143"></a><b>write_scalar</b>(data)
|
460
460
|
</div>
|
461
461
|
<div class="description">
|
462
462
|
<p>
|
@@ -469,8 +469,8 @@ wrong.
|
|
469
469
|
</p>
|
470
470
|
</div>
|
471
471
|
<div class="sourcecode">
|
472
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
473
|
-
<div id="
|
472
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">show source</a> ]</p>
|
473
|
+
<div id="M000143_source" class="dyn-source">
|
474
474
|
<pre>
|
475
475
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/message_channel.rb, line 185</span>
|
476
476
|
185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_scalar</span>(<span class="ruby-identifier">data</span>)
|