mongrel 0.3.13.3 → 0.3.13.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -4
- data/bin/mongrel_rails +162 -169
- data/doc/rdoc/classes/IO.src/M000001.html +5 -5
- data/doc/rdoc/classes/IO.src/M000002.html +5 -5
- data/doc/rdoc/classes/Kernel.html +10 -10
- data/doc/rdoc/classes/Kernel.src/M000010.html +19 -0
- data/doc/rdoc/classes/Kernel.src/M000011.html +23 -0
- data/doc/rdoc/classes/Mongrel.html +27 -10
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +67 -54
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000101.html → M000112.html} +11 -10
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000102.html → M000113.html} +31 -31
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000103.html → M000114.html} +20 -20
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000115.html +32 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000105.html → M000116.html} +11 -11
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000106.html → M000117.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000107.html → M000118.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000108.html → M000119.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000109.html → M000120.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.src/{M000048.html → M000039.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/{M000049.html → M000040.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/{M000050.html → M000041.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.html +65 -65
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000016.html +24 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000017.html +42 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000018.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000029.html → M000019.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000030.html → M000020.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000031.html → M000021.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000032.html → M000022.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000033.html → M000023.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000034.html → M000024.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000035.html → M000025.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +11 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +11 -29
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000039.html → M000029.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000040.html → M000030.html} +10 -6
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000031.html +58 -0
- data/doc/rdoc/classes/Mongrel/Configurator.html +115 -115
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000091.html +27 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000092.html +31 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000093.html +21 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000094.html +20 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000095.html +23 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000115.html → M000096.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000116.html → M000097.html} +24 -24
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000117.html → M000098.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000099.html +39 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000119.html → M000100.html} +19 -19
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000120.html → M000101.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000121.html → M000102.html} +10 -10
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000122.html → M000103.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000123.html → M000104.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000124.html → M000105.html} +8 -8
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +22 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000126.html → M000107.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +34 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +18 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +23 -14
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +5 -18
- data/doc/rdoc/classes/Mongrel/Const.html +11 -6
- data/doc/rdoc/classes/Mongrel/DeflateFilter.html +10 -10
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000099.html → M000121.html} +5 -5
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000100.html → M000122.html} +14 -14
- data/doc/rdoc/classes/Mongrel/DirHandler.html +31 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000058.html → M000049.html} +0 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000059.html → M000050.html} +0 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000060.html → M000051.html} +12 -16
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000052.html +63 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000062.html → M000053.html} +25 -25
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000063.html → M000054.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000131.html → M000123.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000132.html → M000124.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000072.html → M000064.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000073.html → M000065.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +15 -15
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000078.html → M000070.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000079.html → M000071.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000080.html → M000072.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +20 -20
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000022.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000023.html → M000013.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000024.html → M000014.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000025.html → M000015.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParams.html +131 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000051.html → M000042.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000052.html → M000043.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000053.html → M000044.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000054.html → M000045.html} +3 -3
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000055.html → M000046.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000056.html → M000047.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000057.html → M000048.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +63 -24
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000130.html +47 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000131.html +37 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000132.html +29 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000139.html → M000133.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000140.html → M000134.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000141.html → M000135.html} +18 -18
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +66 -72
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000073.html +25 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000074.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html +26 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +22 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000085.html → M000077.html} +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000086.html → M000078.html} +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +31 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000088.html → M000080.html} +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +7 -12
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +7 -12
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +5 -9
- data/doc/rdoc/classes/Mongrel/HttpServer.html +58 -43
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000064.html → M000055.html} +11 -11
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000065.html → M000056.html} +76 -72
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000066.html → M000057.html} +18 -17
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000067.html → M000058.html} +7 -7
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000059.html +22 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000060.html +62 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000069.html → M000061.html} +20 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000070.html → M000062.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000071.html → M000063.html} +8 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +15 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000042.html → M000032.html} +23 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000043.html → M000033.html} +11 -11
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000044.html → M000034.html} +12 -12
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +30 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/{M000045.html → M000035.html} +9 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000036.html +54 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html +21 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000038.html +25 -0
- data/doc/rdoc/classes/Mongrel/RedirectHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000136.html → M000128.html} +8 -8
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000137.html → M000129.html} +13 -13
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +16 -16
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000125.html +24 -0
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000134.html → M000126.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000135.html → M000127.html} +4 -4
- data/doc/rdoc/classes/{Stats.html → Mongrel/Stats.html} +44 -60
- data/doc/rdoc/classes/Mongrel/Stats.src/M000136.html +19 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000137.html +23 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000138.html +26 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000139.html +18 -0
- data/doc/rdoc/classes/{Stats.src/M000009.html → Mongrel/Stats.src/M000140.html} +6 -6
- data/doc/rdoc/classes/Mongrel/Stats.src/M000141.html +18 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000142.html +23 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000143.html +20 -0
- data/doc/rdoc/classes/Mongrel/StatusHandler.html +20 -20
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000074.html → M000066.html} +4 -4
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000075.html → M000067.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000076.html → M000068.html} +28 -28
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000077.html → M000069.html} +6 -6
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +30 -30
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000093.html → M000085.html} +4 -4
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000094.html → M000086.html} +4 -4
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000095.html → M000087.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000096.html → M000088.html} +1 -1
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000097.html → M000089.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000098.html → M000090.html} +1 -1
- data/doc/rdoc/classes/MongrelDbg.html +26 -26
- data/doc/rdoc/classes/MongrelDbg.src/M000005.html +24 -0
- data/doc/rdoc/classes/MongrelDbg.src/{M000016.html → M000006.html} +6 -6
- data/doc/rdoc/classes/MongrelDbg.src/{M000017.html → M000007.html} +8 -8
- data/doc/rdoc/classes/MongrelDbg.src/{M000018.html → M000008.html} +7 -7
- data/doc/rdoc/classes/MongrelDbg.src/{M000019.html → M000009.html} +4 -4
- data/doc/rdoc/classes/RequestLog/Access.html +5 -5
- data/doc/rdoc/classes/RequestLog/Access.src/{M000142.html → M000144.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Files.html +5 -5
- data/doc/rdoc/classes/RequestLog/Files.src/{M000143.html → M000145.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Objects.html +12 -6
- data/doc/rdoc/classes/RequestLog/Objects.src/M000147.html +51 -0
- data/doc/rdoc/classes/RequestLog/Params.html +5 -5
- data/doc/rdoc/classes/RequestLog/Params.src/{M000146.html → M000148.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.src/{M000144.html → M000146.html} +20 -20
- data/doc/rdoc/classes/{ObjectTracker.html → Sync.html} +26 -45
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +1 -1
- data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/command_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/configurator_rb.html +111 -0
- data/doc/rdoc/files/lib/mongrel/debug_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/init_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +2 -1
- data/doc/rdoc/files/lib/mongrel/stats_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel_rb.html +2 -4
- data/doc/rdoc/fr_class_index.html +3 -2
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +144 -142
- data/ext/http11/http11.c +69 -52
- data/ext/http11/http11_parser.c +366 -282
- data/ext/http11/http11_parser.h +2 -0
- data/ext/http11/http11_parser.rl +192 -0
- data/lib/mongrel.rb +127 -433
- data/lib/mongrel/cgi.rb +19 -6
- data/lib/mongrel/command.rb +15 -3
- data/lib/mongrel/configurator.rb +374 -0
- data/lib/mongrel/debug.rb +47 -56
- data/lib/mongrel/handlers.rb +16 -20
- data/lib/mongrel/rails.rb +36 -20
- data/lib/mongrel/stats.rb +60 -58
- data/test/test_conditional.rb +37 -30
- data/test/test_http11.rb +14 -14
- data/test/test_stats.rb +2 -2
- data/test/test_ws.rb +4 -2
- data/tools/rakehelp.rb +4 -4
- metadata +262 -260
- data/doc/rdoc/classes/Kernel.src/M000020.html +0 -19
- data/doc/rdoc/classes/Kernel.src/M000021.html +0 -23
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +0 -27
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +0 -50
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +0 -23
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +0 -30
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +0 -25
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +0 -35
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +0 -33
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +0 -18
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +0 -63
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +0 -56
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +0 -31
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +0 -50
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +0 -51
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +0 -23
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000133.html +0 -24
- data/doc/rdoc/classes/MongrelDbg.src/M000015.html +0 -19
- data/doc/rdoc/classes/ObjectTracker.src/M000013.html +0 -27
- data/doc/rdoc/classes/ObjectTracker.src/M000014.html +0 -44
- data/doc/rdoc/classes/RequestLog/Objects.src/M000145.html +0 -19
- data/doc/rdoc/classes/Stats.src/M000005.html +0 -19
- data/doc/rdoc/classes/Stats.src/M000006.html +0 -23
- data/doc/rdoc/classes/Stats.src/M000007.html +0 -26
- data/doc/rdoc/classes/Stats.src/M000008.html +0 -18
- data/doc/rdoc/classes/Stats.src/M000010.html +0 -18
- data/doc/rdoc/classes/Stats.src/M000011.html +0 -23
- data/doc/rdoc/classes/Stats.src/M000012.html +0 -20
- data/lib/http11.so +0 -0
@@ -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
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 36</span>
|
14
|
+
36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uris</span>
|
15
|
+
37: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">keys</span>
|
16
|
+
38: <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
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 41</span>
|
14
|
+
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
15
|
+
42: <span class="ruby-ivar">@handler_map</span>.<span class="ruby-identifier">inspect</span>
|
16
|
+
43: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
File without changes
|
File without changes
|
@@ -68,7 +68,7 @@ VALUE URIClassifier_resolve(VALUE self, VALUE uri)
|
|
68
68
|
// matches a script so process like normal
|
69
69
|
rb_ary_push(result, rb_str_substr(uri, pref_len, RSTRING(uri)->len));
|
70
70
|
}
|
71
|
-
|
71
|
+
|
72
72
|
rb_ary_push(result, (VALUE)handler);
|
73
73
|
} else {
|
74
74
|
// not found so push back nothing
|
@@ -80,11 +80,11 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
83
|
+
<a href="#M000007">begin_trace</a>
|
84
|
+
<a href="#M000005">configure</a>
|
85
|
+
<a href="#M000008">end_trace</a>
|
86
|
+
<a href="#M000006">trace</a>
|
87
|
+
<a href="#M000009">tracing?</a>
|
88
88
|
</div>
|
89
89
|
</div>
|
90
90
|
|
@@ -124,12 +124,12 @@
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Class methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000007" class="method-detail">
|
128
|
+
<a name="M000007"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="MongrelDbg.src/
|
132
|
-
onclick="popupCode('MongrelDbg.src/
|
131
|
+
<a href="MongrelDbg.src/M000007.html" target="Code" class="method-signature"
|
132
|
+
onclick="popupCode('MongrelDbg.src/M000007.html');return false;">
|
133
133
|
<span class="method-name">begin_trace</span><span class="method-args">(target)</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
@@ -138,13 +138,13 @@
|
|
138
138
|
</div>
|
139
139
|
</div>
|
140
140
|
|
141
|
-
<div id="method-
|
142
|
-
<a name="
|
141
|
+
<div id="method-M000005" class="method-detail">
|
142
|
+
<a name="M000005"></a>
|
143
143
|
|
144
144
|
<div class="method-heading">
|
145
|
-
<a href="MongrelDbg.src/
|
146
|
-
onclick="popupCode('MongrelDbg.src/
|
147
|
-
<span class="method-name">configure</span><span class="method-args">(log_dir = "log
|
145
|
+
<a href="MongrelDbg.src/M000005.html" target="Code" class="method-signature"
|
146
|
+
onclick="popupCode('MongrelDbg.src/M000005.html');return false;">
|
147
|
+
<span class="method-name">configure</span><span class="method-args">(log_dir = File.join("log","mongrel_debug"))</span>
|
148
148
|
</a>
|
149
149
|
</div>
|
150
150
|
|
@@ -152,12 +152,12 @@
|
|
152
152
|
</div>
|
153
153
|
</div>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000008" class="method-detail">
|
156
|
+
<a name="M000008"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="MongrelDbg.src/
|
160
|
-
onclick="popupCode('MongrelDbg.src/
|
159
|
+
<a href="MongrelDbg.src/M000008.html" target="Code" class="method-signature"
|
160
|
+
onclick="popupCode('MongrelDbg.src/M000008.html');return false;">
|
161
161
|
<span class="method-name">end_trace</span><span class="method-args">(target)</span>
|
162
162
|
</a>
|
163
163
|
</div>
|
@@ -166,12 +166,12 @@
|
|
166
166
|
</div>
|
167
167
|
</div>
|
168
168
|
|
169
|
-
<div id="method-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000006" class="method-detail">
|
170
|
+
<a name="M000006"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="MongrelDbg.src/
|
174
|
-
onclick="popupCode('MongrelDbg.src/
|
173
|
+
<a href="MongrelDbg.src/M000006.html" target="Code" class="method-signature"
|
174
|
+
onclick="popupCode('MongrelDbg.src/M000006.html');return false;">
|
175
175
|
<span class="method-name">trace</span><span class="method-args">(target, message)</span>
|
176
176
|
</a>
|
177
177
|
</div>
|
@@ -180,12 +180,12 @@
|
|
180
180
|
</div>
|
181
181
|
</div>
|
182
182
|
|
183
|
-
<div id="method-
|
184
|
-
<a name="
|
183
|
+
<div id="method-M000009" class="method-detail">
|
184
|
+
<a name="M000009"></a>
|
185
185
|
|
186
186
|
<div class="method-heading">
|
187
|
-
<a href="MongrelDbg.src/
|
188
|
-
onclick="popupCode('MongrelDbg.src/
|
187
|
+
<a href="MongrelDbg.src/M000009.html" target="Code" class="method-signature"
|
188
|
+
onclick="popupCode('MongrelDbg.src/M000009.html');return false;">
|
189
189
|
<span class="method-name">tracing?</span><span class="method-args">(target)</span>
|
190
190
|
</a>
|
191
191
|
</div>
|
@@ -0,0 +1,24 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>configure (MongrelDbg)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 19</span>
|
14
|
+
19: <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-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"log"</span>,<span class="ruby-value str">"mongrel_debug"</span>))
|
15
|
+
20: <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
|
+
21: <span class="ruby-ivar">@log_dir</span> = <span class="ruby-identifier">log_dir</span>
|
17
|
+
22: <span class="ruby-identifier">$objects_out</span>=<span class="ruby-identifier">open</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"log"</span>,<span class="ruby-value str">"mongrel_debug"</span>,<span class="ruby-value str">"objects.log"</span>),<span class="ruby-value str">"w"</span>)
|
18
|
+
23: <span class="ruby-identifier">$objects_out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"run,classname,last,count,delta,lenmean,lensd,lenmax"</span>
|
19
|
+
24: <span class="ruby-identifier">$objects_out</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
|
20
|
+
25: <span class="ruby-identifier">$last_stat</span> = <span class="ruby-keyword kw">nil</span>
|
21
|
+
26: <span class="ruby-identifier">$run_count</span> = <span class="ruby-value">0</span>
|
22
|
+
27: <span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 30</span>
|
14
|
+
30: <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
|
+
31: <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
|
+
32: <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
|
+
33: <span class="ruby-keyword kw">end</span>
|
18
|
+
34: <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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 36</span>
|
14
|
+
36: <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
|
+
37: <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
|
+
38: <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
|
+
39: <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">"#{target.to_s}.log"</span>))
|
18
|
+
40: <span class="ruby-keyword kw">end</span>
|
19
|
+
41: <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">"TRACING ON #{Time.now}"</span>)
|
20
|
+
42: <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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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">end_trace</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>] = <span class="ruby-keyword kw">false</span>
|
16
|
+
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">"TRACING OFF #{Time.now}"</span>)
|
17
|
+
47: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>].<span class="ruby-identifier">close</span>
|
18
|
+
48: <span class="ruby-constant">LOGGING</span>[<span class="ruby-identifier">target</span>] = <span class="ruby-keyword kw">nil</span>
|
19
|
+
49: <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
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 51</span>
|
14
|
+
51: <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
|
+
52: <span class="ruby-constant">SETTINGS</span>[<span class="ruby-identifier">:tracing</span>][<span class="ruby-identifier">target</span>]
|
16
|
+
53: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -93,7 +93,7 @@ log when daemonized).
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000144">process</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -122,12 +122,12 @@ log when daemonized).
|
|
122
122
|
<div id="methods">
|
123
123
|
<h3 class="section-bar">Public Instance methods</h3>
|
124
124
|
|
125
|
-
<div id="method-
|
126
|
-
<a name="
|
125
|
+
<div id="method-M000144" class="method-detail">
|
126
|
+
<a name="M000144"></a>
|
127
127
|
|
128
128
|
<div class="method-heading">
|
129
|
-
<a href="Access.src/
|
130
|
-
onclick="popupCode('Access.src/
|
129
|
+
<a href="Access.src/M000144.html" target="Code" class="method-signature"
|
130
|
+
onclick="popupCode('Access.src/M000144.html');return false;">
|
131
131
|
<span class="method-name">process</span><span class="method-args">(request,response)</span>
|
132
132
|
</a>
|
133
133
|
</div>
|
@@ -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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 103</span>
|
14
|
+
103: <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
|
+
104: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">params</span>
|
16
|
+
105: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{p['REMOTE_ADDR']} - [#{Time.now.httpdate}] \"#{p['REQUEST_METHOD']} #{p["REQUEST_URI"]} HTTP/1.1\""</span>
|
17
|
+
106: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000145">process</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -115,12 +115,12 @@
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Instance methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000145" class="method-detail">
|
119
|
+
<a name="M000145"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="Files.src/
|
123
|
-
onclick="popupCode('Files.src/
|
122
|
+
<a href="Files.src/M000145.html" target="Code" class="method-signature"
|
123
|
+
onclick="popupCode('Files.src/M000145.html');return false;">
|
124
124
|
<span class="method-name">process</span><span class="method-args">(request, response)</span>
|
125
125
|
</a>
|
126
126
|
</div>
|
@@ -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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 113</span>
|
14
|
+
113: <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
|
+
114: <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">"#{Time.now} FILES OPEN BEFORE REQUEST #{request.params['PATH_INFO']}"</span>)
|
16
|
+
115: <span class="ruby-identifier">log_open_files</span>
|
17
|
+
116: <span class="ruby-keyword kw">end</span></pre>
|
18
18
|
</body>
|
19
19
|
</html>
|
@@ -78,6 +78,12 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
stolen from Robert Klemme
|
84
|
+
</p>
|
85
|
+
|
86
|
+
</div>
|
81
87
|
|
82
88
|
|
83
89
|
</div>
|
@@ -86,7 +92,7 @@
|
|
86
92
|
<h3 class="section-bar">Methods</h3>
|
87
93
|
|
88
94
|
<div class="name-list">
|
89
|
-
<a href="#
|
95
|
+
<a href="#M000147">process</a>
|
90
96
|
</div>
|
91
97
|
</div>
|
92
98
|
|
@@ -115,13 +121,13 @@
|
|
115
121
|
<div id="methods">
|
116
122
|
<h3 class="section-bar">Public Instance methods</h3>
|
117
123
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
124
|
+
<div id="method-M000147" class="method-detail">
|
125
|
+
<a name="M000147"></a>
|
120
126
|
|
121
127
|
<div class="method-heading">
|
122
|
-
<a href="Objects.src/
|
123
|
-
onclick="popupCode('Objects.src/
|
124
|
-
<span class="method-name">process</span><span class="method-args">(request,
|
128
|
+
<a href="Objects.src/M000147.html" target="Code" class="method-signature"
|
129
|
+
onclick="popupCode('Objects.src/M000147.html');return false;">
|
130
|
+
<span class="method-name">process</span><span class="method-args">(request,response)</span>
|
125
131
|
</a>
|
126
132
|
</div>
|
127
133
|
|
@@ -0,0 +1,51 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>process (RequestLog::Objects)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/debug.rb, line 124</span>
|
14
|
+
124: <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
|
+
125: <span class="ruby-keyword kw">begin</span>
|
16
|
+
126: <span class="ruby-identifier">stats</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
17
|
+
127: <span class="ruby-identifier">lengths</span> = {}
|
18
|
+
128: <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">o</span><span class="ruby-operator">|</span>
|
19
|
+
129: <span class="ruby-keyword kw">begin</span>
|
20
|
+
130: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:length</span>
|
21
|
+
131: <span class="ruby-identifier">len</span> = <span class="ruby-identifier">o</span>.<span class="ruby-identifier">length</span>
|
22
|
+
132: <span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">o</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">Stats</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">o</span>.<span class="ruby-identifier">class</span>)
|
23
|
+
133: <span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">o</span>.<span class="ruby-identifier">class</span>].<span class="ruby-identifier">sample</span>(<span class="ruby-identifier">len</span>)
|
24
|
+
134: <span class="ruby-keyword kw">end</span>
|
25
|
+
135: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
|
26
|
+
136: <span class="ruby-keyword kw">end</span>
|
27
|
+
137:
|
28
|
+
138: <span class="ruby-identifier">stats</span>[<span class="ruby-identifier">o</span>.<span class="ruby-identifier">class</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
29
|
+
139: <span class="ruby-keyword kw">end</span>
|
30
|
+
140:
|
31
|
+
141: <span class="ruby-identifier">stats</span>.<span class="ruby-identifier">sort</span> {<span class="ruby-operator">|</span>(<span class="ruby-identifier">k1</span>,<span class="ruby-identifier">v1</span>),(<span class="ruby-identifier">k2</span>,<span class="ruby-identifier">v2</span>)<span class="ruby-operator">|</span> <span class="ruby-identifier">v2</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">v1</span>}.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
32
|
+
142: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$last_stat</span>
|
33
|
+
143: <span class="ruby-identifier">delta</span> = <span class="ruby-identifier">v</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">$last_stat</span>[<span class="ruby-identifier">k</span>]
|
34
|
+
144: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">></span> <span class="ruby-value">10</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">delta</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
35
|
+
145: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">k</span>]
|
36
|
+
146: <span class="ruby-identifier">$objects_out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-value str">"%d,%s,%d,%d,%d,%f,%f,%f\n"</span>, <span class="ruby-identifier">$run_count</span>, <span class="ruby-identifier">k</span>, <span class="ruby-identifier">$last_stat</span>[<span class="ruby-identifier">k</span>], <span class="ruby-identifier">v</span>, <span class="ruby-identifier">delta</span>,<span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">mean</span>,<span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">sd</span>,<span class="ruby-identifier">lengths</span>[<span class="ruby-identifier">k</span>].<span class="ruby-identifier">max</span>
|
37
|
+
147: <span class="ruby-keyword kw">else</span>
|
38
|
+
148: <span class="ruby-identifier">$objects_out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-value str">"%d,%s,%d,%d,%d,,,\n"</span>, <span class="ruby-identifier">$run_count</span>, <span class="ruby-identifier">k</span>, <span class="ruby-identifier">$last_stat</span>[<span class="ruby-identifier">k</span>], <span class="ruby-identifier">v</span>, <span class="ruby-identifier">delta</span>
|
39
|
+
149: <span class="ruby-keyword kw">end</span>
|
40
|
+
150: <span class="ruby-keyword kw">end</span>
|
41
|
+
151: <span class="ruby-keyword kw">end</span>
|
42
|
+
152: <span class="ruby-keyword kw">end</span>
|
43
|
+
153:
|
44
|
+
154: <span class="ruby-identifier">$run_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
45
|
+
155: <span class="ruby-identifier">$last_stat</span> = <span class="ruby-identifier">stats</span>
|
46
|
+
156: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Object</span>
|
47
|
+
157: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"object.log ERROR: #$!"</span>
|
48
|
+
158: <span class="ruby-keyword kw">end</span>
|
49
|
+
159: <span class="ruby-keyword kw">end</span></pre>
|
50
|
+
</body>
|
51
|
+
</html>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000148">process</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -115,12 +115,12 @@
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Instance methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000148" class="method-detail">
|
119
|
+
<a name="M000148"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="Params.src/
|
123
|
-
onclick="popupCode('Params.src/
|
122
|
+
<a href="Params.src/M000148.html" target="Code" class="method-signature"
|
123
|
+
onclick="popupCode('Params.src/M000148.html');return false;">
|
124
124
|
<span class="method-name">process</span><span class="method-args">(request, response)</span>
|
125
125
|
</a>
|
126
126
|
</div>
|