mongrel 0.3.13.2 → 0.3.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. data/COPYING +39 -488
  2. data/LICENSE +39 -488
  3. data/Rakefile +1 -1
  4. data/bin/mongrel_rails +8 -0
  5. data/doc/rdoc/classes/IO.src/M000001.html +5 -5
  6. data/doc/rdoc/classes/IO.src/M000002.html +5 -5
  7. data/doc/rdoc/classes/Kernel.src/M000020.html +5 -5
  8. data/doc/rdoc/classes/Kernel.src/M000021.html +9 -9
  9. data/doc/rdoc/classes/Mongrel.html +4 -22
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +10 -10
  11. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +33 -33
  12. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +20 -20
  13. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +13 -13
  14. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000105.html +11 -11
  15. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +4 -4
  16. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000107.html +4 -4
  17. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000108.html +4 -4
  18. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000109.html +5 -5
  19. data/doc/rdoc/classes/Mongrel/Camping.src/M000048.html +8 -8
  20. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +4 -4
  21. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +36 -36
  22. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +10 -10
  23. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +28 -28
  24. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +4 -4
  25. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +4 -4
  26. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +4 -4
  27. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +4 -4
  28. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +8 -8
  29. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +4 -4
  30. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +4 -4
  31. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +4 -4
  32. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +10 -10
  33. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +10 -10
  34. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +4 -4
  35. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +6 -6
  36. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +11 -11
  37. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +33 -33
  38. data/doc/rdoc/classes/Mongrel/Configurator.html +2 -2
  39. data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +13 -13
  40. data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +17 -17
  41. data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +6 -6
  42. data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +6 -6
  43. data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +9 -9
  44. data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +4 -4
  45. data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +23 -23
  46. data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +5 -5
  47. data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +16 -16
  48. data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +18 -18
  49. data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +4 -4
  50. data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +10 -10
  51. data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +5 -5
  52. data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +4 -4
  53. data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +8 -8
  54. data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +11 -11
  55. data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +4 -4
  56. data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +21 -21
  57. data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +4 -4
  58. data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +19 -19
  59. data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +4 -4
  60. data/doc/rdoc/classes/Mongrel/Const.html +1 -1
  61. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000099.html +5 -5
  62. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000100.html +14 -14
  63. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +7 -7
  64. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +29 -29
  65. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +28 -28
  66. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +48 -48
  67. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +25 -25
  68. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +4 -4
  69. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000131.html +4 -4
  70. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000132.html +4 -4
  71. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000072.html +4 -4
  72. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000073.html +4 -4
  73. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000078.html +3 -3
  74. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000079.html +3 -3
  75. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000080.html +3 -3
  76. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +3 -3
  77. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +3 -3
  78. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +5 -5
  79. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000025.html +3 -3
  80. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +42 -42
  81. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000139.html +6 -6
  82. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000140.html +6 -6
  83. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000141.html +18 -18
  84. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +11 -11
  85. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +6 -6
  86. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +11 -11
  87. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +8 -8
  88. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +8 -8
  89. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +8 -8
  90. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +17 -17
  91. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +7 -7
  92. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +6 -6
  93. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +6 -6
  94. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +6 -6
  95. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +4 -4
  96. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +11 -11
  97. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +71 -71
  98. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +17 -17
  99. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +7 -7
  100. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +36 -37
  101. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +20 -20
  102. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +4 -4
  103. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +8 -8
  104. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +25 -25
  105. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +11 -11
  106. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +12 -12
  107. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +8 -8
  108. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +36 -36
  109. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +9 -9
  110. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000136.html +8 -8
  111. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000137.html +13 -13
  112. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000133.html +10 -10
  113. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000134.html +10 -10
  114. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000135.html +4 -4
  115. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +4 -4
  116. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +10 -10
  117. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000076.html +28 -28
  118. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000077.html +6 -6
  119. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +4 -4
  120. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +4 -4
  121. data/doc/rdoc/classes/MongrelDbg.src/M000015.html +5 -5
  122. data/doc/rdoc/classes/MongrelDbg.src/M000016.html +6 -6
  123. data/doc/rdoc/classes/MongrelDbg.src/M000017.html +8 -8
  124. data/doc/rdoc/classes/MongrelDbg.src/M000018.html +7 -7
  125. data/doc/rdoc/classes/MongrelDbg.src/M000019.html +4 -4
  126. data/doc/rdoc/classes/ObjectTracker.src/M000013.html +13 -13
  127. data/doc/rdoc/classes/ObjectTracker.src/M000014.html +30 -30
  128. data/doc/rdoc/classes/RequestLog/Access.src/M000142.html +5 -5
  129. data/doc/rdoc/classes/RequestLog/Files.src/M000143.html +5 -5
  130. data/doc/rdoc/classes/RequestLog/Objects.src/M000145.html +5 -5
  131. data/doc/rdoc/classes/RequestLog/Params.src/M000146.html +5 -5
  132. data/doc/rdoc/classes/RequestLog/Threads.src/M000144.html +20 -20
  133. data/doc/rdoc/classes/Stats.src/M000005.html +5 -5
  134. data/doc/rdoc/classes/Stats.src/M000006.html +9 -9
  135. data/doc/rdoc/classes/Stats.src/M000007.html +12 -12
  136. data/doc/rdoc/classes/Stats.src/M000008.html +4 -4
  137. data/doc/rdoc/classes/Stats.src/M000009.html +4 -4
  138. data/doc/rdoc/classes/Stats.src/M000010.html +4 -4
  139. data/doc/rdoc/classes/Stats.src/M000011.html +9 -9
  140. data/doc/rdoc/classes/Stats.src/M000012.html +6 -6
  141. data/doc/rdoc/classes/TCPServer.src/M000003.html +5 -5
  142. data/doc/rdoc/created.rid +1 -1
  143. data/doc/rdoc/files/COPYING.html +51 -639
  144. data/doc/rdoc/files/LICENSE.html +51 -639
  145. data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
  146. data/doc/rdoc/files/lib/mongrel/camping_rb.html +6 -21
  147. data/doc/rdoc/files/lib/mongrel/cgi_rb.html +6 -21
  148. data/doc/rdoc/files/lib/mongrel/command_rb.html +6 -21
  149. data/doc/rdoc/files/lib/mongrel/debug_rb.html +6 -21
  150. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +13 -1
  151. data/doc/rdoc/files/lib/mongrel/init_rb.html +6 -21
  152. data/doc/rdoc/files/lib/mongrel/rails_rb.html +6 -21
  153. data/doc/rdoc/files/lib/mongrel/stats_rb.html +6 -21
  154. data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +6 -21
  155. data/doc/rdoc/files/lib/mongrel_rb.html +6 -21
  156. data/ext/http11/http11.c +4 -19
  157. data/ext/http11/http11_parser.c +48 -63
  158. data/ext/http11/http11_parser.h +3 -17
  159. data/lib/http11.so +0 -0
  160. data/lib/mongrel.rb +10 -23
  161. data/lib/mongrel/camping.rb +4 -16
  162. data/lib/mongrel/cgi.rb +4 -16
  163. data/lib/mongrel/command.rb +4 -16
  164. data/lib/mongrel/debug.rb +4 -16
  165. data/lib/mongrel/handlers.rb +6 -17
  166. data/lib/mongrel/init.rb +4 -16
  167. data/lib/mongrel/rails.rb +4 -16
  168. data/lib/mongrel/stats.rb +4 -16
  169. data/lib/mongrel/tcphack.rb +4 -16
  170. data/test/test_command.rb +4 -16
  171. data/test/test_conditional.rb +4 -16
  172. data/test/test_configurator.rb +4 -16
  173. data/test/test_debug.rb +4 -16
  174. data/test/test_handlers.rb +4 -16
  175. data/test/test_http11.rb +4 -16
  176. data/test/test_redirect_handler.rb +6 -0
  177. data/test/test_request_progress.rb +58 -0
  178. data/test/test_response.rb +4 -16
  179. data/test/test_stats.rb +4 -16
  180. data/test/test_uriclassifier.rb +4 -16
  181. data/test/test_ws.rb +4 -16
  182. data/test/testhelp.rb +6 -0
  183. metadata +5 -2
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 369</span>
14
- 369: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ops</span>={})
15
- 370: <span class="ruby-ivar">@stats</span> = <span class="ruby-identifier">ops</span>[<span class="ruby-identifier">:stats_filter</span>]
16
- 371: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 358</span>
14
+ 358: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ops</span>={})
15
+ 359: <span class="ruby-ivar">@stats</span> = <span class="ruby-identifier">ops</span>[<span class="ruby-identifier">:stats_filter</span>]
16
+ 360: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,15 +10,15 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 373</span>
14
- 373: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">rows</span>)
15
- 374: <span class="ruby-identifier">results</span> = <span class="ruby-node">&quot;&lt;table border=\&quot;1\&quot;&gt;&lt;tr&gt;&lt;th colspan=\&quot;#{rows[0].length}\&quot;&gt;#{title}&lt;/th&gt;&lt;/tr&gt;&quot;</span>
16
- 375: <span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cols</span><span class="ruby-operator">|</span>
17
- 376: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;tr&gt;&quot;</span>
18
- 377: <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span> <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;#{col}&lt;/td&gt;&quot;</span> }
19
- 378: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/tr&gt;&quot;</span>
20
- 379: <span class="ruby-keyword kw">end</span>
21
- 380: <span class="ruby-identifier">results</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;&lt;/table&gt;&quot;</span>
22
- 381: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 362</span>
14
+ 362: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">rows</span>)
15
+ 363: <span class="ruby-identifier">results</span> = <span class="ruby-node">&quot;&lt;table border=\&quot;1\&quot;&gt;&lt;tr&gt;&lt;th colspan=\&quot;#{rows[0].length}\&quot;&gt;#{title}&lt;/th&gt;&lt;/tr&gt;&quot;</span>
16
+ 364: <span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cols</span><span class="ruby-operator">|</span>
17
+ 365: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;tr&gt;&quot;</span>
18
+ 366: <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span> <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;td&gt;#{col}&lt;/td&gt;&quot;</span> }
19
+ 367: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/tr&gt;&quot;</span>
20
+ 368: <span class="ruby-keyword kw">end</span>
21
+ 369: <span class="ruby-identifier">results</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;&lt;/table&gt;&quot;</span>
22
+ 370: <span class="ruby-keyword kw">end</span></pre>
23
23
  </body>
24
24
  </html>
@@ -10,33 +10,33 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 383</span>
14
- 383: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe_listener</span>
15
- 384: <span class="ruby-identifier">results</span> = <span class="ruby-value str">&quot;&quot;</span>
16
- 385: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;h1&gt;Listener #{listener.host}:#{listener.port}&lt;/h1&gt;&quot;</span>
17
- 386: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;settings&quot;</span>, [
18
- 387: [<span class="ruby-value str">&quot;host&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">host</span>],
19
- 388: [<span class="ruby-value str">&quot;port&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">port</span>],
20
- 389: [<span class="ruby-value str">&quot;timeout&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">timeout</span>],
21
- 390: [<span class="ruby-value str">&quot;workers max&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">num_processors</span>],
22
- 391: ])
23
- 392:
24
- 393: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stats</span>
25
- 394: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Statistics&lt;/h2&gt;&lt;p&gt;N means the number of samples, pay attention to MEAN, SD, MIN and MAX.&quot;</span>
26
- 395: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;pre&gt;#{@stats.dump}&lt;/pre&gt;&quot;</span>
27
- 396: <span class="ruby-keyword kw">end</span>
28
- 397:
29
- 398: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Registered Handlers&lt;/h2&gt;&quot;</span>
30
- 399: <span class="ruby-identifier">uris</span> = <span class="ruby-identifier">listener</span>.<span class="ruby-identifier">classifier</span>.<span class="ruby-identifier">handler_map</span>
31
- 400: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;handlers&quot;</span>, <span class="ruby-identifier">uris</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">uri</span>,<span class="ruby-identifier">handlers</span><span class="ruby-operator">|</span>
32
- 401: [<span class="ruby-identifier">uri</span>,
33
- 402: <span class="ruby-value str">&quot;&lt;pre&gt;&quot;</span> <span class="ruby-operator">+</span>
34
- 403: <span class="ruby-identifier">handlers</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>) <span class="ruby-operator">+</span>
35
- 404: <span class="ruby-value str">&quot;&lt;/pre&gt;&quot;</span>
36
- 405: ]
37
- 406: })
38
- 407:
39
- 408: <span class="ruby-identifier">results</span>
40
- 409: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 372</span>
14
+ 372: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe_listener</span>
15
+ 373: <span class="ruby-identifier">results</span> = <span class="ruby-value str">&quot;&quot;</span>
16
+ 374: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;h1&gt;Listener #{listener.host}:#{listener.port}&lt;/h1&gt;&quot;</span>
17
+ 375: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;settings&quot;</span>, [
18
+ 376: [<span class="ruby-value str">&quot;host&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">host</span>],
19
+ 377: [<span class="ruby-value str">&quot;port&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">port</span>],
20
+ 378: [<span class="ruby-value str">&quot;timeout&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">timeout</span>],
21
+ 379: [<span class="ruby-value str">&quot;workers max&quot;</span>,<span class="ruby-identifier">listener</span>.<span class="ruby-identifier">num_processors</span>],
22
+ 380: ])
23
+ 381:
24
+ 382: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@stats</span>
25
+ 383: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Statistics&lt;/h2&gt;&lt;p&gt;N means the number of samples, pay attention to MEAN, SD, MIN and MAX.&quot;</span>
26
+ 384: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;pre&gt;#{@stats.dump}&lt;/pre&gt;&quot;</span>
27
+ 385: <span class="ruby-keyword kw">end</span>
28
+ 386:
29
+ 387: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;h2&gt;Registered Handlers&lt;/h2&gt;&quot;</span>
30
+ 388: <span class="ruby-identifier">uris</span> = <span class="ruby-identifier">listener</span>.<span class="ruby-identifier">classifier</span>.<span class="ruby-identifier">handler_map</span>
31
+ 389: <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">table</span>(<span class="ruby-value str">&quot;handlers&quot;</span>, <span class="ruby-identifier">uris</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">uri</span>,<span class="ruby-identifier">handlers</span><span class="ruby-operator">|</span>
32
+ 390: [<span class="ruby-identifier">uri</span>,
33
+ 391: <span class="ruby-value str">&quot;&lt;pre&gt;&quot;</span> <span class="ruby-operator">+</span>
34
+ 392: <span class="ruby-identifier">handlers</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>) <span class="ruby-operator">+</span>
35
+ 393: <span class="ruby-value str">&quot;&lt;/pre&gt;&quot;</span>
36
+ 394: ]
37
+ 395: })
38
+ 396:
39
+ 397: <span class="ruby-identifier">results</span>
40
+ 398: <span class="ruby-keyword kw">end</span></pre>
41
41
  </body>
42
42
  </html>
@@ -10,11 +10,11 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 411</span>
14
- 411: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
- 412: <span class="ruby-identifier">response</span>.<span class="ruby-identifier">start</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">head</span>,<span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
16
- 413: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">write</span> <span class="ruby-value str">&quot;&lt;html&gt;&lt;body&gt;&lt;title&gt;Mongrel Server Status&lt;/title&gt;\n\#{describe_listener}\n&lt;/body&gt;&lt;/html&gt;\n&quot;</span>
17
- 414: <span class="ruby-keyword kw">end</span>
18
- 415: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/handlers.rb, line 400</span>
14
+ 400: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
+ 401: <span class="ruby-identifier">response</span>.<span class="ruby-identifier">start</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">head</span>,<span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
16
+ 402: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">write</span> <span class="ruby-value str">&quot;&lt;html&gt;&lt;body&gt;&lt;title&gt;Mongrel Server Status&lt;/title&gt;\n\#{describe_listener}\n&lt;/body&gt;&lt;/html&gt;\n&quot;</span>
17
+ 403: <span class="ruby-keyword kw">end</span>
18
+ 404: <span class="ruby-keyword kw">end</span></pre>
19
19
  </body>
20
20
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 52</span>
14
- 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uris</span>
15
- 53: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">keys</span>
16
- 54: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 40</span>
14
+ 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uris</span>
15
+ 41: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">keys</span>
16
+ 42: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 57</span>
14
- 57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
15
- 58: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">inspect</span>
16
- 59: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 45</span>
14
+ 45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
15
+ 46: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">inspect</span>
16
+ 47: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 29</span>
14
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">configure</span>(<span class="ruby-identifier">log_dir</span> = <span class="ruby-value str">&quot;log/mongrel_debug&quot;</span>)
15
- 30: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">log_dir</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">log_dir</span>)
16
- 31: <span class="ruby-ivar">@log_dir</span> = <span class="ruby-identifier">log_dir</span>
17
- 32: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 17</span>
14
+ 17: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">configure</span>(<span class="ruby-identifier">log_dir</span> = <span class="ruby-value str">&quot;log/mongrel_debug&quot;</span>)
15
+ 18: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">log_dir</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">log_dir</span>)
16
+ 19: <span class="ruby-ivar">@log_dir</span> = <span class="ruby-identifier">log_dir</span>
17
+ 20: <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,11 +10,11 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 35</span>
14
- 35: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">message</span>)
15
- 36: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] <span class="ruby-keyword kw">and</span> <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>]
16
- 37: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>].<span class="ruby-identifier">log</span>(<span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>, <span class="ruby-identifier">message</span>)
17
- 38: <span class="ruby-keyword kw">end</span>
18
- 39: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 23</span>
14
+ 23: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">message</span>)
15
+ 24: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] <span class="ruby-keyword kw">and</span> <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>]
16
+ 25: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>].<span class="ruby-identifier">log</span>(<span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>, <span class="ruby-identifier">message</span>)
17
+ 26: <span class="ruby-keyword kw">end</span>
18
+ 27: <span class="ruby-keyword kw">end</span></pre>
19
19
  </body>
20
20
  </html>
@@ -10,13 +10,13 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 41</span>
14
- 41: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">begin_trace</span>(<span class="ruby-identifier">target</span>)
15
- 42: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">true</span>
16
- 43: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>]
17
- 44: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>] = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@log_dir</span>, <span class="ruby-node">&quot;#{target.to_s}.log&quot;</span>))
18
- 45: <span class="ruby-keyword kw">end</span>
19
- 46: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-node">&quot;TRACING ON #{Time.now}&quot;</span>)
20
- 47: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 29</span>
14
+ 29: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">begin_trace</span>(<span class="ruby-identifier">target</span>)
15
+ 30: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">true</span>
16
+ 31: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>]
17
+ 32: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>] = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@log_dir</span>, <span class="ruby-node">&quot;#{target.to_s}.log&quot;</span>))
18
+ 33: <span class="ruby-keyword kw">end</span>
19
+ 34: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-node">&quot;TRACING ON #{Time.now}&quot;</span>)
20
+ 35: <span class="ruby-keyword kw">end</span></pre>
21
21
  </body>
22
22
  </html>
@@ -10,12 +10,12 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 49</span>
14
- 49: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">end_trace</span>(<span class="ruby-identifier">target</span>)
15
- 50: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">false</span>
16
- 51: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-node">&quot;TRACING OFF #{Time.now}&quot;</span>)
17
- 52: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>].<span class="ruby-identifier">close</span>
18
- 53: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">nil</span>
19
- 54: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 37</span>
14
+ 37: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">end_trace</span>(<span class="ruby-identifier">target</span>)
15
+ 38: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">false</span>
16
+ 39: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">target</span>, <span class="ruby-node">&quot;TRACING OFF #{Time.now}&quot;</span>)
17
+ 40: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>].<span class="ruby-identifier">close</span>
18
+ 41: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">nil</span>
19
+ 42: <span class="ruby-keyword kw">end</span></pre>
20
20
  </body>
21
21
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 56</span>
14
- 56: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">tracing?</span>(<span class="ruby-identifier">target</span>)
15
- 57: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>]
16
- 58: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 44</span>
14
+ 44: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">tracing?</span>(<span class="ruby-identifier">target</span>)
15
+ 45: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>]
16
+ 46: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,18 +10,18 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 65</span>
14
- 65: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">configure</span>
15
- 66: <span class="ruby-ivar">@active_objects</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
16
- 67:
17
- 68: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
18
- 69: <span class="ruby-keyword kw">begin</span>
19
- 70: <span class="ruby-comment cmt"># believe it or not, some idiots actually alter the object_id method</span>
20
- 71: <span class="ruby-ivar">@active_objects</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">object_id</span>
21
- 72: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
22
- 73: <span class="ruby-comment cmt"># skip this one, he's an idiot</span>
23
- 74: <span class="ruby-keyword kw">end</span>
24
- 75: <span class="ruby-keyword kw">end</span>
25
- 76: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 53</span>
14
+ 53: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">configure</span>
15
+ 54: <span class="ruby-ivar">@active_objects</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
16
+ 55:
17
+ 56: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
18
+ 57: <span class="ruby-keyword kw">begin</span>
19
+ 58: <span class="ruby-comment cmt"># believe it or not, some idiots actually alter the object_id method</span>
20
+ 59: <span class="ruby-ivar">@active_objects</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">object_id</span>
21
+ 60: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
22
+ 61: <span class="ruby-comment cmt"># skip this one, he's an idiot</span>
23
+ 62: <span class="ruby-keyword kw">end</span>
24
+ 63: <span class="ruby-keyword kw">end</span>
25
+ 64: <span class="ruby-keyword kw">end</span></pre>
26
26
  </body>
27
27
  </html>
@@ -10,35 +10,35 @@
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 78</span>
14
- 78: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">sample</span>
15
- 79: <span class="ruby-identifier">ospace</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
16
- 80: <span class="ruby-identifier">counts</span> = {}
17
- 81:
18
- 82: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
19
- 83: <span class="ruby-keyword kw">begin</span>
20
- 84: <span class="ruby-identifier">ospace</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">object_id</span>
21
- 85: <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>] <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
22
- 86: <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
23
- 87: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
24
- 88: <span class="ruby-comment cmt"># skip since object_id can magically get parameters</span>
25
- 89: <span class="ruby-keyword kw">end</span>
26
- 90: <span class="ruby-keyword kw">end</span>
27
- 91:
28
- 92: <span class="ruby-identifier">dead_objects</span> = <span class="ruby-ivar">@active_objects</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">ospace</span>
29
- 93: <span class="ruby-identifier">new_objects</span> = <span class="ruby-identifier">ospace</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@active_objects</span>
30
- 94: <span class="ruby-identifier">live_objects</span> = <span class="ruby-identifier">ospace</span> <span class="ruby-operator">&amp;</span> <span class="ruby-ivar">@active_objects</span>
31
- 95:
32
- 96: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>, <span class="ruby-node">&quot;COUNTS: #{dead_objects.length},#{new_objects.length},#{live_objects.length}&quot;</span>)
33
- 97:
34
- 98: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">tracing?</span> <span class="ruby-identifier">:objects</span>
35
- 99: <span class="ruby-identifier">top_20</span> = <span class="ruby-identifier">counts</span>.<span class="ruby-identifier">sort</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">a</span>[<span class="ruby-value">1</span>]}[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">20</span>]
36
- 100: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>,<span class="ruby-node">&quot;TOP 20: #{top_20.inspect}&quot;</span>)
37
- 101: <span class="ruby-keyword kw">end</span>
38
- 102:
39
- 103: <span class="ruby-ivar">@active_objects</span> = <span class="ruby-identifier">live_objects</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">new_objects</span>
40
- 104:
41
- 105: [<span class="ruby-ivar">@active_objects</span>, <span class="ruby-identifier">top_20</span>]
42
- 106: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 66</span>
14
+ 66: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">sample</span>
15
+ 67: <span class="ruby-identifier">ospace</span> = <span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>
16
+ 68: <span class="ruby-identifier">counts</span> = {}
17
+ 69:
18
+ 70: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
19
+ 71: <span class="ruby-keyword kw">begin</span>
20
+ 72: <span class="ruby-identifier">ospace</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">object_id</span>
21
+ 73: <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>] <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
22
+ 74: <span class="ruby-identifier">counts</span>[<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
23
+ 75: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
24
+ 76: <span class="ruby-comment cmt"># skip since object_id can magically get parameters</span>
25
+ 77: <span class="ruby-keyword kw">end</span>
26
+ 78: <span class="ruby-keyword kw">end</span>
27
+ 79:
28
+ 80: <span class="ruby-identifier">dead_objects</span> = <span class="ruby-ivar">@active_objects</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">ospace</span>
29
+ 81: <span class="ruby-identifier">new_objects</span> = <span class="ruby-identifier">ospace</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@active_objects</span>
30
+ 82: <span class="ruby-identifier">live_objects</span> = <span class="ruby-identifier">ospace</span> <span class="ruby-operator">&amp;</span> <span class="ruby-ivar">@active_objects</span>
31
+ 83:
32
+ 84: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>, <span class="ruby-node">&quot;COUNTS: #{dead_objects.length},#{new_objects.length},#{live_objects.length}&quot;</span>)
33
+ 85:
34
+ 86: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">tracing?</span> <span class="ruby-identifier">:objects</span>
35
+ 87: <span class="ruby-identifier">top_20</span> = <span class="ruby-identifier">counts</span>.<span class="ruby-identifier">sort</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">a</span>[<span class="ruby-value">1</span>]}[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">20</span>]
36
+ 88: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>,<span class="ruby-node">&quot;TOP 20: #{top_20.inspect}&quot;</span>)
37
+ 89: <span class="ruby-keyword kw">end</span>
38
+ 90:
39
+ 91: <span class="ruby-ivar">@active_objects</span> = <span class="ruby-identifier">live_objects</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">new_objects</span>
40
+ 92:
41
+ 93: [<span class="ruby-ivar">@active_objects</span>, <span class="ruby-identifier">top_20</span>]
42
+ 94: <span class="ruby-keyword kw">end</span></pre>
43
43
  </body>
44
44
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 155</span>
14
- 155: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>,<span class="ruby-identifier">response</span>)
15
- 156: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">params</span>
16
- 157: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{p['REMOTE_ADDR']} - [#{Time.now.httpdate}] \&quot;#{p['REQUEST_METHOD']} #{p[&quot;REQUEST_URI&quot;]} HTTP/1.1\&quot;&quot;</span>
17
- 158: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 143</span>
14
+ 143: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>,<span class="ruby-identifier">response</span>)
15
+ 144: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">params</span>
16
+ 145: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{p['REMOTE_ADDR']} - [#{Time.now.httpdate}] \&quot;#{p['REQUEST_METHOD']} #{p[&quot;REQUEST_URI&quot;]} HTTP/1.1\&quot;&quot;</span>
17
+ 146: <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 165</span>
14
- 165: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
- 166: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:files</span>, <span class="ruby-node">&quot;#{Time.now} FILES OPEN BEFORE REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
- 167: <span class="ruby-identifier">log_open_files</span>
17
- 168: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 153</span>
14
+ 153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
+ 154: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:files</span>, <span class="ruby-node">&quot;#{Time.now} FILES OPEN BEFORE REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
+ 155: <span class="ruby-identifier">log_open_files</span>
17
+ 156: <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 175</span>
14
- 175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
- 176: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>, <span class="ruby-node">&quot;#{'-' * 10}\n#{Time.now} OBJECT STATS BEFORE REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
- 177: <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">sample</span>
17
- 178: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 163</span>
14
+ 163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
+ 164: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:objects</span>, <span class="ruby-node">&quot;#{'-' * 10}\n#{Time.now} OBJECT STATS BEFORE REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
+ 165: <span class="ruby-constant">ObjectTracker</span>.<span class="ruby-identifier">sample</span>
17
+ 166: <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,10 +10,10 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 186</span>
14
- 186: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
- 187: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:rails</span>, <span class="ruby-node">&quot;#{Time.now} REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
- 188: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:rails</span>, <span class="ruby-identifier">request</span>.<span class="ruby-identifier">params</span>.<span class="ruby-identifier">to_yaml</span>)
17
- 189: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 174</span>
14
+ 174: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
+ 175: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:rails</span>, <span class="ruby-node">&quot;#{Time.now} REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
+ 176: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:rails</span>, <span class="ruby-identifier">request</span>.<span class="ruby-identifier">params</span>.<span class="ruby-identifier">to_yaml</span>)
17
+ 177: <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -10,25 +10,25 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 196</span>
14
- 196: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
- 197: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:threads</span>, <span class="ruby-node">&quot;#{Time.now} REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
- 198: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
17
- 199: <span class="ruby-keyword kw">begin</span>
18
- 200: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpServer</span>
19
- 201: <span class="ruby-identifier">worker_list</span> = <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">workers</span>.<span class="ruby-identifier">list</span>
20
- 202:
21
- 203: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">worker_list</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
22
- 204: <span class="ruby-identifier">keys</span> = <span class="ruby-value str">&quot;-----\n\tKEYS:&quot;</span>
23
- 205: <span class="ruby-identifier">worker_list</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">keys</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\n\t\t-- #{t}: #{t.keys.inspect}&quot;</span> }
24
- 206: <span class="ruby-keyword kw">end</span>
25
- 207:
26
- 208: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:threads</span>, <span class="ruby-node">&quot;#{obj.host}:#{obj.port} -- THREADS: #{worker_list.length} #{keys}&quot;</span>)
27
- 209: <span class="ruby-keyword kw">end</span>
28
- 210: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
29
- 211: <span class="ruby-comment cmt"># ignore since obj.class can sometimes take parameters</span>
30
- 212: <span class="ruby-keyword kw">end</span>
31
- 213: <span class="ruby-keyword kw">end</span>
32
- 214: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 184</span>
14
+ 184: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
15
+ 185: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:threads</span>, <span class="ruby-node">&quot;#{Time.now} REQUEST #{request.params['PATH_INFO']}&quot;</span>)
16
+ 186: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
17
+ 187: <span class="ruby-keyword kw">begin</span>
18
+ 188: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpServer</span>
19
+ 189: <span class="ruby-identifier">worker_list</span> = <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">workers</span>.<span class="ruby-identifier">list</span>
20
+ 190:
21
+ 191: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">worker_list</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
22
+ 192: <span class="ruby-identifier">keys</span> = <span class="ruby-value str">&quot;-----\n\tKEYS:&quot;</span>
23
+ 193: <span class="ruby-identifier">worker_list</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">keys</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\n\t\t-- #{t}: #{t.keys.inspect}&quot;</span> }
24
+ 194: <span class="ruby-keyword kw">end</span>
25
+ 195:
26
+ 196: <span class="ruby-constant">MongrelDbg</span><span class="ruby-operator">::</span><span class="ruby-identifier">trace</span>(<span class="ruby-identifier">:threads</span>, <span class="ruby-node">&quot;#{obj.host}:#{obj.port} -- THREADS: #{worker_list.length} #{keys}&quot;</span>)
27
+ 197: <span class="ruby-keyword kw">end</span>
28
+ 198: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
29
+ 199: <span class="ruby-comment cmt"># ignore since obj.class can sometimes take parameters</span>
30
+ 200: <span class="ruby-keyword kw">end</span>
31
+ 201: <span class="ruby-keyword kw">end</span>
32
+ 202: <span class="ruby-keyword kw">end</span></pre>
33
33
  </body>
34
34
  </html>