mongrel 1.1.5-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. data.tar.gz.sig +4 -0
  2. data/CHANGELOG +18 -0
  3. data/COPYING +55 -0
  4. data/LICENSE +55 -0
  5. data/Manifest +69 -0
  6. data/README +74 -0
  7. data/TODO +5 -0
  8. data/bin/mongrel_rails +283 -0
  9. data/examples/builder.rb +29 -0
  10. data/examples/camping/README +3 -0
  11. data/examples/camping/blog.rb +294 -0
  12. data/examples/camping/tepee.rb +149 -0
  13. data/examples/httpd.conf +474 -0
  14. data/examples/mime.yaml +3 -0
  15. data/examples/mongrel.conf +9 -0
  16. data/examples/mongrel_simple_ctrl.rb +92 -0
  17. data/examples/mongrel_simple_service.rb +116 -0
  18. data/examples/monitrc +57 -0
  19. data/examples/random_thrash.rb +19 -0
  20. data/examples/simpletest.rb +52 -0
  21. data/examples/webrick_compare.rb +20 -0
  22. data/ext/http11/ext_help.h +14 -0
  23. data/ext/http11/extconf.rb +6 -0
  24. data/ext/http11/http11.c +402 -0
  25. data/ext/http11/http11_parser.c +1221 -0
  26. data/ext/http11/http11_parser.h +49 -0
  27. data/ext/http11/http11_parser.java.rl +170 -0
  28. data/ext/http11/http11_parser.rl +152 -0
  29. data/ext/http11/http11_parser_common.rl +54 -0
  30. data/ext/http11_java/Http11Service.java +13 -0
  31. data/ext/http11_java/org/jruby/mongrel/Http11.java +266 -0
  32. data/ext/http11_java/org/jruby/mongrel/Http11Parser.java +572 -0
  33. data/lib/http11.so +0 -0
  34. data/lib/mongrel.rb +355 -0
  35. data/lib/mongrel/camping.rb +107 -0
  36. data/lib/mongrel/cgi.rb +181 -0
  37. data/lib/mongrel/command.rb +222 -0
  38. data/lib/mongrel/configurator.rb +388 -0
  39. data/lib/mongrel/const.rb +110 -0
  40. data/lib/mongrel/debug.rb +203 -0
  41. data/lib/mongrel/gems.rb +22 -0
  42. data/lib/mongrel/handlers.rb +468 -0
  43. data/lib/mongrel/header_out.rb +28 -0
  44. data/lib/mongrel/http_request.rb +155 -0
  45. data/lib/mongrel/http_response.rb +163 -0
  46. data/lib/mongrel/init.rb +10 -0
  47. data/lib/mongrel/mime_types.yml +616 -0
  48. data/lib/mongrel/rails.rb +185 -0
  49. data/lib/mongrel/stats.rb +89 -0
  50. data/lib/mongrel/tcphack.rb +18 -0
  51. data/lib/mongrel/uri_classifier.rb +76 -0
  52. data/mongrel-public_cert.pem +20 -0
  53. data/mongrel.gemspec +242 -0
  54. data/setup.rb +1585 -0
  55. data/test/mime.yaml +3 -0
  56. data/test/mongrel.conf +1 -0
  57. data/test/test_cgi_wrapper.rb +26 -0
  58. data/test/test_command.rb +86 -0
  59. data/test/test_conditional.rb +107 -0
  60. data/test/test_configurator.rb +88 -0
  61. data/test/test_debug.rb +25 -0
  62. data/test/test_handlers.rb +126 -0
  63. data/test/test_http11.rb +156 -0
  64. data/test/test_redirect_handler.rb +45 -0
  65. data/test/test_request_progress.rb +100 -0
  66. data/test/test_response.rb +127 -0
  67. data/test/test_stats.rb +35 -0
  68. data/test/test_uriclassifier.rb +261 -0
  69. data/test/test_ws.rb +115 -0
  70. data/test/testhelp.rb +79 -0
  71. data/tools/trickletest.rb +45 -0
  72. metadata +197 -0
  73. metadata.gz.sig +1 -0
@@ -0,0 +1,45 @@
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
+ nout = 0
8
+ randstop = rand(st.length / 10)
9
+ STDERR.puts "stopping after: #{randstop}"
10
+
11
+ begin
12
+ while data = req.read(chunk)
13
+ nout += s.write(data)
14
+ s.flush
15
+ sleep 0.1
16
+ if nout > randstop
17
+ STDERR.puts "BANG! after #{nout} bytes."
18
+ break
19
+ end
20
+ end
21
+ rescue Object => e
22
+ STDERR.puts "ERROR: #{e}"
23
+ ensure
24
+ s.close
25
+ end
26
+ end
27
+
28
+ content = "-" * (1024 * 240)
29
+ st = "GET / HTTP/1.1\r\nHost: www.zedshaw.com\r\nContent-Type: text/plain\r\nContent-Length: #{content.length}\r\n\r\n#{content}"
30
+
31
+ puts "length: #{content.length}"
32
+
33
+ threads = []
34
+ ARGV[1].to_i.times do
35
+ t = Thread.new do
36
+ size = 100
37
+ puts ">>>> #{size} sized chunks"
38
+ do_test(st, size)
39
+ end
40
+
41
+ t.abort_on_exception = true
42
+ threads << t
43
+ end
44
+
45
+ threads.each {|t| t.join}
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongrel
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.5
5
+ platform: x86-mingw32
6
+ authors:
7
+ - Zed A. Shaw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDUDCCAjigAwIBAgIBADANBgkqhkiG9w0BAQUFADBOMRwwGgYDVQQDDBNtb25n
14
+ cmVsLWRldmVsb3BtZW50MRkwFwYKCZImiZPyLGQBGRYJcnVieWZvcmdlMRMwEQYK
15
+ CZImiZPyLGQBGRYDb3JnMB4XDTA3MDkxNjEwMzI0OVoXDTA4MDkxNTEwMzI0OVow
16
+ TjEcMBoGA1UEAwwTbW9uZ3JlbC1kZXZlbG9wbWVudDEZMBcGCgmSJomT8ixkARkW
17
+ CXJ1Ynlmb3JnZTETMBEGCgmSJomT8ixkARkWA29yZzCCASIwDQYJKoZIhvcNAQEB
18
+ BQADggEPADCCAQoCggEBAMb9v3B01eOHk3FyypbQgKXzJplUE5P6dXoG+xpPm0Lv
19
+ P7BQmeMncOwqQ7zXpVQU+lTpXtQFTsOE3vL7KnhQFJKGvUAkbh24VFyopu1I0yqF
20
+ mGu4nRqNXGXVj8TvLSj4S1WpSRLAa0acLPNyKhGmoV9+crqQypSjM6XKjBeppifo
21
+ 4eBmWGjiJEYMIJBvJZPJ4rAVDDA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BEM3guuNz1vrr2RW7UAh+KY8w2+cGxt+MNi3P+rrfx/LAr7d
41
+ KKV+RT7PQgutb9MZhk8ghn0qgTpCxWbvlhnFrMqIDaJy9nXGEWt6M0fTWdEojrzF
42
+ dLSO//3GYzZze/ykE20KeNZ8SXzbxPwmIwrKfvoGYshGdmU7RAwiV6vV9ZS4uB1I
43
+ /pvzsWp3cSqZwxJvtb7P445jcDMPqFXjMFVAXd6KpfVNl4ZNBzYHc0Ii2uLu3Pv4
44
+ jOmwvJlYZ30ccBh0G86ngtlOpZNrdcnXgRKXADGnxPickYZMdIHPPykIeR6Im0sR
45
+ hCq6hsHkuWQU6CuwqTtGErw6uwIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQE
46
+ AwIEsDAdBgNVHQ4EFgQUkz5QYICmPVaUs8rhPOQmhrDosCUwDQYJKoZIhvcNAQEF
47
+ BQADggEBAMVgi+dtUNn1WNgsrkDi8wPkBbTj4qvTdu/mLncUD/wSNEfaf0ADiycu
48
+ W9x8imY3UmSyyc2HO+/Wnf6/PkbaoAcUZxl/7a60UDqSyTpdpfB3moA7z9+j+Kyp
49
+ nVFr7JVQG3SSNC/y0XrYf6J0DCgpLwOqLSes/KaQOtJlXl/xV37AHXEnAPjwJyCD
50
+ qafzGwoObqIf7Vj8IzU/eoCx/SxAYnaevry1bls58eb28FKGuq7bWyJuDrFu1H8m
51
+ mPG0Kv6rJ8vKyQiYZMAKm+XpuDZ09rnGm3ytdeEpXDfF5osSDDBSlWox82z2ulMd
52
+ knPjAuGZt50yNl1teBnVEZkty2RINfo=
53
+ -----END CERTIFICATE-----
54
+
55
+ date: 2008-08-16 00:00:00 +02:00
56
+ default_executable:
57
+ dependencies:
58
+ - !ruby/object:Gem::Dependency
59
+ name: gem_plugin
60
+ type: :runtime
61
+ version_requirement:
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.2.3
67
+ version:
68
+ - !ruby/object:Gem::Dependency
69
+ name: cgi_multipart_eof_fix
70
+ type: :runtime
71
+ version_requirement:
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "2.4"
77
+ version:
78
+ description: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
79
+ email: ""
80
+ executables:
81
+ - mongrel_rails
82
+ extensions: []
83
+
84
+ extra_rdoc_files: []
85
+
86
+ files:
87
+ - bin/mongrel_rails
88
+ - CHANGELOG
89
+ - COPYING
90
+ - examples/builder.rb
91
+ - examples/camping/blog.rb
92
+ - examples/camping/README
93
+ - examples/camping/tepee.rb
94
+ - examples/httpd.conf
95
+ - examples/mime.yaml
96
+ - examples/mongrel.conf
97
+ - examples/mongrel_simple_ctrl.rb
98
+ - examples/mongrel_simple_service.rb
99
+ - examples/monitrc
100
+ - examples/random_thrash.rb
101
+ - examples/simpletest.rb
102
+ - examples/webrick_compare.rb
103
+ - ext/http11/ext_help.h
104
+ - ext/http11/extconf.rb
105
+ - ext/http11/http11.c
106
+ - ext/http11/http11_parser.c
107
+ - ext/http11/http11_parser.h
108
+ - ext/http11/http11_parser.java.rl
109
+ - ext/http11/http11_parser.rl
110
+ - ext/http11/http11_parser_common.rl
111
+ - ext/http11_java/Http11Service.java
112
+ - ext/http11_java/org/jruby/mongrel/Http11.java
113
+ - ext/http11_java/org/jruby/mongrel/Http11Parser.java
114
+ - lib/mongrel/camping.rb
115
+ - lib/mongrel/cgi.rb
116
+ - lib/mongrel/command.rb
117
+ - lib/mongrel/configurator.rb
118
+ - lib/mongrel/const.rb
119
+ - lib/mongrel/debug.rb
120
+ - lib/mongrel/gems.rb
121
+ - lib/mongrel/handlers.rb
122
+ - lib/mongrel/header_out.rb
123
+ - lib/mongrel/http_request.rb
124
+ - lib/mongrel/http_response.rb
125
+ - lib/mongrel/init.rb
126
+ - lib/mongrel/mime_types.yml
127
+ - lib/mongrel/rails.rb
128
+ - lib/mongrel/stats.rb
129
+ - lib/mongrel/tcphack.rb
130
+ - lib/mongrel/uri_classifier.rb
131
+ - lib/mongrel.rb
132
+ - LICENSE
133
+ - Manifest
134
+ - mongrel-public_cert.pem
135
+ - mongrel.gemspec
136
+ - README
137
+ - setup.rb
138
+ - test/mime.yaml
139
+ - test/mongrel.conf
140
+ - test/test_cgi_wrapper.rb
141
+ - test/test_command.rb
142
+ - test/test_conditional.rb
143
+ - test/test_configurator.rb
144
+ - test/test_debug.rb
145
+ - test/test_handlers.rb
146
+ - test/test_http11.rb
147
+ - test/test_redirect_handler.rb
148
+ - test/test_request_progress.rb
149
+ - test/test_response.rb
150
+ - test/test_stats.rb
151
+ - test/test_uriclassifier.rb
152
+ - test/test_ws.rb
153
+ - test/testhelp.rb
154
+ - TODO
155
+ - tools/trickletest.rb
156
+ - lib/http11.so
157
+ has_rdoc: true
158
+ homepage: http://mongrel.rubyforge.org
159
+ post_install_message:
160
+ rdoc_options: []
161
+
162
+ require_paths:
163
+ - lib
164
+ - ext
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 1.8.4
170
+ version:
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: "0"
176
+ version:
177
+ requirements: []
178
+
179
+ rubyforge_project: mongrel
180
+ rubygems_version: 1.2.0
181
+ signing_key:
182
+ specification_version: 2
183
+ summary: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
184
+ test_files:
185
+ - test/test_cgi_wrapper.rb
186
+ - test/test_command.rb
187
+ - test/test_conditional.rb
188
+ - test/test_configurator.rb
189
+ - test/test_debug.rb
190
+ - test/test_handlers.rb
191
+ - test/test_http11.rb
192
+ - test/test_redirect_handler.rb
193
+ - test/test_request_progress.rb
194
+ - test/test_response.rb
195
+ - test/test_stats.rb
196
+ - test/test_uriclassifier.rb
197
+ - test/test_ws.rb
@@ -0,0 +1 @@
1
+ ���=�� uG�a���2�p�&m�_E��܎X|�o�H;�σh�a� *4�+������ѰxL�F�B�BA��j�B�آ�E��(�I5����l�W��=��� ��M���t_��&OJ}�%�i, p