mongrel 0.3.12.4 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. data/Rakefile +44 -33
  2. data/bin/mongrel_rails +67 -34
  3. data/doc/rdoc/classes/IO.html +10 -10
  4. data/doc/rdoc/classes/IO.src/{M000005.html → M000001.html} +5 -5
  5. data/doc/rdoc/classes/IO.src/{M000006.html → M000002.html} +5 -5
  6. data/doc/rdoc/classes/Kernel.html +10 -10
  7. data/doc/rdoc/classes/Kernel.src/{M000025.html → M000020.html} +5 -5
  8. data/doc/rdoc/classes/Kernel.src/M000021.html +23 -0
  9. data/doc/rdoc/classes/Mongrel.html +25 -4
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.html +383 -0
  11. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000096.html +11 -5
  12. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000097.html +34 -5
  13. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000098.html +21 -6
  14. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000093.html → M000099.html} +13 -13
  15. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000094.html → M000100.html} +11 -11
  16. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000095.html → M000101.html} +4 -4
  17. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +18 -0
  18. data/doc/rdoc/classes/Mongrel/{URIClassifier.src/M000084.html → CGIWrapper.src/M000103.html} +5 -5
  19. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +19 -0
  20. data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
  21. data/doc/rdoc/classes/Mongrel/Camping.src/M000046.html +22 -0
  22. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
  23. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/{M000049.html → M000047.html} +4 -4
  24. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000048.html +51 -0
  25. data/doc/rdoc/classes/Mongrel/Command.html +13 -0
  26. data/doc/rdoc/classes/Mongrel/Command/Base.html +95 -50
  27. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000024.html +24 -0
  28. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +42 -0
  29. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +18 -0
  30. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +18 -0
  31. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +18 -0
  32. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +5 -11
  33. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +9 -28
  34. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +5 -5
  35. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +5 -5
  36. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +5 -5
  37. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +11 -9
  38. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +11 -5
  39. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +5 -5
  40. data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
  41. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000037.html +20 -0
  42. data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000040.html → M000038.html} +11 -11
  43. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +37 -7
  44. data/doc/rdoc/classes/Mongrel/Configurator.html +651 -0
  45. data/doc/rdoc/classes/Mongrel/Configurator.src/M000105.html +16 -20
  46. data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +18 -5
  47. data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +7 -11
  48. data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +7 -6
  49. data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +10 -9
  50. data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +5 -8
  51. data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +21 -5
  52. data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +6 -15
  53. data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +17 -5
  54. data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +20 -33
  55. data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +5 -5
  56. data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +24 -0
  57. data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +19 -0
  58. data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +22 -0
  59. data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +25 -0
  60. data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +18 -0
  61. data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +35 -0
  62. data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +18 -0
  63. data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +33 -0
  64. data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +18 -0
  65. data/doc/rdoc/classes/Mongrel/Const.html +39 -7
  66. data/doc/rdoc/classes/Mongrel/DeflateFilter.html +181 -0
  67. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000094.html +19 -0
  68. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000095.html +28 -0
  69. data/doc/rdoc/classes/Mongrel/DirHandler.html +48 -33
  70. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000056.html +21 -0
  71. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000057.html +43 -0
  72. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +29 -7
  73. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +50 -29
  74. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +26 -27
  75. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +5 -38
  76. data/doc/rdoc/classes/Mongrel/Error404Handler.html +171 -0
  77. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000116.html → M000125.html} +4 -4
  78. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000117.html → M000126.html} +4 -4
  79. data/doc/rdoc/classes/Mongrel/HeaderOut.html +185 -0
  80. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000072.html → M000069.html} +4 -4
  81. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000073.html → M000070.html} +4 -4
  82. data/doc/rdoc/classes/Mongrel/HttpHandler.html +170 -0
  83. data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000074.html → M000075.html} +3 -3
  84. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +20 -10
  85. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000027.html → M000022.html} +5 -4
  86. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000028.html → M000023.html} +3 -3
  87. data/doc/rdoc/classes/Mongrel/HttpParser.html +41 -36
  88. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000056.html → M000049.html} +6 -5
  89. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000057.html → M000050.html} +7 -6
  90. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000051.html +7 -6
  91. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000052.html +37 -7
  92. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000053.html +5 -7
  93. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000054.html +6 -22
  94. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000055.html +6 -5
  95. data/doc/rdoc/classes/Mongrel/HttpRequest.html +239 -0
  96. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000130.html +52 -0
  97. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000119.html → M000131.html} +6 -6
  98. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000120.html → M000132.html} +6 -6
  99. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000121.html → M000133.html} +18 -18
  100. data/doc/rdoc/classes/Mongrel/HttpResponse.html +439 -0
  101. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +12 -7
  102. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000077.html +7 -12
  103. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +12 -9
  104. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +9 -9
  105. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +9 -10
  106. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +9 -5
  107. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +18 -7
  108. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +8 -5
  109. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +20 -0
  110. data/doc/rdoc/classes/Mongrel/{HttpServer.src/M000069.html → HttpResponse.src/M000085.html} +7 -5
  111. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +20 -0
  112. data/doc/rdoc/classes/Mongrel/{Configurator.src/M000101.html → HttpResponse.src/M000087.html} +5 -5
  113. data/doc/rdoc/classes/Mongrel/HttpServer.html +68 -59
  114. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000062.html +25 -0
  115. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +83 -0
  116. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +13 -11
  117. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +50 -53
  118. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +21 -11
  119. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +5 -47
  120. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +9 -15
  121. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +16 -16
  122. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000040.html +39 -0
  123. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000043.html → M000041.html} +11 -11
  124. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +13 -22
  125. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +17 -17
  126. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000043.html +22 -0
  127. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000044.html +51 -0
  128. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +10 -9
  129. data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +211 -0
  130. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000127.html +24 -0
  131. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000128.html +24 -0
  132. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000129.html +18 -0
  133. data/doc/rdoc/classes/{Class.html → Mongrel/StatusHandler.html} +42 -45
  134. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000071.html +18 -0
  135. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000072.html +24 -0
  136. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000073.html +42 -0
  137. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +20 -0
  138. data/doc/rdoc/classes/Mongrel/StopServer.html +117 -0
  139. data/doc/rdoc/classes/Mongrel/URIClassifier.html +314 -0
  140. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000088.html +5 -23
  141. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000089.html +5 -70
  142. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000086.html → M000090.html} +0 -0
  143. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000087.html → M000091.html} +0 -0
  144. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +36 -0
  145. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +83 -0
  146. data/doc/rdoc/classes/MongrelDbg.html +25 -25
  147. data/doc/rdoc/classes/MongrelDbg.src/{M000020.html → M000015.html} +5 -5
  148. data/doc/rdoc/classes/MongrelDbg.src/{M000021.html → M000016.html} +6 -6
  149. data/doc/rdoc/classes/MongrelDbg.src/{M000022.html → M000017.html} +8 -8
  150. data/doc/rdoc/classes/MongrelDbg.src/{M000023.html → M000018.html} +7 -7
  151. data/doc/rdoc/classes/MongrelDbg.src/{M000024.html → M000019.html} +4 -4
  152. data/doc/rdoc/classes/ObjectTracker.html +10 -40
  153. data/doc/rdoc/classes/ObjectTracker.src/M000013.html +27 -0
  154. data/doc/rdoc/classes/ObjectTracker.src/M000014.html +44 -0
  155. data/doc/rdoc/classes/RequestLog.html +115 -0
  156. data/doc/rdoc/classes/RequestLog/Access.html +151 -0
  157. data/doc/rdoc/classes/RequestLog/Access.src/{M000122.html → M000134.html} +5 -5
  158. data/doc/rdoc/classes/RequestLog/Files.html +144 -0
  159. data/doc/rdoc/classes/RequestLog/Files.src/{M000123.html → M000135.html} +5 -5
  160. data/doc/rdoc/classes/RequestLog/Objects.html +144 -0
  161. data/doc/rdoc/classes/RequestLog/Objects.src/{M000124.html → M000137.html} +5 -5
  162. data/doc/rdoc/classes/RequestLog/Params.html +144 -0
  163. data/doc/rdoc/classes/RequestLog/Params.src/{M000125.html → M000138.html} +5 -5
  164. data/doc/rdoc/classes/RequestLog/Threads.html +144 -0
  165. data/doc/rdoc/classes/RequestLog/Threads.src/M000136.html +34 -0
  166. data/doc/rdoc/classes/Stats.html +54 -36
  167. data/doc/rdoc/classes/Stats.src/{M000013.html → M000005.html} +6 -5
  168. data/doc/rdoc/classes/Stats.src/M000006.html +23 -0
  169. data/doc/rdoc/classes/Stats.src/M000007.html +26 -0
  170. data/doc/rdoc/classes/Stats.src/M000008.html +18 -0
  171. data/doc/rdoc/classes/Stats.src/M000009.html +5 -6
  172. data/doc/rdoc/classes/Stats.src/M000010.html +5 -10
  173. data/doc/rdoc/classes/Stats.src/M000011.html +10 -13
  174. data/doc/rdoc/classes/Stats.src/M000012.html +7 -5
  175. data/doc/rdoc/classes/TCPServer.html +9 -9
  176. data/doc/rdoc/classes/TCPServer.src/M000003.html +19 -0
  177. data/doc/rdoc/created.rid +1 -1
  178. data/doc/rdoc/files/COPYING.html +1 -1
  179. data/doc/rdoc/files/LICENSE.html +1 -1
  180. data/doc/rdoc/files/README.html +1 -1
  181. data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
  182. data/doc/rdoc/files/lib/mongrel/camping_rb.html +28 -1
  183. data/doc/rdoc/files/lib/mongrel/cgi_rb.html +28 -1
  184. data/doc/rdoc/files/lib/mongrel/command_rb.html +28 -1
  185. data/doc/rdoc/files/lib/mongrel/debug_rb.html +28 -1
  186. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +3 -3
  187. data/doc/rdoc/files/lib/mongrel/init_rb.html +28 -1
  188. data/doc/rdoc/files/lib/mongrel/rails_rb.html +28 -1
  189. data/doc/rdoc/files/lib/mongrel/stats_rb.html +21 -10
  190. data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +23 -4
  191. data/doc/rdoc/files/lib/mongrel_rb.html +33 -1
  192. data/doc/rdoc/fr_class_index.html +65 -0
  193. data/doc/rdoc/fr_file_index.html +40 -0
  194. data/doc/rdoc/fr_method_index.html +164 -0
  195. data/doc/rdoc/index.html +24 -0
  196. data/examples/camping/blog.rb +1 -1
  197. data/examples/camping/tepee.rb +4 -3
  198. data/examples/simpletest.rb +15 -14
  199. data/ext/http11/http11.c +52 -18
  200. data/ext/http11/http11_parser.c +194 -177
  201. data/ext/http11/http11_parser.h +23 -5
  202. data/lib/mongrel.rb +295 -134
  203. data/lib/mongrel/camping.rb +48 -6
  204. data/lib/mongrel/cgi.rb +20 -2
  205. data/lib/mongrel/command.rb +76 -27
  206. data/lib/mongrel/debug.rb +42 -13
  207. data/lib/mongrel/handlers.rb +218 -59
  208. data/lib/mongrel/init.rb +18 -0
  209. data/lib/mongrel/rails.rb +61 -44
  210. data/lib/mongrel/stats.rb +30 -2
  211. data/lib/mongrel/tcphack.rb +18 -0
  212. data/setup.rb +799 -574
  213. data/test/mime.yaml +3 -0
  214. data/test/mongrel.conf +1 -0
  215. data/test/test_command.rb +101 -0
  216. data/test/test_conditional.rb +124 -0
  217. data/test/test_configurator.rb +56 -22
  218. data/test/test_debug.rb +18 -2
  219. data/test/test_handlers.rb +105 -0
  220. data/test/test_http11.rb +27 -9
  221. data/test/test_response.rb +38 -0
  222. data/test/test_stats.rb +21 -2
  223. data/test/test_uriclassifier.rb +18 -0
  224. data/test/test_ws.rb +105 -19
  225. data/test/testhelp.rb +36 -0
  226. data/tools/rakehelp.rb +52 -46
  227. data/tools/trickletest.rb +37 -0
  228. metadata +127 -76
  229. data/doc/rdoc/classes/Class.src/M000001.html +0 -24
  230. data/doc/rdoc/classes/Class.src/M000002.html +0 -62
  231. data/doc/rdoc/classes/Class.src/M000003.html +0 -21
  232. data/doc/rdoc/classes/Class.src/M000004.html +0 -20
  233. data/doc/rdoc/classes/Kernel.src/M000026.html +0 -25
  234. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000090.html +0 -24
  235. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000091.html +0 -47
  236. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000092.html +0 -34
  237. data/doc/rdoc/classes/Mongrel/Camping.src/M000048.html +0 -22
  238. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +0 -27
  239. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +0 -18
  240. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +0 -18
  241. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +0 -46
  242. data/doc/rdoc/classes/Mongrel/Configurator.src/M000099.html +0 -24
  243. data/doc/rdoc/classes/Mongrel/Configurator.src/M000100.html +0 -23
  244. data/doc/rdoc/classes/Mongrel/Configurator.src/M000102.html +0 -32
  245. data/doc/rdoc/classes/Mongrel/Configurator.src/M000103.html +0 -19
  246. data/doc/rdoc/classes/Mongrel/Configurator.src/M000104.html +0 -31
  247. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +0 -40
  248. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +0 -18
  249. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000118.html +0 -28
  250. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html +0 -26
  251. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +0 -22
  252. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +0 -18
  253. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +0 -32
  254. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +0 -48
  255. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +0 -23
  256. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000085.html +0 -18
  257. data/doc/rdoc/classes/ObjectTracker.src/M000016.html +0 -22
  258. data/doc/rdoc/classes/ObjectTracker.src/M000017.html +0 -18
  259. data/doc/rdoc/classes/ObjectTracker.src/M000018.html +0 -18
  260. data/doc/rdoc/classes/ObjectTracker.src/M000019.html +0 -44
  261. data/doc/rdoc/classes/Stats.src/M000014.html +0 -19
  262. data/doc/rdoc/classes/Stats.src/M000015.html +0 -20
  263. data/doc/rdoc/classes/TCPServer.src/M000007.html +0 -19
  264. data/lib/mongrel/#rails.rb# +0 -178
@@ -0,0 +1,37 @@
1
+ require 'socket'
2
+ require 'stringio'
3
+
4
+ def do_test(st, chunk)
5
+ s = TCPSocket.new('127.0.0.1',ARGV[0].to_i);
6
+ req = StringIO.new(st)
7
+
8
+ while data = req.read(chunk)
9
+ puts "write #{data.length}: '#{data}'"
10
+ s.write(data)
11
+ s.flush
12
+ sleep 0.1
13
+ end
14
+ s.close
15
+ end
16
+
17
+
18
+ st = "GET / HTTP/1.1\r\nHost: www.zedshaw.com\r\nContent-Type: text/plain\r\n\r\n"
19
+
20
+ threads = []
21
+ ARGV[1].to_i.times do
22
+ threads << Thread.new do
23
+ (st.length - 1).times do |chunk|
24
+ puts ">>>> #{chunk+1} sized chunks"
25
+ do_test(st, chunk+1)
26
+ end
27
+
28
+ 1000.times do
29
+ do_test(st, rand(st.length) + 1)
30
+ end
31
+
32
+ end
33
+
34
+ sleep(1+rand)
35
+ end
36
+
37
+ threads.each {|t| t.join}
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: mongrel
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.12.4
7
- date: 2006-04-10 00:00:00 -04:00
6
+ version: 0.3.13
7
+ date: 2006-06-16 00:00:00 -04:00
8
8
  summary: A small fast HTTP library and server that runs Rails, Camping, and Nitro apps.
9
9
  require_paths:
10
10
  - lib
@@ -38,9 +38,11 @@ files:
38
38
  - doc/rdoc/classes
39
39
  - doc/rdoc/created.rid
40
40
  - doc/rdoc/files
41
+ - doc/rdoc/fr_class_index.html
42
+ - doc/rdoc/fr_file_index.html
43
+ - doc/rdoc/fr_method_index.html
44
+ - doc/rdoc/index.html
41
45
  - doc/rdoc/rdoc-style.css
42
- - doc/rdoc/classes/Class.html
43
- - doc/rdoc/classes/Class.src
44
46
  - doc/rdoc/classes/IO.html
45
47
  - doc/rdoc/classes/IO.src
46
48
  - doc/rdoc/classes/Kernel.html
@@ -52,62 +54,78 @@ files:
52
54
  - doc/rdoc/classes/ObjectTracker.html
53
55
  - doc/rdoc/classes/ObjectTracker.src
54
56
  - doc/rdoc/classes/RequestLog
57
+ - doc/rdoc/classes/RequestLog.html
55
58
  - doc/rdoc/classes/Stats.html
56
59
  - doc/rdoc/classes/Stats.src
57
60
  - doc/rdoc/classes/TCPServer.html
58
61
  - doc/rdoc/classes/TCPServer.src
59
- - doc/rdoc/classes/Class.src/M000001.html
60
- - doc/rdoc/classes/Class.src/M000002.html
61
- - doc/rdoc/classes/Class.src/M000003.html
62
- - doc/rdoc/classes/Class.src/M000004.html
63
- - doc/rdoc/classes/IO.src/M000005.html
64
- - doc/rdoc/classes/IO.src/M000006.html
65
- - doc/rdoc/classes/Kernel.src/M000025.html
66
- - doc/rdoc/classes/Kernel.src/M000026.html
62
+ - doc/rdoc/classes/IO.src/M000001.html
63
+ - doc/rdoc/classes/IO.src/M000002.html
64
+ - doc/rdoc/classes/Kernel.src/M000020.html
65
+ - doc/rdoc/classes/Kernel.src/M000021.html
67
66
  - doc/rdoc/classes/Mongrel/Camping
68
67
  - doc/rdoc/classes/Mongrel/Camping.html
69
68
  - doc/rdoc/classes/Mongrel/Camping.src
69
+ - doc/rdoc/classes/Mongrel/CGIWrapper.html
70
70
  - doc/rdoc/classes/Mongrel/CGIWrapper.src
71
71
  - doc/rdoc/classes/Mongrel/Command
72
72
  - doc/rdoc/classes/Mongrel/Command.html
73
+ - doc/rdoc/classes/Mongrel/Configurator.html
73
74
  - doc/rdoc/classes/Mongrel/Configurator.src
74
75
  - doc/rdoc/classes/Mongrel/Const.html
76
+ - doc/rdoc/classes/Mongrel/DeflateFilter.html
77
+ - doc/rdoc/classes/Mongrel/DeflateFilter.src
75
78
  - doc/rdoc/classes/Mongrel/DirHandler.html
76
79
  - doc/rdoc/classes/Mongrel/DirHandler.src
80
+ - doc/rdoc/classes/Mongrel/Error404Handler.html
77
81
  - doc/rdoc/classes/Mongrel/Error404Handler.src
78
82
  - doc/rdoc/classes/Mongrel/HeaderOut.html
79
83
  - doc/rdoc/classes/Mongrel/HeaderOut.src
84
+ - doc/rdoc/classes/Mongrel/HttpHandler.html
80
85
  - doc/rdoc/classes/Mongrel/HttpHandler.src
81
86
  - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html
82
87
  - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src
83
88
  - doc/rdoc/classes/Mongrel/HttpParser.html
84
89
  - doc/rdoc/classes/Mongrel/HttpParser.src
85
90
  - doc/rdoc/classes/Mongrel/HttpParserError.html
91
+ - doc/rdoc/classes/Mongrel/HttpRequest.html
86
92
  - doc/rdoc/classes/Mongrel/HttpRequest.src
93
+ - doc/rdoc/classes/Mongrel/HttpResponse.html
87
94
  - doc/rdoc/classes/Mongrel/HttpResponse.src
88
95
  - doc/rdoc/classes/Mongrel/HttpServer.html
89
96
  - doc/rdoc/classes/Mongrel/HttpServer.src
90
97
  - doc/rdoc/classes/Mongrel/Rails
91
98
  - doc/rdoc/classes/Mongrel/Rails.html
99
+ - doc/rdoc/classes/Mongrel/StatisticsFilter.html
100
+ - doc/rdoc/classes/Mongrel/StatisticsFilter.src
101
+ - doc/rdoc/classes/Mongrel/StatusHandler.html
102
+ - doc/rdoc/classes/Mongrel/StatusHandler.src
103
+ - doc/rdoc/classes/Mongrel/StopServer.html
104
+ - doc/rdoc/classes/Mongrel/URIClassifier.html
92
105
  - doc/rdoc/classes/Mongrel/URIClassifier.src
93
106
  - doc/rdoc/classes/Mongrel/Camping/CampingHandler.html
94
107
  - doc/rdoc/classes/Mongrel/Camping/CampingHandler.src
95
- - doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html
96
- - doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html
97
- - doc/rdoc/classes/Mongrel/Camping.src/M000048.html
98
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000090.html
99
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000091.html
100
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000092.html
101
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000093.html
102
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000094.html
103
- - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000095.html
108
+ - doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000047.html
109
+ - doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000048.html
110
+ - doc/rdoc/classes/Mongrel/Camping.src/M000046.html
104
111
  - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000096.html
105
112
  - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000097.html
106
113
  - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000098.html
114
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000099.html
115
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000100.html
116
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html
117
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html
118
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html
119
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html
107
120
  - doc/rdoc/classes/Mongrel/Command/Base.html
108
121
  - doc/rdoc/classes/Mongrel/Command/Base.src
109
122
  - doc/rdoc/classes/Mongrel/Command/Registry.html
110
123
  - doc/rdoc/classes/Mongrel/Command/Registry.src
124
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000024.html
125
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html
126
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html
127
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html
128
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html
111
129
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html
112
130
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html
113
131
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html
@@ -116,17 +134,9 @@ files:
116
134
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html
117
135
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html
118
136
  - doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html
119
- - doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html
120
- - doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html
137
+ - doc/rdoc/classes/Mongrel/Command/Registry.src/M000037.html
138
+ - doc/rdoc/classes/Mongrel/Command/Registry.src/M000038.html
121
139
  - doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html
122
- - doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html
123
- - doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html
124
- - doc/rdoc/classes/Mongrel/Configurator.src/M000099.html
125
- - doc/rdoc/classes/Mongrel/Configurator.src/M000100.html
126
- - doc/rdoc/classes/Mongrel/Configurator.src/M000101.html
127
- - doc/rdoc/classes/Mongrel/Configurator.src/M000102.html
128
- - doc/rdoc/classes/Mongrel/Configurator.src/M000103.html
129
- - doc/rdoc/classes/Mongrel/Configurator.src/M000104.html
130
140
  - doc/rdoc/classes/Mongrel/Configurator.src/M000105.html
131
141
  - doc/rdoc/classes/Mongrel/Configurator.src/M000106.html
132
142
  - doc/rdoc/classes/Mongrel/Configurator.src/M000107.html
@@ -138,31 +148,41 @@ files:
138
148
  - doc/rdoc/classes/Mongrel/Configurator.src/M000113.html
139
149
  - doc/rdoc/classes/Mongrel/Configurator.src/M000114.html
140
150
  - doc/rdoc/classes/Mongrel/Configurator.src/M000115.html
151
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000116.html
152
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000117.html
153
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000118.html
154
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000119.html
155
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000120.html
156
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000121.html
157
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000122.html
158
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000123.html
159
+ - doc/rdoc/classes/Mongrel/Configurator.src/M000124.html
160
+ - doc/rdoc/classes/Mongrel/DeflateFilter.src/M000094.html
161
+ - doc/rdoc/classes/Mongrel/DeflateFilter.src/M000095.html
162
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000056.html
163
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000057.html
141
164
  - doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html
142
165
  - doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html
143
166
  - doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html
144
167
  - doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html
145
- - doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html
146
- - doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html
147
- - doc/rdoc/classes/Mongrel/Error404Handler.src/M000116.html
148
- - doc/rdoc/classes/Mongrel/Error404Handler.src/M000117.html
149
- - doc/rdoc/classes/Mongrel/HeaderOut.src/M000072.html
150
- - doc/rdoc/classes/Mongrel/HeaderOut.src/M000073.html
151
- - doc/rdoc/classes/Mongrel/HttpHandler.src/M000074.html
152
- - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000027.html
153
- - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000028.html
168
+ - doc/rdoc/classes/Mongrel/Error404Handler.src/M000125.html
169
+ - doc/rdoc/classes/Mongrel/Error404Handler.src/M000126.html
170
+ - doc/rdoc/classes/Mongrel/HeaderOut.src/M000069.html
171
+ - doc/rdoc/classes/Mongrel/HeaderOut.src/M000070.html
172
+ - doc/rdoc/classes/Mongrel/HttpHandler.src/M000075.html
173
+ - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html
174
+ - doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html
175
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000049.html
176
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000050.html
154
177
  - doc/rdoc/classes/Mongrel/HttpParser.src/M000051.html
155
178
  - doc/rdoc/classes/Mongrel/HttpParser.src/M000052.html
156
179
  - doc/rdoc/classes/Mongrel/HttpParser.src/M000053.html
157
180
  - doc/rdoc/classes/Mongrel/HttpParser.src/M000054.html
158
181
  - doc/rdoc/classes/Mongrel/HttpParser.src/M000055.html
159
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000056.html
160
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000057.html
161
- - doc/rdoc/classes/Mongrel/HttpRequest.src/M000118.html
162
- - doc/rdoc/classes/Mongrel/HttpRequest.src/M000119.html
163
- - doc/rdoc/classes/Mongrel/HttpRequest.src/M000120.html
164
- - doc/rdoc/classes/Mongrel/HttpRequest.src/M000121.html
165
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html
182
+ - doc/rdoc/classes/Mongrel/HttpRequest.src/M000130.html
183
+ - doc/rdoc/classes/Mongrel/HttpRequest.src/M000131.html
184
+ - doc/rdoc/classes/Mongrel/HttpRequest.src/M000132.html
185
+ - doc/rdoc/classes/Mongrel/HttpRequest.src/M000133.html
166
186
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html
167
187
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000077.html
168
188
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html
@@ -171,55 +191,71 @@ files:
171
191
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html
172
192
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html
173
193
  - doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html
194
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html
195
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html
196
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html
197
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html
198
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000062.html
199
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html
174
200
  - doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html
175
201
  - doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html
176
202
  - doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html
177
203
  - doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html
178
204
  - doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html
179
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html
180
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html
181
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html
182
205
  - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html
183
206
  - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src
184
207
  - doc/rdoc/classes/Mongrel/Rails/RailsHandler.html
185
208
  - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src
209
+ - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000040.html
210
+ - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000041.html
186
211
  - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html
187
- - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html
188
- - doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html
212
+ - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000043.html
213
+ - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000044.html
189
214
  - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html
190
- - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html
191
- - doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html
192
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000084.html
193
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000085.html
194
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000086.html
195
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000087.html
215
+ - doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000127.html
216
+ - doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000128.html
217
+ - doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000129.html
218
+ - doc/rdoc/classes/Mongrel/StatusHandler.src/M000071.html
219
+ - doc/rdoc/classes/Mongrel/StatusHandler.src/M000072.html
220
+ - doc/rdoc/classes/Mongrel/StatusHandler.src/M000073.html
221
+ - doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html
196
222
  - doc/rdoc/classes/Mongrel/URIClassifier.src/M000088.html
197
223
  - doc/rdoc/classes/Mongrel/URIClassifier.src/M000089.html
198
- - doc/rdoc/classes/MongrelDbg.src/M000020.html
199
- - doc/rdoc/classes/MongrelDbg.src/M000021.html
200
- - doc/rdoc/classes/MongrelDbg.src/M000022.html
201
- - doc/rdoc/classes/MongrelDbg.src/M000023.html
202
- - doc/rdoc/classes/MongrelDbg.src/M000024.html
203
- - doc/rdoc/classes/ObjectTracker.src/M000016.html
204
- - doc/rdoc/classes/ObjectTracker.src/M000017.html
205
- - doc/rdoc/classes/ObjectTracker.src/M000018.html
206
- - doc/rdoc/classes/ObjectTracker.src/M000019.html
224
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000090.html
225
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html
226
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html
227
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html
228
+ - doc/rdoc/classes/MongrelDbg.src/M000015.html
229
+ - doc/rdoc/classes/MongrelDbg.src/M000016.html
230
+ - doc/rdoc/classes/MongrelDbg.src/M000017.html
231
+ - doc/rdoc/classes/MongrelDbg.src/M000018.html
232
+ - doc/rdoc/classes/MongrelDbg.src/M000019.html
233
+ - doc/rdoc/classes/ObjectTracker.src/M000013.html
234
+ - doc/rdoc/classes/ObjectTracker.src/M000014.html
235
+ - doc/rdoc/classes/RequestLog/Access.html
207
236
  - doc/rdoc/classes/RequestLog/Access.src
237
+ - doc/rdoc/classes/RequestLog/Files.html
208
238
  - doc/rdoc/classes/RequestLog/Files.src
239
+ - doc/rdoc/classes/RequestLog/Objects.html
209
240
  - doc/rdoc/classes/RequestLog/Objects.src
241
+ - doc/rdoc/classes/RequestLog/Params.html
210
242
  - doc/rdoc/classes/RequestLog/Params.src
211
- - doc/rdoc/classes/RequestLog/Access.src/M000122.html
212
- - doc/rdoc/classes/RequestLog/Files.src/M000123.html
213
- - doc/rdoc/classes/RequestLog/Objects.src/M000124.html
214
- - doc/rdoc/classes/RequestLog/Params.src/M000125.html
243
+ - doc/rdoc/classes/RequestLog/Threads.html
244
+ - doc/rdoc/classes/RequestLog/Threads.src
245
+ - doc/rdoc/classes/RequestLog/Access.src/M000134.html
246
+ - doc/rdoc/classes/RequestLog/Files.src/M000135.html
247
+ - doc/rdoc/classes/RequestLog/Objects.src/M000137.html
248
+ - doc/rdoc/classes/RequestLog/Params.src/M000138.html
249
+ - doc/rdoc/classes/RequestLog/Threads.src/M000136.html
250
+ - doc/rdoc/classes/Stats.src/M000005.html
251
+ - doc/rdoc/classes/Stats.src/M000006.html
252
+ - doc/rdoc/classes/Stats.src/M000007.html
253
+ - doc/rdoc/classes/Stats.src/M000008.html
215
254
  - doc/rdoc/classes/Stats.src/M000009.html
216
255
  - doc/rdoc/classes/Stats.src/M000010.html
217
256
  - doc/rdoc/classes/Stats.src/M000011.html
218
257
  - doc/rdoc/classes/Stats.src/M000012.html
219
- - doc/rdoc/classes/Stats.src/M000013.html
220
- - doc/rdoc/classes/Stats.src/M000014.html
221
- - doc/rdoc/classes/Stats.src/M000015.html
222
- - doc/rdoc/classes/TCPServer.src/M000007.html
258
+ - doc/rdoc/classes/TCPServer.src/M000003.html
223
259
  - doc/rdoc/files/COPYING.html
224
260
  - doc/rdoc/files/ext
225
261
  - doc/rdoc/files/lib
@@ -238,8 +274,14 @@ files:
238
274
  - doc/rdoc/files/lib/mongrel/rails_rb.html
239
275
  - doc/rdoc/files/lib/mongrel/stats_rb.html
240
276
  - doc/rdoc/files/lib/mongrel/tcphack_rb.html
277
+ - test/mime.yaml
278
+ - test/mongrel.conf
279
+ - test/testhelp.rb
280
+ - test/test_command.rb
281
+ - test/test_conditional.rb
241
282
  - test/test_configurator.rb
242
283
  - test/test_debug.rb
284
+ - test/test_handlers.rb
243
285
  - test/test_http11.rb
244
286
  - test/test_response.rb
245
287
  - test/test_stats.rb
@@ -247,7 +289,6 @@ files:
247
289
  - test/test_ws.rb
248
290
  - lib/mongrel
249
291
  - lib/mongrel.rb
250
- - lib/mongrel/#rails.rb#
251
292
  - lib/mongrel/camping.rb
252
293
  - lib/mongrel/cgi.rb
253
294
  - lib/mongrel/command
@@ -279,9 +320,19 @@ files:
279
320
  - examples/camping/blog.rb
280
321
  - examples/camping/tepee.rb
281
322
  - tools/rakehelp.rb
323
+ - tools/trickletest.rb
282
324
  - ext/http11/MANIFEST
283
325
  - setup.rb
284
326
  test_files:
327
+ - test/test_command.rb
328
+ - test/test_conditional.rb
329
+ - test/test_configurator.rb
330
+ - test/test_debug.rb
331
+ - test/test_handlers.rb
332
+ - test/test_http11.rb
333
+ - test/test_response.rb
334
+ - test/test_stats.rb
335
+ - test/test_uriclassifier.rb
285
336
  - test/test_ws.rb
286
337
  rdoc_options: []
287
338
 
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>new (Class)</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 144</span>
14
- 144: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">arg</span>,<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
15
- 145: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@stopit</span>
16
- 146: <span class="ruby-ivar">@@stopit</span> = <span class="ruby-keyword kw">true</span>
17
- 147: <span class="ruby-ivar">@@count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
18
- 148: <span class="ruby-ivar">@@class_caller_count</span>[<span class="ruby-keyword kw">self</span>][<span class="ruby-identifier">caller</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n\t&quot;</span>)] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
19
- 149: <span class="ruby-ivar">@@stopit</span> = <span class="ruby-keyword kw">false</span>
20
- 150: <span class="ruby-keyword kw">end</span>
21
- 151: <span class="ruby-identifier">orig_new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">arg</span>,<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
22
- 152: <span class="ruby-keyword kw">end</span></pre>
23
- </body>
24
- </html>
@@ -1,62 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>report_object_creations (Class)</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 155</span>
14
- 155: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Class</span>.<span class="ruby-identifier">report_object_creations</span>(<span class="ruby-identifier">out</span>=<span class="ruby-identifier">$stderr</span>, <span class="ruby-identifier">more_than</span>=<span class="ruby-value">20</span>)
15
- 156: <span class="ruby-constant">Class</span>.<span class="ruby-identifier">stopit</span> <span class="ruby-keyword kw">do</span>
16
- 157: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Number of objects created = #{@@count}&quot;</span>
17
- 158:
18
- 159: <span class="ruby-identifier">total</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
19
- 160:
20
- 161: <span class="ruby-ivar">@@class_caller_count</span>.<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span>
21
- 162: <span class="ruby-identifier">caller_count</span> = <span class="ruby-ivar">@@class_caller_count</span>[<span class="ruby-identifier">klass</span>]
22
- 163: <span class="ruby-identifier">caller_count</span>.<span class="ruby-identifier">each_value</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">count</span><span class="ruby-operator">|</span>
23
- 164: <span class="ruby-identifier">total</span>[<span class="ruby-identifier">klass</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">count</span>
24
- 165: <span class="ruby-keyword kw">end</span>
25
- 166: <span class="ruby-keyword kw">end</span>
26
- 167:
27
- 168: <span class="ruby-identifier">klass_list</span> = <span class="ruby-identifier">total</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">klass_a</span>, <span class="ruby-identifier">klass_b</span><span class="ruby-operator">|</span>
28
- 169: <span class="ruby-identifier">a</span> = <span class="ruby-identifier">total</span>[<span class="ruby-identifier">klass_a</span>]
29
- 170: <span class="ruby-identifier">b</span> = <span class="ruby-identifier">total</span>[<span class="ruby-identifier">klass_b</span>]
30
- 171: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">b</span>
31
- 172: <span class="ruby-value">-1</span><span class="ruby-operator">*</span> (<span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">b</span>)
32
- 173: <span class="ruby-keyword kw">else</span>
33
- 174: <span class="ruby-identifier">klass_a</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">klass_b</span>.<span class="ruby-identifier">to_s</span>
34
- 175: <span class="ruby-keyword kw">end</span>
35
- 176: }
36
- 177:
37
- 178: <span class="ruby-identifier">below_count</span> = <span class="ruby-value">0</span>
38
- 179:
39
- 180: <span class="ruby-identifier">klass_list</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span>
40
- 181: <span class="ruby-identifier">below_calls</span> = <span class="ruby-value">0</span>
41
- 182: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">total</span>[<span class="ruby-identifier">klass</span>] <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">more_than</span>
42
- 183: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{total[klass]}\t#{klass} objects created.&quot;</span>
43
- 184: <span class="ruby-identifier">caller_count</span> = <span class="ruby-ivar">@@class_caller_count</span>[ <span class="ruby-identifier">klass</span>]
44
- 185: <span class="ruby-identifier">caller_count</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort_by</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">call</span><span class="ruby-operator">|</span> <span class="ruby-value">-1</span><span class="ruby-operator">*</span><span class="ruby-identifier">caller_count</span>[<span class="ruby-identifier">call</span>]}.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">call</span><span class="ruby-operator">|</span>
45
- 186: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caller_count</span>[<span class="ruby-identifier">call</span>] <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">more_than</span>
46
- 187: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;\t** #{caller_count[call]} #{klass} objects AT:&quot;</span>
47
- 188: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;\t#{call}\n\n&quot;</span>
48
- 189: <span class="ruby-keyword kw">else</span>
49
- 190: <span class="ruby-identifier">below_calls</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
50
- 191: <span class="ruby-keyword kw">end</span>
51
- 192: <span class="ruby-keyword kw">end</span>
52
- 193: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;\t#{below_calls} more objects had calls less that #{more_than} limit.\n\n&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">below_calls</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
53
- 194: <span class="ruby-keyword kw">else</span>
54
- 195: <span class="ruby-identifier">below_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
55
- 196: <span class="ruby-keyword kw">end</span>
56
- 197: <span class="ruby-keyword kw">end</span>
57
- 198:
58
- 199: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;\t** #{below_count} More objects were created but the count was below the #{more_than} limit.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">below_count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
59
- 200: <span class="ruby-keyword kw">end</span>
60
- 201: <span class="ruby-keyword kw">end</span></pre>
61
- </body>
62
- </html>