passenger 2.2.1 → 2.2.2

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 (216) hide show
  1. data/Rakefile +66 -79
  2. data/bin/passenger-install-nginx-module +1 -1
  3. data/bin/passenger-memory-stats +1 -1
  4. data/bin/passenger-spawn-server +8 -2
  5. data/doc/Users guide Apache.html +33 -49
  6. data/doc/Users guide Apache.txt +28 -27
  7. data/doc/Users guide Nginx.html +9 -19
  8. data/doc/Users guide Nginx.txt +8 -20
  9. data/doc/cxxapi/Bucket_8h-source.html +1 -1
  10. data/doc/cxxapi/Configuration_8h-source.html +297 -300
  11. data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
  12. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  13. data/doc/cxxapi/annotated.html +1 -1
  14. data/doc/cxxapi/classHooks-members.html +1 -1
  15. data/doc/cxxapi/classHooks.html +1 -1
  16. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
  17. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
  18. data/doc/cxxapi/classes.html +1 -1
  19. data/doc/cxxapi/definitions_8h-source.html +1 -1
  20. data/doc/cxxapi/files.html +1 -1
  21. data/doc/cxxapi/functions.html +1 -1
  22. data/doc/cxxapi/functions_func.html +1 -1
  23. data/doc/cxxapi/graph_legend.html +1 -1
  24. data/doc/cxxapi/group__Configuration.html +1 -23
  25. data/doc/cxxapi/group__Core.html +1 -1
  26. data/doc/cxxapi/group__Hooks.html +1 -1
  27. data/doc/cxxapi/group__Support.html +1 -1
  28. data/doc/cxxapi/main.html +1 -1
  29. data/doc/cxxapi/modules.html +1 -1
  30. data/doc/users_guide_snippets/rackup_specifications.txt +4 -2
  31. data/ext/apache2/Configuration.h +0 -3
  32. data/ext/apache2/Hooks.cpp +5 -3
  33. data/ext/common/ApplicationPoolServer.h +1 -0
  34. data/ext/common/ApplicationPoolServerExecutable.cpp +5 -2
  35. data/ext/common/SpawnManager.h +1 -0
  36. data/ext/common/Utils.cpp +22 -23
  37. data/ext/common/Utils.h +32 -21
  38. data/ext/common/Version.h +31 -0
  39. data/ext/nginx/ContentHandler.c +61 -8
  40. data/ext/nginx/HelperServer.cpp +3 -0
  41. data/ext/nginx/HttpStatusExtractor.h +185 -0
  42. data/ext/nginx/StaticContentHandler.c +18 -3
  43. data/ext/nginx/config +2 -1
  44. data/ext/nginx/ngx_http_passenger_module.c +21 -15
  45. data/ext/oxt/backtrace.cpp +4 -2
  46. data/ext/oxt/spin_lock.hpp +3 -3
  47. data/lib/phusion_passenger/abstract_request_handler.rb +5 -3
  48. data/lib/phusion_passenger/admin_tools/control_process.rb +6 -1
  49. data/lib/phusion_passenger/constants.rb +2 -2
  50. data/lib/phusion_passenger/rack/application_spawner.rb +2 -1
  51. data/lib/phusion_passenger/rack/request_handler.rb +45 -35
  52. data/lib/phusion_passenger/templates/nginx/config_snippets.txt.erb +1 -1
  53. data/lib/phusion_passenger/utils.rb +13 -3
  54. data/misc/rake/cplusplus.rb +7 -0
  55. data/test/ApplicationPoolServer_ApplicationPoolTest.cpp +2 -0
  56. data/test/ApplicationPoolTest.cpp +39 -62
  57. data/test/CxxTestMain.cpp +6 -6
  58. data/test/HttpStatusExtractorTest.cpp +17 -0
  59. data/test/StandardApplicationPoolTest.cpp +2 -0
  60. data/test/UtilsTest.cpp +17 -28
  61. data/test/ruby/abstract_request_handler_spec.rb +3 -7
  62. data/test/ruby/utils_spec.rb +18 -13
  63. data/test/ruby/wsgi/application_spawner_spec.rb +5 -9
  64. data/test/stub/railsapp/app/controllers/{bar_controller_1.rb → bar_controller.rb} +0 -0
  65. data/test/stub/railsapp/app/controllers/bar_controller_1.txt +5 -0
  66. data/test/stub/railsapp/app/controllers/{bar_controller_2.rb → bar_controller_2.txt} +0 -0
  67. data/test/support/Support.h +20 -0
  68. data/test/support/config.rb +13 -0
  69. data/vendor/README +4 -3
  70. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/COPYING +1 -1
  71. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/KNOWN-ISSUES +0 -0
  72. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/README +54 -7
  73. data/vendor/rack-1.0.0-git/Rakefile +164 -0
  74. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack.rb +7 -3
  75. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/adapter/camping.rb +0 -0
  76. data/vendor/rack-1.0.0-git/lib/rack/auth/abstract/handler.rb +37 -0
  77. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/abstract/request.rb +0 -0
  78. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/basic.rb +0 -0
  79. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/md5.rb +1 -1
  80. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/nonce.rb +0 -0
  81. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/params.rb +0 -0
  82. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/auth/digest/request.rb +2 -2
  83. data/vendor/rack-1.0.0-git/lib/rack/auth/openid.rb +480 -0
  84. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/builder.rb +1 -5
  85. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/cascade.rb +0 -0
  86. data/vendor/rack-1.0.0-git/lib/rack/chunked.rb +49 -0
  87. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/commonlogger.rb +0 -0
  88. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/conditionalget.rb +4 -0
  89. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/content_length.rb +7 -3
  90. data/vendor/rack-1.0.0-git/lib/rack/content_type.rb +23 -0
  91. data/vendor/rack-1.0.0-git/lib/rack/deflater.rb +96 -0
  92. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/directory.rb +5 -2
  93. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/file.rb +4 -1
  94. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler.rb +22 -1
  95. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/cgi.rb +7 -3
  96. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/evented_mongrel.rb +0 -0
  97. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/fastcgi.rb +26 -24
  98. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/lsws.rb +7 -4
  99. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/mongrel.rb +5 -3
  100. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/scgi.rb +5 -3
  101. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/swiftiplied_mongrel.rb +0 -0
  102. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/thin.rb +3 -0
  103. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/handler/webrick.rb +11 -5
  104. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/head.rb +0 -0
  105. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/lint.rb +138 -66
  106. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/lobster.rb +0 -0
  107. data/vendor/rack-1.0.0-git/lib/rack/lock.rb +16 -0
  108. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/methodoverride.rb +0 -0
  109. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/mime.rb +4 -4
  110. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/mock.rb +42 -5
  111. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/recursive.rb +0 -0
  112. data/vendor/rack-1.0.0-git/lib/rack/reloader.rb +106 -0
  113. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/request.rb +46 -10
  114. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/response.rb +15 -3
  115. data/vendor/rack-1.0.0-git/lib/rack/rewindable_input.rb +98 -0
  116. data/vendor/rack-1.0.0-git/lib/rack/session/abstract/id.rb +142 -0
  117. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/session/cookie.rb +2 -0
  118. data/vendor/rack-1.0.0-git/lib/rack/session/memcache.rb +109 -0
  119. data/vendor/rack-1.0.0-git/lib/rack/session/pool.rb +100 -0
  120. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/showexceptions.rb +2 -1
  121. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/showstatus.rb +1 -1
  122. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/static.rb +0 -0
  123. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/urlmap.rb +12 -5
  124. data/vendor/{rack-0.9.1 → rack-1.0.0-git}/lib/rack/utils.rb +212 -65
  125. metadata +71 -170
  126. data/doc/rdoc/classes/ConditionVariable.html +0 -194
  127. data/doc/rdoc/classes/Exception.html +0 -120
  128. data/doc/rdoc/classes/GC.html +0 -113
  129. data/doc/rdoc/classes/IO.html +0 -169
  130. data/doc/rdoc/classes/PhusionPassenger.html +0 -238
  131. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -153
  132. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -506
  133. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -692
  134. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
  135. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
  136. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
  137. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
  138. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -598
  139. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -140
  140. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +0 -264
  141. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess/Instance.html +0 -138
  142. data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -154
  143. data/doc/rdoc/classes/PhusionPassenger/Application.html +0 -283
  144. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
  145. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
  146. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -175
  147. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
  148. data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
  149. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -489
  150. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -350
  151. data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
  152. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -185
  153. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -184
  154. data/doc/rdoc/classes/PhusionPassenger/Railz.html +0 -95
  155. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +0 -419
  156. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner/Error.html +0 -98
  157. data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +0 -200
  158. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +0 -443
  159. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner/Error.html +0 -98
  160. data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +0 -154
  161. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -402
  162. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
  163. data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -694
  164. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
  165. data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
  166. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -188
  167. data/doc/rdoc/classes/PlatformInfo.html +0 -831
  168. data/doc/rdoc/classes/RakeExtensions.html +0 -197
  169. data/doc/rdoc/classes/Signal.html +0 -134
  170. data/doc/rdoc/created.rid +0 -1
  171. data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -240
  172. data/doc/rdoc/files/README.html +0 -157
  173. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
  174. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -129
  175. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -131
  176. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
  177. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -130
  178. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +0 -129
  179. data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
  180. data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +0 -127
  181. data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
  182. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
  183. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -134
  184. data/doc/rdoc/files/lib/phusion_passenger/events_rb.html +0 -122
  185. data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
  186. data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -126
  187. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -122
  188. data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
  189. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -127
  190. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -133
  191. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -126
  192. data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +0 -143
  193. data/doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html +0 -126
  194. data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +0 -145
  195. data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +0 -127
  196. data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
  197. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -161
  198. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -175
  199. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -129
  200. data/doc/rdoc/files/misc/rake/extensions_rb.html +0 -130
  201. data/doc/rdoc/fr_class_index.html +0 -90
  202. data/doc/rdoc/fr_file_index.html +0 -76
  203. data/doc/rdoc/fr_method_index.html +0 -195
  204. data/doc/rdoc/index.html +0 -26
  205. data/doc/rdoc/rdoc-style.css +0 -187
  206. data/vendor/rack-0.9.1/AUTHORS +0 -8
  207. data/vendor/rack-0.9.1/ChangeLog +0 -1423
  208. data/vendor/rack-0.9.1/Rakefile +0 -188
  209. data/vendor/rack-0.9.1/SPEC +0 -129
  210. data/vendor/rack-0.9.1/lib/rack/auth/abstract/handler.rb +0 -28
  211. data/vendor/rack-0.9.1/lib/rack/auth/openid.rb +0 -438
  212. data/vendor/rack-0.9.1/lib/rack/deflater.rb +0 -87
  213. data/vendor/rack-0.9.1/lib/rack/reloader.rb +0 -64
  214. data/vendor/rack-0.9.1/lib/rack/session/abstract/id.rb +0 -153
  215. data/vendor/rack-0.9.1/lib/rack/session/memcache.rb +0 -97
  216. data/vendor/rack-0.9.1/lib/rack/session/pool.rb +0 -73
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phusion - http://www.phusion.nl/
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 +02:00
12
+ date: 2009-04-26 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -128,7 +128,6 @@ files:
128
128
  - doc/definitions.h
129
129
  - doc/Doxyfile
130
130
  - doc/images
131
- - doc/rdoc
132
131
  - doc/Security of user switching support.html
133
132
  - doc/Security of user switching support.txt
134
133
  - doc/template
@@ -345,14 +344,6 @@ files:
345
344
  - doc/images/spawn_server_architecture.svg
346
345
  - doc/images/typical_isolated_web_application.png
347
346
  - doc/images/typical_isolated_web_application.svg
348
- - doc/rdoc/classes
349
- - doc/rdoc/created.rid
350
- - doc/rdoc/files
351
- - doc/rdoc/fr_class_index.html
352
- - doc/rdoc/fr_file_index.html
353
- - doc/rdoc/fr_method_index.html
354
- - doc/rdoc/index.html
355
- - doc/rdoc/rdoc-style.css
356
347
  - doc/template/horo.rb
357
348
  - doc/users_guide_snippets/analysis_and_system_maintenance_tools.txt
358
349
  - doc/users_guide_snippets/appendix_a_about.txt
@@ -374,20 +365,6 @@ files:
374
365
  - doc/images/icons/tip.png
375
366
  - doc/images/icons/up.png
376
367
  - doc/images/icons/warning.png
377
- - doc/rdoc/classes/ConditionVariable.html
378
- - doc/rdoc/classes/Exception.html
379
- - doc/rdoc/classes/GC.html
380
- - doc/rdoc/classes/IO.html
381
- - doc/rdoc/classes/PhusionPassenger
382
- - doc/rdoc/classes/PhusionPassenger.html
383
- - doc/rdoc/classes/PlatformInfo.html
384
- - doc/rdoc/classes/RakeExtensions.html
385
- - doc/rdoc/classes/Signal.html
386
- - doc/rdoc/files/DEVELOPERS_TXT.html
387
- - doc/rdoc/files/ext
388
- - doc/rdoc/files/lib
389
- - doc/rdoc/files/misc
390
- - doc/rdoc/files/README.html
391
368
  - doc/images/icons/callouts/1.png
392
369
  - doc/images/icons/callouts/10.png
393
370
  - doc/images/icons/callouts/11.png
@@ -403,85 +380,6 @@ files:
403
380
  - doc/images/icons/callouts/7.png
404
381
  - doc/images/icons/callouts/8.png
405
382
  - doc/images/icons/callouts/9.png
406
- - doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html
407
- - doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html
408
- - doc/rdoc/classes/PhusionPassenger/AbstractServer
409
- - doc/rdoc/classes/PhusionPassenger/AbstractServer.html
410
- - doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html
411
- - doc/rdoc/classes/PhusionPassenger/AdminTools
412
- - doc/rdoc/classes/PhusionPassenger/AdminTools.html
413
- - doc/rdoc/classes/PhusionPassenger/AppInitError.html
414
- - doc/rdoc/classes/PhusionPassenger/Application.html
415
- - doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html
416
- - doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html
417
- - doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html
418
- - doc/rdoc/classes/PhusionPassenger/InitializationError.html
419
- - doc/rdoc/classes/PhusionPassenger/InvalidPath.html
420
- - doc/rdoc/classes/PhusionPassenger/MessageChannel.html
421
- - doc/rdoc/classes/PhusionPassenger/NativeSupport.html
422
- - doc/rdoc/classes/PhusionPassenger/Rack
423
- - doc/rdoc/classes/PhusionPassenger/Rack.html
424
- - doc/rdoc/classes/PhusionPassenger/Railz
425
- - doc/rdoc/classes/PhusionPassenger/Railz.html
426
- - doc/rdoc/classes/PhusionPassenger/SpawnManager.html
427
- - doc/rdoc/classes/PhusionPassenger/UnknownError.html
428
- - doc/rdoc/classes/PhusionPassenger/Utils.html
429
- - doc/rdoc/classes/PhusionPassenger/VersionNotFound.html
430
- - doc/rdoc/classes/PhusionPassenger/WSGI
431
- - doc/rdoc/classes/PhusionPassenger/WSGI.html
432
- - doc/rdoc/files/ext/phusion_passenger
433
- - doc/rdoc/files/lib/phusion_passenger
434
- - doc/rdoc/files/misc/rake
435
- - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html
436
- - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html
437
- - doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html
438
- - doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html
439
- - doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess
440
- - doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html
441
- - doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html
442
- - doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html
443
- - doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner
444
- - doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html
445
- - doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html
446
- - doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner
447
- - doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html
448
- - doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html
449
- - doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html
450
- - doc/rdoc/files/ext/phusion_passenger/native_support_c.html
451
- - doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html
452
- - doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html
453
- - doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html
454
- - doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html
455
- - doc/rdoc/files/lib/phusion_passenger/admin_tools
456
- - doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html
457
- - doc/rdoc/files/lib/phusion_passenger/application_rb.html
458
- - doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html
459
- - doc/rdoc/files/lib/phusion_passenger/constants_rb.html
460
- - doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html
461
- - doc/rdoc/files/lib/phusion_passenger/events_rb.html
462
- - doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html
463
- - doc/rdoc/files/lib/phusion_passenger/html_template_rb.html
464
- - doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html
465
- - doc/rdoc/files/lib/phusion_passenger/packaging_rb.html
466
- - doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html
467
- - doc/rdoc/files/lib/phusion_passenger/rack
468
- - doc/rdoc/files/lib/phusion_passenger/railz
469
- - doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html
470
- - doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html
471
- - doc/rdoc/files/lib/phusion_passenger/utils_rb.html
472
- - doc/rdoc/files/lib/phusion_passenger/wsgi
473
- - doc/rdoc/files/misc/rake/extensions_rb.html
474
- - doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess/Instance.html
475
- - doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner/Error.html
476
- - doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner/Error.html
477
- - doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html
478
- - doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html
479
- - doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html
480
- - doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html
481
- - doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html
482
- - doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html
483
- - doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html
484
- - doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html
485
383
  - man/passenger-config.1
486
384
  - man/passenger-make-enterprisey.8
487
385
  - man/passenger-memory-stats.8
@@ -512,6 +410,7 @@ files:
512
410
  - ext/common/StaticString.h
513
411
  - ext/common/SystemTime.h
514
412
  - ext/common/Utils.h
413
+ - ext/common/Version.h
515
414
  - ext/apache2/Bucket.cpp
516
415
  - ext/apache2/Configuration.cpp
517
416
  - ext/apache2/Hooks.cpp
@@ -1116,70 +1015,71 @@ files:
1116
1015
  - misc/rake/gempackagetask.rb
1117
1016
  - misc/rake/packagetask.rb
1118
1017
  - misc/rake/rdoctask.rb
1119
- - vendor/rack-0.9.1
1120
- - vendor/rack-0.9.1/AUTHORS
1121
- - vendor/rack-0.9.1/ChangeLog
1122
- - vendor/rack-0.9.1/COPYING
1123
- - vendor/rack-0.9.1/KNOWN-ISSUES
1124
- - vendor/rack-0.9.1/lib
1125
- - vendor/rack-0.9.1/lib/rack
1126
- - vendor/rack-0.9.1/lib/rack/adapter
1127
- - vendor/rack-0.9.1/lib/rack/adapter/camping.rb
1128
- - vendor/rack-0.9.1/lib/rack/auth
1129
- - vendor/rack-0.9.1/lib/rack/auth/abstract
1130
- - vendor/rack-0.9.1/lib/rack/auth/abstract/handler.rb
1131
- - vendor/rack-0.9.1/lib/rack/auth/abstract/request.rb
1132
- - vendor/rack-0.9.1/lib/rack/auth/basic.rb
1133
- - vendor/rack-0.9.1/lib/rack/auth/digest
1134
- - vendor/rack-0.9.1/lib/rack/auth/digest/md5.rb
1135
- - vendor/rack-0.9.1/lib/rack/auth/digest/nonce.rb
1136
- - vendor/rack-0.9.1/lib/rack/auth/digest/params.rb
1137
- - vendor/rack-0.9.1/lib/rack/auth/digest/request.rb
1138
- - vendor/rack-0.9.1/lib/rack/auth/openid.rb
1139
- - vendor/rack-0.9.1/lib/rack/builder.rb
1140
- - vendor/rack-0.9.1/lib/rack/cascade.rb
1141
- - vendor/rack-0.9.1/lib/rack/commonlogger.rb
1142
- - vendor/rack-0.9.1/lib/rack/conditionalget.rb
1143
- - vendor/rack-0.9.1/lib/rack/content_length.rb
1144
- - vendor/rack-0.9.1/lib/rack/deflater.rb
1145
- - vendor/rack-0.9.1/lib/rack/directory.rb
1146
- - vendor/rack-0.9.1/lib/rack/file.rb
1147
- - vendor/rack-0.9.1/lib/rack/handler
1148
- - vendor/rack-0.9.1/lib/rack/handler/cgi.rb
1149
- - vendor/rack-0.9.1/lib/rack/handler/evented_mongrel.rb
1150
- - vendor/rack-0.9.1/lib/rack/handler/fastcgi.rb
1151
- - vendor/rack-0.9.1/lib/rack/handler/lsws.rb
1152
- - vendor/rack-0.9.1/lib/rack/handler/mongrel.rb
1153
- - vendor/rack-0.9.1/lib/rack/handler/scgi.rb
1154
- - vendor/rack-0.9.1/lib/rack/handler/swiftiplied_mongrel.rb
1155
- - vendor/rack-0.9.1/lib/rack/handler/thin.rb
1156
- - vendor/rack-0.9.1/lib/rack/handler/webrick.rb
1157
- - vendor/rack-0.9.1/lib/rack/handler.rb
1158
- - vendor/rack-0.9.1/lib/rack/head.rb
1159
- - vendor/rack-0.9.1/lib/rack/lint.rb
1160
- - vendor/rack-0.9.1/lib/rack/lobster.rb
1161
- - vendor/rack-0.9.1/lib/rack/methodoverride.rb
1162
- - vendor/rack-0.9.1/lib/rack/mime.rb
1163
- - vendor/rack-0.9.1/lib/rack/mock.rb
1164
- - vendor/rack-0.9.1/lib/rack/recursive.rb
1165
- - vendor/rack-0.9.1/lib/rack/reloader.rb
1166
- - vendor/rack-0.9.1/lib/rack/request.rb
1167
- - vendor/rack-0.9.1/lib/rack/response.rb
1168
- - vendor/rack-0.9.1/lib/rack/session
1169
- - vendor/rack-0.9.1/lib/rack/session/abstract
1170
- - vendor/rack-0.9.1/lib/rack/session/abstract/id.rb
1171
- - vendor/rack-0.9.1/lib/rack/session/cookie.rb
1172
- - vendor/rack-0.9.1/lib/rack/session/memcache.rb
1173
- - vendor/rack-0.9.1/lib/rack/session/pool.rb
1174
- - vendor/rack-0.9.1/lib/rack/showexceptions.rb
1175
- - vendor/rack-0.9.1/lib/rack/showstatus.rb
1176
- - vendor/rack-0.9.1/lib/rack/static.rb
1177
- - vendor/rack-0.9.1/lib/rack/urlmap.rb
1178
- - vendor/rack-0.9.1/lib/rack/utils.rb
1179
- - vendor/rack-0.9.1/lib/rack.rb
1180
- - vendor/rack-0.9.1/Rakefile
1181
- - vendor/rack-0.9.1/README
1182
- - vendor/rack-0.9.1/SPEC
1018
+ - vendor/rack-1.0.0-git
1019
+ - vendor/rack-1.0.0-git/COPYING
1020
+ - vendor/rack-1.0.0-git/KNOWN-ISSUES
1021
+ - vendor/rack-1.0.0-git/lib
1022
+ - vendor/rack-1.0.0-git/lib/rack
1023
+ - vendor/rack-1.0.0-git/lib/rack/adapter
1024
+ - vendor/rack-1.0.0-git/lib/rack/adapter/camping.rb
1025
+ - vendor/rack-1.0.0-git/lib/rack/auth
1026
+ - vendor/rack-1.0.0-git/lib/rack/auth/abstract
1027
+ - vendor/rack-1.0.0-git/lib/rack/auth/abstract/handler.rb
1028
+ - vendor/rack-1.0.0-git/lib/rack/auth/abstract/request.rb
1029
+ - vendor/rack-1.0.0-git/lib/rack/auth/basic.rb
1030
+ - vendor/rack-1.0.0-git/lib/rack/auth/digest
1031
+ - vendor/rack-1.0.0-git/lib/rack/auth/digest/md5.rb
1032
+ - vendor/rack-1.0.0-git/lib/rack/auth/digest/nonce.rb
1033
+ - vendor/rack-1.0.0-git/lib/rack/auth/digest/params.rb
1034
+ - vendor/rack-1.0.0-git/lib/rack/auth/digest/request.rb
1035
+ - vendor/rack-1.0.0-git/lib/rack/auth/openid.rb
1036
+ - vendor/rack-1.0.0-git/lib/rack/builder.rb
1037
+ - vendor/rack-1.0.0-git/lib/rack/cascade.rb
1038
+ - vendor/rack-1.0.0-git/lib/rack/chunked.rb
1039
+ - vendor/rack-1.0.0-git/lib/rack/commonlogger.rb
1040
+ - vendor/rack-1.0.0-git/lib/rack/conditionalget.rb
1041
+ - vendor/rack-1.0.0-git/lib/rack/content_length.rb
1042
+ - vendor/rack-1.0.0-git/lib/rack/content_type.rb
1043
+ - vendor/rack-1.0.0-git/lib/rack/deflater.rb
1044
+ - vendor/rack-1.0.0-git/lib/rack/directory.rb
1045
+ - vendor/rack-1.0.0-git/lib/rack/file.rb
1046
+ - vendor/rack-1.0.0-git/lib/rack/handler
1047
+ - vendor/rack-1.0.0-git/lib/rack/handler/cgi.rb
1048
+ - vendor/rack-1.0.0-git/lib/rack/handler/evented_mongrel.rb
1049
+ - vendor/rack-1.0.0-git/lib/rack/handler/fastcgi.rb
1050
+ - vendor/rack-1.0.0-git/lib/rack/handler/lsws.rb
1051
+ - vendor/rack-1.0.0-git/lib/rack/handler/mongrel.rb
1052
+ - vendor/rack-1.0.0-git/lib/rack/handler/scgi.rb
1053
+ - vendor/rack-1.0.0-git/lib/rack/handler/swiftiplied_mongrel.rb
1054
+ - vendor/rack-1.0.0-git/lib/rack/handler/thin.rb
1055
+ - vendor/rack-1.0.0-git/lib/rack/handler/webrick.rb
1056
+ - vendor/rack-1.0.0-git/lib/rack/handler.rb
1057
+ - vendor/rack-1.0.0-git/lib/rack/head.rb
1058
+ - vendor/rack-1.0.0-git/lib/rack/lint.rb
1059
+ - vendor/rack-1.0.0-git/lib/rack/lobster.rb
1060
+ - vendor/rack-1.0.0-git/lib/rack/lock.rb
1061
+ - vendor/rack-1.0.0-git/lib/rack/methodoverride.rb
1062
+ - vendor/rack-1.0.0-git/lib/rack/mime.rb
1063
+ - vendor/rack-1.0.0-git/lib/rack/mock.rb
1064
+ - vendor/rack-1.0.0-git/lib/rack/recursive.rb
1065
+ - vendor/rack-1.0.0-git/lib/rack/reloader.rb
1066
+ - vendor/rack-1.0.0-git/lib/rack/request.rb
1067
+ - vendor/rack-1.0.0-git/lib/rack/response.rb
1068
+ - vendor/rack-1.0.0-git/lib/rack/rewindable_input.rb
1069
+ - vendor/rack-1.0.0-git/lib/rack/session
1070
+ - vendor/rack-1.0.0-git/lib/rack/session/abstract
1071
+ - vendor/rack-1.0.0-git/lib/rack/session/abstract/id.rb
1072
+ - vendor/rack-1.0.0-git/lib/rack/session/cookie.rb
1073
+ - vendor/rack-1.0.0-git/lib/rack/session/memcache.rb
1074
+ - vendor/rack-1.0.0-git/lib/rack/session/pool.rb
1075
+ - vendor/rack-1.0.0-git/lib/rack/showexceptions.rb
1076
+ - vendor/rack-1.0.0-git/lib/rack/showstatus.rb
1077
+ - vendor/rack-1.0.0-git/lib/rack/static.rb
1078
+ - vendor/rack-1.0.0-git/lib/rack/urlmap.rb
1079
+ - vendor/rack-1.0.0-git/lib/rack/utils.rb
1080
+ - vendor/rack-1.0.0-git/lib/rack.rb
1081
+ - vendor/rack-1.0.0-git/Rakefile
1082
+ - vendor/rack-1.0.0-git/README
1183
1083
  - vendor/README
1184
1084
  - vendor/README_FOR_PACKAGERS
1185
1085
  - test/ApplicationPoolServer_ApplicationPoolTest.cpp
@@ -1383,8 +1283,9 @@ files:
1383
1283
  - test/stub/rails_apps/mycook/tmp/sessions
1384
1284
  - test/stub/rails_apps/mycook/tmp/sockets
1385
1285
  - test/stub/railsapp/app/controllers/application.rb
1386
- - test/stub/railsapp/app/controllers/bar_controller_1.rb
1387
- - test/stub/railsapp/app/controllers/bar_controller_2.rb
1286
+ - test/stub/railsapp/app/controllers/bar_controller.rb
1287
+ - test/stub/railsapp/app/controllers/bar_controller_1.txt
1288
+ - test/stub/railsapp/app/controllers/bar_controller_2.txt
1388
1289
  - test/stub/railsapp/app/controllers/foo_controller.rb
1389
1290
  - test/stub/railsapp/app/helpers/application_helper.rb
1390
1291
  - test/stub/railsapp/config/environments/development.rb
@@ -1,194 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>Class: ConditionVariable</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
-
11
- <script language="JavaScript" type="text/javascript">
12
- // <![CDATA[
13
-
14
- function toggleSource( id )
15
- {
16
- var elem
17
- var link
18
-
19
- if( document.getElementById )
20
- {
21
- elem = document.getElementById( id )
22
- link = document.getElementById( "l_" + id )
23
- }
24
- else if ( document.all )
25
- {
26
- elem = eval( "document.all." + id )
27
- link = eval( "document.all.l_" + id )
28
- }
29
- else
30
- return false;
31
-
32
- if( elem.style.display == "block" )
33
- {
34
- elem.style.display = "none"
35
- link.innerHTML = "show source"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "hide source"
41
- }
42
- }
43
-
44
- function openCode( url )
45
- {
46
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
- }
48
- // ]]>
49
- </script>
50
- </head>
51
-
52
- <body>
53
- <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
- <td class="file-title"><span class="file-title-prefix">Class</span><br />ConditionVariable</td>
55
- <td align="right">
56
- <table cellspacing="0" cellpadding="2">
57
- <tr valign="top">
58
- <td>In:</td>
59
- <td>
60
- <a href="../files/lib/phusion_passenger/utils_rb.html">lib/phusion_passenger/utils.rb</a>
61
- </td>
62
- </tr>
63
- <tr>
64
- <td>Parent:</td>
65
- <td>
66
- Object
67
- </td>
68
- </tr>
69
- </table>
70
- </td>
71
- </tr>
72
- </table>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
- <div id="content">
77
-
78
-
79
-
80
-
81
- <div class="sectiontitle">Methods</div>
82
- <ul>
83
- <li><a href="#M000003">timed_wait</a></li>
84
- <li><a href="#M000004">timed_wait!</a></li>
85
- </ul>
86
-
87
-
88
-
89
-
90
-
91
-
92
- <div class="sectiontitle">Public Instance methods</div>
93
- <div class="method">
94
- <div class="title">
95
- <a name="M000003"></a><b>timed_wait</b>(mutex, secs)
96
- </div>
97
- <div class="description">
98
- <p>
99
- This is like ConditionVariable.wait(), but allows one to wait a maximum
100
- amount of time. Returns true if this condition was signaled, false if a
101
- timeout occurred.
102
- </p>
103
- </div>
104
- <div class="sourcecode">
105
- <p class="source-link">[ <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show source</a> ]</p>
106
- <div id="M000003_source" class="dyn-source">
107
- <pre>
108
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 381</span>
109
- 381: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timed_wait</span>(<span class="ruby-identifier">mutex</span>, <span class="ruby-identifier">secs</span>)
110
- 382: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">100000000</span>
111
- 383: <span class="ruby-comment cmt"># NOTE: If one calls timeout() on FreeBSD 5 with an</span>
112
- 384: <span class="ruby-comment cmt"># argument of more than 100000000, then MRI will become</span>
113
- 385: <span class="ruby-comment cmt"># stuck in an infite loop, blocking all threads. It seems</span>
114
- 386: <span class="ruby-comment cmt"># that MRI uses select() to implement sleeping.</span>
115
- 387: <span class="ruby-comment cmt"># I think that a value of more than 100000000 overflows</span>
116
- 388: <span class="ruby-comment cmt"># select()'s data structures, causing it to behave incorrectly.</span>
117
- 389: <span class="ruby-comment cmt"># So we just make sure we can't sleep more than 100000000</span>
118
- 390: <span class="ruby-comment cmt"># seconds.</span>
119
- 391: <span class="ruby-identifier">secs</span> = <span class="ruby-value">100000000</span>
120
- 392: <span class="ruby-keyword kw">end</span>
121
- 393: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">RUBY_ENGINE</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;jruby&quot;</span>
122
- 394: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
123
- 395: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>, <span class="ruby-identifier">secs</span>)
124
- 396: <span class="ruby-keyword kw">else</span>
125
- 397: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
126
- 398: <span class="ruby-keyword kw">end</span>
127
- 399: <span class="ruby-keyword kw">else</span>
128
- 400: <span class="ruby-identifier">require</span> <span class="ruby-value str">'timeout'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Timeout</span>)
129
- 401: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
130
- 402: <span class="ruby-constant">Timeout</span>.<span class="ruby-identifier">timeout</span>(<span class="ruby-identifier">secs</span>) <span class="ruby-keyword kw">do</span>
131
- 403: <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
132
- 404: <span class="ruby-keyword kw">end</span>
133
- 405: <span class="ruby-keyword kw">else</span>
134
- 406: <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
135
- 407: <span class="ruby-keyword kw">end</span>
136
- 408: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
137
- 409: <span class="ruby-keyword kw">end</span>
138
- 410: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
139
- 411: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
140
- 412: <span class="ruby-keyword kw">end</span>
141
- </pre>
142
- </div>
143
- </div>
144
- </div>
145
- <div class="method">
146
- <div class="title">
147
- <a name="M000004"></a><b>timed_wait!</b>(mutex, secs)
148
- </div>
149
- <div class="description">
150
- <p>
151
- This is like ConditionVariable.wait(), but allows one to wait a maximum
152
- amount of time. Raises Timeout::Error if the timeout has elapsed.
153
- </p>
154
- </div>
155
- <div class="sourcecode">
156
- <p class="source-link">[ <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show source</a> ]</p>
157
- <div id="M000004_source" class="dyn-source">
158
- <pre>
159
- <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 416</span>
160
- 416: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timed_wait!</span>(<span class="ruby-identifier">mutex</span>, <span class="ruby-identifier">secs</span>)
161
- 417: <span class="ruby-identifier">require</span> <span class="ruby-value str">'timeout'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Timeout</span>)
162
- 418: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">100000000</span>
163
- 419: <span class="ruby-comment cmt"># See the corresponding note for timed_wait().</span>
164
- 420: <span class="ruby-identifier">secs</span> = <span class="ruby-value">100000000</span>
165
- 421: <span class="ruby-keyword kw">end</span>
166
- 422: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">RUBY_ENGINE</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">RUBY_ENGINE</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;jruby&quot;</span>
167
- 423: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
168
- 424: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>, <span class="ruby-identifier">secs</span>)
169
- 425: <span class="ruby-identifier">raise</span> <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-value str">&quot;Timeout&quot;</span>
170
- 426: <span class="ruby-keyword kw">end</span>
171
- 427: <span class="ruby-keyword kw">else</span>
172
- 428: <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
173
- 429: <span class="ruby-keyword kw">end</span>
174
- 430: <span class="ruby-keyword kw">else</span>
175
- 431: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">secs</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
176
- 432: <span class="ruby-constant">Timeout</span>.<span class="ruby-identifier">timeout</span>(<span class="ruby-identifier">secs</span>) <span class="ruby-keyword kw">do</span>
177
- 433: <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
178
- 434: <span class="ruby-keyword kw">end</span>
179
- 435: <span class="ruby-keyword kw">else</span>
180
- 436: <span class="ruby-identifier">wait</span>(<span class="ruby-identifier">mutex</span>)
181
- 437: <span class="ruby-keyword kw">end</span>
182
- 438: <span class="ruby-keyword kw">end</span>
183
- 439: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
184
- 440: <span class="ruby-keyword kw">end</span>
185
- </pre>
186
- </div>
187
- </div>
188
- </div>
189
- </div>
190
-
191
- </div>
192
-
193
- </body>
194
- </html>