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.

Files changed (100) hide show
  1. data/NEWS +31 -1
  2. data/bin/passenger-install-apache2-module +7 -1
  3. data/bin/passenger-install-nginx-module +1 -1
  4. data/bin/passenger-memory-stats +3 -3
  5. data/doc/Users guide Apache.html +112 -13
  6. data/doc/Users guide Apache.txt +70 -9
  7. data/doc/Users guide Nginx.html +1 -1
  8. data/doc/cxxapi/Bucket_8h-source.html +1 -1
  9. data/doc/cxxapi/Configuration_8h-source.html +1 -1
  10. data/doc/cxxapi/DirectoryMapper_8h-source.html +7 -7
  11. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  12. data/doc/cxxapi/annotated.html +1 -1
  13. data/doc/cxxapi/classHooks-members.html +1 -1
  14. data/doc/cxxapi/classHooks.html +1 -1
  15. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
  16. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
  17. data/doc/cxxapi/classes.html +1 -1
  18. data/doc/cxxapi/definitions_8h-source.html +1 -1
  19. data/doc/cxxapi/files.html +1 -1
  20. data/doc/cxxapi/functions.html +1 -1
  21. data/doc/cxxapi/functions_func.html +1 -1
  22. data/doc/cxxapi/graph_legend.html +1 -1
  23. data/doc/cxxapi/group__Configuration.html +1 -1
  24. data/doc/cxxapi/group__Core.html +1 -1
  25. data/doc/cxxapi/group__Hooks.html +1 -1
  26. data/doc/cxxapi/group__Support.html +1 -1
  27. data/doc/cxxapi/main.html +1 -1
  28. data/doc/cxxapi/modules.html +1 -1
  29. data/doc/rdoc/classes/ConditionVariable.html +59 -59
  30. data/doc/rdoc/classes/Exception.html +11 -11
  31. data/doc/rdoc/classes/GC.html +4 -4
  32. data/doc/rdoc/classes/IO.html +14 -14
  33. data/doc/rdoc/classes/PhusionPassenger.html +13 -13
  34. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
  35. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
  36. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
  37. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
  38. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +8 -8
  39. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +32 -32
  40. data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
  41. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
  42. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
  43. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
  44. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
  45. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +42 -42
  46. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +24 -24
  47. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +8 -8
  48. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +8 -8
  49. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +62 -66
  50. data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +23 -23
  51. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +30 -30
  52. data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +8 -8
  53. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
  54. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
  55. data/doc/rdoc/classes/PhusionPassenger/Utils.html +384 -384
  56. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +36 -36
  57. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
  58. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +7 -7
  59. data/doc/rdoc/classes/PlatformInfo.html +234 -200
  60. data/doc/rdoc/classes/RakeExtensions.html +4 -4
  61. data/doc/rdoc/classes/Signal.html +27 -27
  62. data/doc/rdoc/created.rid +1 -1
  63. data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
  64. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
  65. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
  66. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
  67. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
  68. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
  69. data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
  70. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
  71. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
  72. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
  73. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
  74. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
  75. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +1 -1
  76. data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -3
  77. data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
  78. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
  79. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +10 -9
  80. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
  81. data/doc/rdoc/fr_method_index.html +148 -147
  82. data/ext/apache2/DirectoryMapper.h +6 -6
  83. data/ext/common/Utils.cpp +31 -5
  84. data/ext/common/Version.h +1 -1
  85. data/ext/nginx/Configuration.c +4 -8
  86. data/ext/nginx/Configuration.h +2 -2
  87. data/ext/nginx/ContentHandler.c +11 -7
  88. data/ext/oxt/thread.hpp +12 -11
  89. data/lib/phusion_passenger/constants.rb +1 -1
  90. data/lib/phusion_passenger/dependencies.rb +40 -25
  91. data/lib/phusion_passenger/platform_info.rb +28 -11
  92. data/lib/phusion_passenger/railz/application_spawner.rb +3 -7
  93. data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +7 -4
  94. data/lib/phusion_passenger/utils.rb +1 -0
  95. data/test/integration_tests/apache2_tests.rb +16 -0
  96. data/test/integration_tests/nginx_tests.rb +46 -0
  97. data/test/stub/MessageServer.dSYM/Contents/Info.plist +25 -0
  98. data/test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer +0 -0
  99. data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
  100. 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="#M000119">close</a></li>
88
- <li><a href="#M000117">detect_framework_version</a></li>
89
- <li><a href="#M000118">new</a></li>
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#M000118">new</a> connections. See
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="M000117"></a><b>detect_framework_version</b>(app_root)
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('M000117_source')" id="l_M000117_source">show source</a> ]</p>
180
- <div id="M000117_source" class="dyn-source">
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="M000118"></a><b>new</b>(app_root, pid, listen_socket_name, listen_socket_type, owner_pipe)
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#M000118">new</a> instance of <a
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('M000118_source')" id="l_M000118_source">show source</a> ]</p>
237
- <div id="M000118_source" class="dyn-source">
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="M000119"></a><b>close</b>()
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('M000119_source')" id="l_M000119_source">show source</a> ]</p>
268
- <div id="M000119_source" class="dyn-source">
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="#M000131">[]=</a></li>
84
- <li><a href="#M000130">new</a></li>
85
- <li><a href="#M000132">result</a></li>
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="M000130"></a><b>new</b>(input, options = {})
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('M000130_source')" id="l_M000130_source">show source</a> ]</p>
113
- <div id="M000130_source" class="dyn-source">
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="M000131"></a><b>[]=</b>(name, value)
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('M000131_source')" id="l_M000131_source">show source</a> ]</p>
140
- <div id="M000131_source" class="dyn-source">
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="M000132"></a><b>result</b>()
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('M000132_source')" id="l_M000132_source">show source</a> ]</p>
157
- <div id="M000132_source" class="dyn-source">
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="#M000113">new</a></li>
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="M000113"></a><b>new</b>(message, child_exception, options)
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('M000113_source')" id="l_M000113_source">show source</a> ]</p>
125
- <div id="M000113_source" class="dyn-source">
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="#M000115">[]=</a></li>
88
- <li><a href="#M000114">new</a></li>
89
- <li><a href="#M000116">result</a></li>
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="M000114"></a><b>new</b>(template_name, options = {})
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('M000114_source')" id="l_M000114_source">show source</a> ]</p>
121
- <div id="M000114_source" class="dyn-source">
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="M000115"></a><b>[]=</b>(name, value)
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('M000115_source')" id="l_M000115_source">show source</a> ]</p>
143
- <div id="M000115_source" class="dyn-source">
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="M000116"></a><b>result</b>()
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('M000116_source')" id="l_M000116_source">show source</a> ]</p>
160
- <div id="M000116_source" class="dyn-source">
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="#M000100">new</a></li>
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="M000100"></a><b>new</b>(message, child_exception = nil)
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#M000100">new</a> <a
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('M000100_source')" id="l_M000100_source">show source</a> ]</p>
125
- <div id="M000100_source" class="dyn-source">
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#M000156">close</a>() if you want to <a
138
- href="MessageChannel.html#M000156">close</a> the underlying <a
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="#M000156">close</a></li>
158
- <li><a href="#M000155">fileno</a></li>
159
- <li><a href="#M000148">new</a></li>
160
- <li><a href="#M000149">read</a></li>
161
- <li><a href="#M000150">read_scalar</a></li>
162
- <li><a href="#M000153">recv_io</a></li>
163
- <li><a href="#M000154">send_io</a></li>
164
- <li><a href="#M000151">write</a></li>
165
- <li><a href="#M000152">write_scalar</a></li>
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="M000148"></a><b>new</b>(io)
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#M000148">new</a> <a
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('M000148_source')" id="l_M000148_source">show source</a> ]</p>
200
- <div id="M000148_source" class="dyn-source">
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="M000156"></a><b>close</b>()
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('M000156_source')" id="l_M000156_source">show source</a> ]</p>
223
- <div id="M000156_source" class="dyn-source">
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="M000155"></a><b>fileno</b>()
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('M000155_source')" id="l_M000155_source">show source</a> ]</p>
245
- <div id="M000155_source" class="dyn-source">
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="M000149"></a><b>read</b>()
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('M000149_source')" id="l_M000149_source">show source</a> ]</p>
271
- <div id="M000149_source" class="dyn-source">
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="M000150"></a><b>read_scalar</b>(max_size = nil)
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#M000149">read</a> message,
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('M000150_source')" id="l_M000150_source">show source</a> ]</p>
330
- <div id="M000150_source" class="dyn-source">
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="M000153"></a><b>recv_io</b>()
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#M000154">send_io</a>(). Note
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('M000153_source')" id="l_M000153_source">show source</a> ]</p>
381
- <div id="M000153_source" class="dyn-source">
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="M000154"></a><b>send_io</b>(io)
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#M000153">recv_io</a>(). Note that
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('M000154_source')" id="l_M000154_source">show source</a> ]</p>
409
- <div id="M000154_source" class="dyn-source">
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="M000151"></a><b>write</b>(name, *args)
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('M000151_source')" id="l_M000151_source">show source</a> ]</p>
437
- <div id="M000151_source" class="dyn-source">
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="M000152"></a><b>write_scalar</b>(data)
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('M000152_source')" id="l_M000152_source">show source</a> ]</p>
473
- <div id="M000152_source" class="dyn-source">
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>)