unicorn 4.7.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +7 -0
  2. data/.document +0 -1
  3. data/.gitattributes +5 -0
  4. data/.gitignore +2 -2
  5. data/.manifest +14 -21
  6. data/.olddoc.yml +22 -0
  7. data/Application_Timeouts +7 -7
  8. data/DESIGN +2 -4
  9. data/Documentation/.gitignore +1 -3
  10. data/Documentation/unicorn.1 +222 -0
  11. data/Documentation/unicorn_rails.1 +207 -0
  12. data/FAQ +23 -6
  13. data/GIT-VERSION-FILE +1 -1
  14. data/GIT-VERSION-GEN +1 -1
  15. data/GNUmakefile +139 -92
  16. data/HACKING +13 -28
  17. data/ISSUES +82 -19
  18. data/KNOWN_ISSUES +18 -18
  19. data/LATEST +22 -44
  20. data/LICENSE +2 -2
  21. data/Links +24 -22
  22. data/NEWS +729 -0
  23. data/PHILOSOPHY +0 -6
  24. data/README +50 -48
  25. data/Rakefile +0 -44
  26. data/SIGNALS +12 -3
  27. data/Sandbox +11 -10
  28. data/TODO +0 -2
  29. data/TUNING +30 -9
  30. data/archive/.gitignore +3 -0
  31. data/archive/slrnpull.conf +4 -0
  32. data/bin/unicorn +4 -2
  33. data/bin/unicorn_rails +3 -3
  34. data/examples/big_app_gc.rb +1 -1
  35. data/examples/init.sh +36 -8
  36. data/examples/logrotate.conf +17 -2
  37. data/examples/nginx.conf +14 -14
  38. data/examples/unicorn.conf.minimal.rb +2 -2
  39. data/examples/unicorn.conf.rb +14 -6
  40. data/examples/unicorn.socket +11 -0
  41. data/examples/unicorn@.service +40 -0
  42. data/ext/unicorn_http/common_field_optimization.h +23 -5
  43. data/ext/unicorn_http/ext_help.h +0 -20
  44. data/ext/unicorn_http/extconf.rb +37 -1
  45. data/ext/unicorn_http/global_variables.h +1 -1
  46. data/ext/unicorn_http/httpdate.c +2 -2
  47. data/ext/unicorn_http/unicorn_http.c +940 -644
  48. data/ext/unicorn_http/unicorn_http.rl +167 -170
  49. data/ext/unicorn_http/unicorn_http_common.rl +1 -1
  50. data/lib/unicorn/configurator.rb +110 -46
  51. data/lib/unicorn/const.rb +2 -25
  52. data/lib/unicorn/http_request.rb +110 -31
  53. data/lib/unicorn/http_response.rb +17 -31
  54. data/lib/unicorn/http_server.rb +292 -199
  55. data/lib/unicorn/launcher.rb +1 -1
  56. data/lib/unicorn/oob_gc.rb +16 -6
  57. data/lib/unicorn/socket_helper.rb +58 -78
  58. data/lib/unicorn/stream_input.rb +9 -11
  59. data/lib/unicorn/tee_input.rb +16 -11
  60. data/lib/unicorn/tmpio.rb +10 -6
  61. data/lib/unicorn/util.rb +5 -4
  62. data/lib/unicorn/version.rb +1 -1
  63. data/lib/unicorn/worker.rb +99 -22
  64. data/lib/unicorn.rb +69 -42
  65. data/man/man1/unicorn.1 +124 -122
  66. data/man/man1/unicorn_rails.1 +113 -127
  67. data/t/.gitignore +0 -1
  68. data/t/GNUmakefile +3 -80
  69. data/t/README +4 -4
  70. data/t/t0002-parser-error.sh +3 -3
  71. data/t/t0011-active-unix-socket.sh +1 -1
  72. data/t/t0012-reload-empty-config.sh +2 -1
  73. data/t/t0300-no-default-middleware.sh +6 -1
  74. data/t/t0301-no-default-middleware-ignored-in-config.sh +25 -0
  75. data/t/t0301.ru +13 -0
  76. data/t/test-lib.sh +2 -2
  77. data/test/benchmark/README +14 -4
  78. data/test/benchmark/ddstream.ru +50 -0
  79. data/test/benchmark/readinput.ru +40 -0
  80. data/test/benchmark/uconnect.perl +66 -0
  81. data/test/exec/test_exec.rb +74 -20
  82. data/test/test_helper.rb +42 -33
  83. data/test/unit/test_ccc.rb +91 -0
  84. data/test/unit/test_droplet.rb +1 -1
  85. data/test/unit/test_http_parser.rb +49 -19
  86. data/test/unit/test_http_parser_ng.rb +98 -115
  87. data/test/unit/test_request.rb +11 -11
  88. data/test/unit/test_response.rb +31 -19
  89. data/test/unit/test_server.rb +89 -15
  90. data/test/unit/test_signals.rb +9 -9
  91. data/test/unit/test_socket_helper.rb +20 -14
  92. data/test/unit/test_tee_input.rb +10 -0
  93. data/test/unit/test_upload.rb +10 -15
  94. data/test/unit/test_util.rb +28 -3
  95. data/unicorn.gemspec +28 -23
  96. data/unicorn_1 +1 -0
  97. data/unicorn_rails_1 +1 -0
  98. metadata +64 -134
  99. data/.wrongdoc.yml +0 -10
  100. data/ChangeLog +0 -4694
  101. data/Documentation/GNUmakefile +0 -30
  102. data/Documentation/unicorn.1.txt +0 -178
  103. data/Documentation/unicorn_rails.1.txt +0 -175
  104. data/examples/git.ru +0 -13
  105. data/lib/unicorn/app/exec_cgi.rb +0 -154
  106. data/lib/unicorn/app/inetd.rb +0 -109
  107. data/lib/unicorn/ssl_client.rb +0 -11
  108. data/lib/unicorn/ssl_configurator.rb +0 -104
  109. data/lib/unicorn/ssl_server.rb +0 -42
  110. data/local.mk.sample +0 -59
  111. data/script/isolate_for_tests +0 -32
  112. data/t/hijack.ru +0 -42
  113. data/t/sslgen.sh +0 -71
  114. data/t/t0016-trust-x-forwarded-false.sh +0 -30
  115. data/t/t0017-trust-x-forwarded-true.sh +0 -30
  116. data/t/t0200-rack-hijack.sh +0 -27
  117. data/t/t0600-https-server-basic.sh +0 -48
  118. data/test/unit/test_http_parser_xftrust.rb +0 -38
  119. data/test/unit/test_sni_hostnames.rb +0 -47
data/ChangeLog DELETED
@@ -1,4694 +0,0 @@
1
- ChangeLog from http://bogomips.org/unicorn.git (v1.1.5..v4.7.0)
2
-
3
- commit 9c8747d290dfc7ab4bc11c4f88b3c284cc5ba949
4
- Author: Eric Wong <normalperson@yhbt.net>
5
- Date: Mon Nov 4 06:28:56 2013 +0000
6
-
7
- unicorn 4.7.0 - minor updates, license tweak
8
-
9
- * support SO_REUSEPORT on new listeners (:reuseport)
10
-
11
- This allows users to start an independent instance of unicorn on
12
- a the same port as a running unicorn (as long as both instances
13
- use :reuseport).
14
-
15
- ref: https://lwn.net/Articles/542629/
16
-
17
- * unicorn is now GPLv2-or-later and Ruby 1.8-licensed
18
- (instead of GPLv2-only, GPLv3-only, and Ruby 1.8-licensed)
19
-
20
- This changes nothing at the moment. Once the FSF publishes the next
21
- version of the GPL, users may choose the newer GPL version without the
22
- unicorn BDFL approving it. Two years ago when I got permission to add
23
- GPLv3 to the license options, I also got permission from all past
24
- contributors to approve future versions of the GPL. So now I'm
25
- approving all future versions of the GPL for use with unicorn.
26
-
27
- Reasoning below:
28
-
29
- In case the GPLv4 arrives and I am not alive to approve/review it,
30
- the lesser of evils is have give blanket approval of all future GPL
31
- versions (as published by the FSF). The worse evil is to be stuck
32
- with a license which cannot guarantee the Free-ness of this project
33
- in the future.
34
-
35
- This unfortunately means the FSF can theoretically come out with
36
- license terms I do not agree with, but the GPLv2 and GPLv3 will
37
- always be an option to all users.
38
-
39
- Note: we currently prefer GPLv3
40
-
41
- Two improvements thanks to Ernest W. Durbin III:
42
-
43
- * USR2 redirects fixed for Ruby 1.8.6 (broken since 4.1.0)
44
- * unicorn(1) and unicorn_rails(1) enforces valid integer for -p/--port
45
-
46
- A few more odd, minor tweaks and fixes:
47
-
48
- * attempt to rename PID file when possible (on USR2)
49
- * workaround reopen atomicity issues for stdio vs non-stdio
50
- * improve handling of client-triggerable socket errors
51
-
52
- commit d5870ccc714a4bb442a46aedd4c68c547e8e56f4
53
- Author: Eric Wong <e@80x24.org>
54
- Date: Fri Nov 1 20:02:47 2013 +0000
55
-
56
- bin/*: enforce -p/--port argument to be a valid integer
57
-
58
- Users may confuse '-p' with the (to-be-deprecated) '-P/--pid'
59
- option, leading to surprising behavior if a pathname is passed as a
60
- port, because String#to_i would convert it to zero, causing:
61
-
62
- TCPServer.new(host, port = 0)
63
-
64
- to bind to a random, unused port.
65
-
66
- commit 7e9e4c740aba24096f768f578779dc1053cb8b70
67
- Author: Ernest W. Durbin III <ewdurbin@gmail.com>
68
- Date: Fri Nov 1 10:12:33 2013 -0400
69
-
70
- construct listener_fds Hash in 1.8.6 compatible way
71
-
72
- This renables the ability for Ruby 1.8.6 environments to perform reexecs
73
-
74
- [ew: clarified this is for 1.8.6,
75
- favor literal {} over Hash.new,
76
- tweaked LISTENERS.map => LISTENERS.each, thanks to Hleb Valoshka
77
- ]
78
-
79
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
80
-
81
- commit 03580a19afe5ce76323a7366b92243a94d445de1
82
- Author: Eric Wong <normalperson@yhbt.net>
83
- Date: Tue Oct 29 00:36:49 2013 +0000
84
-
85
- configurator: validate :reuseport for boolean-ess
86
-
87
- In case we (and Linux) supports other values in the future,
88
- we can update it then. Until now, ensure users only set
89
- true or false for this option.
90
-
91
- commit f078eb93d343bb27cf5c6dc84efbe7c598d572fb
92
- Author: Eric Wong <normalperson@yhbt.net>
93
- Date: Sat Oct 26 07:05:10 2013 +0000
94
-
95
- license: allow all future versions of the GNU GPL
96
-
97
- There is currently no GPLv4, so this change has no effect at the
98
- moment.
99
-
100
- In case the GPLv4 arrives and I am not alive to approve/review it,
101
- the lesser of evils is have give blanket approval of all future GPL
102
- versions (as published by the FSF). The worse evil is to be stuck
103
- with a license which cannot guarantee the Free-ness of this project
104
- in the future.
105
-
106
- This unfortunately means the FSF can theoretically come out with
107
- license terms I do not agree with, but the GPLv2 and GPLv3 will
108
- always be an option to all users.
109
-
110
- commit d9c0db79e9eef9839aaada1be1105b3ff8ceae5c
111
- Author: Eric Wong <e@80x24.org>
112
- Date: Fri Oct 25 19:56:47 2013 +0000
113
-
114
- http_server: fixup comments for PID file renaming
115
-
116
- Thanks to Hongli Lai for noticing my typo. While we're at it, finish up
117
- a halfway-written comment for the EXDEV case
118
-
119
- commit e025cd99beee500f175a3bcc302a1307b39ffb77
120
- Author: Eric Wong <e@80x24.org>
121
- Date: Fri Oct 25 19:45:15 2013 +0000
122
-
123
- avoid IO_PURGATORY on Ruby 1.9+
124
-
125
- Ruby 1.9 and later includes IO#autoclose=, so we can use it
126
- and prevent some dead IO objects from hanging around.
127
-
128
- commit 7c125886b5862bf20711bae22e6697ad46141434
129
- Author: Eric Wong <e@80x24.org>
130
- Date: Fri Oct 25 19:27:05 2013 +0000
131
-
132
- support SO_REUSEPORT on new listeners (:reuseport)
133
-
134
- This allows users to start an independent instance of unicorn on
135
- a the same port as a running unicorn (as long as both instances
136
- use :reuseport).
137
-
138
- ref: https://lwn.net/Articles/542629/
139
-
140
- commit 1dc099228ee0f59c13385a3e7346a2cb37d85153
141
- Author: Eric Wong <e@80x24.org>
142
- Date: Fri Oct 25 19:54:39 2013 +0000
143
-
144
- tests: limit oobgc check to accepted sockets
145
-
146
- Otherwise these tests fail if we start using IO#autoclose=true
147
- on Ruby 1.9 (and also if we use IPv6 sockets for tests).
148
-
149
- commit 7d6ac0c17eb29a00a5b74099dbb3d4d015999f27
150
- Author: Eric Wong <e@80x24.org>
151
- Date: Thu Oct 24 22:11:17 2013 +0000
152
-
153
- attempt to rename PID file when possible
154
-
155
- This will preserve mtime on successful renames for comparisions.
156
- While we're at it, avoid writing the new PID until the listeners are
157
- inherited successfully. This can be useful to avoid accidentally
158
- clobbering a good PID if binding the listener or building the app
159
- (preload_app==true) fails
160
-
161
- commit d90eebe1e50e2bdb9632b64591e4b84cbc0049a1
162
- Author: Eric Wong <e@80x24.org>
163
- Date: Sun Oct 20 04:29:55 2013 +0000
164
-
165
- workaround reopen atomicity issues for stdio vs non-stdio
166
-
167
- In multithreaded apps, we must use dup2/dup3 with a temporary
168
- descriptor to reopen log files atomically. This is the only way
169
- to protect all concurrent userspace access to a file when reopening.
170
-
171
- ref: http://bugs.ruby-lang.org/issues/9036
172
- ref: yahns commit bcb10abe53cfb1d6a8ef7daef59eb10ced397c8a
173
-
174
- commit a9dfd48f9668d0a6e04cf009cea0c4ede962144d
175
- Author: Eric Wong <normalperson@yhbt.net>
176
- Date: Mon Sep 30 18:17:20 2013 +0000
177
-
178
- Rakefile: kill raa_update task
179
-
180
- RAA is dead.
181
-
182
- commit 0c2213dfe23f177c91d76c0c70aec5a01f5a7f55
183
- Author: Eric Wong <normalperson@yhbt.net>
184
- Date: Wed Sep 11 00:49:35 2013 +0000
185
-
186
- tests: upgrade several gems (rack, kgio, raindrops)
187
-
188
- All tests seem to pass.
189
-
190
- commit 849348f82830326e7778e50a5a7f2efeeb4460e5
191
- Author: Eric Wong <normalperson@yhbt.net>
192
- Date: Wed Sep 4 19:21:57 2013 +0000
193
-
194
- Sandbox: document SIGUSR2 + bundler issue with 2.0.0
195
-
196
- Thanks to Eric Chapweske for the heads up.
197
-
198
- ref: http://mid.gmane.org/loom.20130904T205308-432@post.gmane.org
199
-
200
- commit 9af083d7f6b97c0f5ebbdd9a42b58478a6f874b7
201
- Author: Eric Wong <normalperson@yhbt.net>
202
- Date: Fri Aug 16 22:08:11 2013 +0000
203
-
204
- test_util: fix encoding test for Ruby trunk (2.1.0dev)
205
-
206
- As of r40610 in ruby trunk, internal encoding is ignored if
207
- external coding is ASCII-8BIT (binary)
208
-
209
- ref: r40610 http://svn.ruby-lang.org/repos/ruby/trunk
210
-
211
- commit 24b9f66dcdda44378b4053645333ce9ce336b413
212
- Author: Eric Wong <normalperson@yhbt.net>
213
- Date: Sat Aug 17 01:09:46 2013 +0000
214
-
215
- http_server: improve handling of client-triggerable socket errors
216
-
217
- We do not attempt to write HTTP responses for socket errors if
218
- clients disconnect from us unexpectedly.
219
-
220
- Additionally, we do not hide backtraces EINVAL/EBADF errors, since
221
- they are indicative of real bugs which must be fixed.
222
-
223
- We do continue to hide hide EOF, ECONNRESET, ENOTCONN, and EPIPE
224
- because clients (even "friendly") ones will break connections due to
225
- client crashes or network failure (which is common for me :P), and
226
- the backtraces from those will cause excessive logging and even
227
- become a DoS vector.
228
-
229
- commit 2f5174d4ca9764313d6be4c092e9e6c2e4f9d1e1
230
- Author: Eric Wong <normalperson@yhbt.net>
231
- Date: Fri Jun 21 08:00:09 2013 +0000
232
-
233
- unicorn 4.6.3 - fix --no-default-middleware option
234
-
235
- Thanks to Micah Chalmer for this fix. There are also minor
236
- documentation updates and internal cleanups.
237
-
238
- commit 56b0c0c3d26304beeef54d8fe95bead97424f147
239
- Author: Micah Chalmer <micah@micahchalmer.net>
240
- Date: Thu Jun 6 23:03:36 2013 -0400
241
-
242
- Make -N/--no-default-middleware option work
243
-
244
- This fixes the -N (a.k.a. --no-defaut-middleware) option, which
245
- was not working. The problem was that Unicorn::Configurator::RACKUP
246
- is cleared before the lambda returned by Unicorn.builder is run,
247
- which means that checking whether the :no_default_middleware option
248
- was set from the lambda could not detect anything. This patch copies
249
- it to a local variable that won't get clobbered, restoring the feature.
250
-
251
- [ew: squashed test commit into the fix, whitespace fixes]
252
-
253
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
254
-
255
- commit 421f5a8573484b1203fceebc65aee5d011d63c63
256
- Author: Eric Wong <normalperson@yhbt.net>
257
- Date: Wed May 8 22:57:23 2013 +0000
258
-
259
- HttpParser#next? becomes response_start_sent-aware
260
-
261
- This could allow servers with persistent connection support[1]
262
- to support our check_client_connection in the future.
263
-
264
- [1] - Rainbows!/zbatery, possibly others
265
-
266
- commit c3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c
267
- Author: Eric Wong <normalperson@yhbt.net>
268
- Date: Fri May 3 22:08:15 2013 +0000
269
-
270
- test_signals: increase delay between Process.kill
271
-
272
- Otherwise, the signalled process may take too long to react to
273
- and process all the signals on machines with few CPUs.
274
-
275
- commit 9f846a26d24d7bfaf17cacad16cfbae7eec39c74
276
- Author: Eric Wong <normalperson@yhbt.net>
277
- Date: Fri Apr 5 21:38:17 2013 +0000
278
-
279
- doc: update documentation for systemd + PrivateTmp users
280
-
281
- The PrivateTmp feature of systemd breaks the usage of /tmp for the
282
- shared Unix domain socket between nginx and unicorn, so discourage the
283
- use of /tmp in that case.
284
-
285
- While we're at it, use consistent paths for everything and use an
286
- obviously intended-for-user-customization "/path/to" prefix instead
287
- of "/tmp"
288
-
289
- ML-Ref: CAKLVLx_t+9zWMhquMWDfStrxS7xrNoGmN0ZDsjSCUE=VxU+oyQ@mail.gmail.com
290
- Reported-by: David Wilkins <dwilkins@conecuh.com>
291
-
292
- commit 04bcc147d0081433069235a87f779055fa7b6f3c
293
- Author: Eric Wong <normalperson@yhbt.net>
294
- Date: Tue Feb 26 02:57:24 2013 +0000
295
-
296
- unicorn 4.6.2 - HTTP parser fix for Rainbows!
297
-
298
- This release fixes a bug in Unicorn::HttpParser#filter_body
299
- which affected some configurations of Rainbows! There is
300
- also a minor size reduction in the DSO.
301
-
302
- commit f7ee06592d7709e96f64efb5e7a9485b54415c9d
303
- Author: Eric Wong <normalperson@yhbt.net>
304
- Date: Tue Feb 26 02:52:37 2013 +0000
305
-
306
- http: avoid frozen string bug in filter_body
307
-
308
- Our rb_str_modify() became no-ops due to incomplete reverts
309
- of workarounds for old Rubinius, causing rb_str_set_len to
310
- fail with: can't set length of shared string (RuntimeError)
311
-
312
- This bug was introduced due to improper workarounds for old
313
- versions of Rubinius in 2009 and 2010:
314
-
315
- commit 5e8979ad38efdc4de3a69cc53aea33710d478406
316
- ("http: cleanups for latest Rubinius")
317
- commit f37c23704cb73d57e9e478295d1641df1d9104c7
318
- ("http: no-op rb_str_modify() for Rubies without it")
319
-
320
- commit 3ef703179891fa3f6f9d03f2ae58d289c691738e
321
- Author: Eric Wong <normalperson@yhbt.net>
322
- Date: Tue Feb 19 11:36:18 2013 +0000
323
-
324
- httpdate: minor size reduction in DSO
325
-
326
- Extra pointers waste space in the DSO. Normally I wouldn't
327
- care, but the string lengths are identical and this code
328
- already made it into another project in this form.
329
-
330
- size(1) output:
331
-
332
- text data bss dec hex filename
333
- before: 42881 2040 336 45257 b0c9 unicorn_http.so
334
- after: 42499 1888 336 44723 aeb3 unicorn_http.so
335
-
336
- ref: http://www.akkadia.org/drepper/dsohowto.pdf
337
-
338
- commit f8829e69e28bb93dbbf9a220cdff163a6ba182d5
339
- Author: Eric Wong <normalperson@yhbt.net>
340
- Date: Thu Feb 21 08:36:35 2013 +0000
341
-
342
- unicorn 4.6.1 - minor cleanups
343
-
344
- Unicorn::Const::UNICORN_VERSION is now auto-generated from
345
- GIT-VERSION-GEN and always correct. Minor cleanups for
346
- hijacking.
347
-
348
- commit 15c23106ffc9b7a03fdc2353f41c239f89ac9822
349
- Author: Eric Wong <normalperson@yhbt.net>
350
- Date: Sat Feb 9 01:13:17 2013 +0000
351
-
352
- http_request: drop conditional assignment for hijack
353
-
354
- As far as I can tell, this was never necessary.
355
-
356
- commit ed28a361d234847dca550e839f22f0cc779f6ce0
357
- Author: Eric Wong <normalperson@yhbt.net>
358
- Date: Fri Feb 8 22:48:03 2013 +0000
359
-
360
- http_request: remove FIXME for rack.version clarification
361
-
362
- commit a9474624a148fe58e0944664190b259787dcf51e in rack.git
363
-
364
- commit cb0623f25db7f06660e563e8e746bfe0ae5ba9c5
365
- Author: Eric Wong <normalperson@yhbt.net>
366
- Date: Fri Feb 8 18:50:07 2013 +0000
367
-
368
- auto-generate Unicorn::Const::UNICORN_VERSION
369
-
370
- This DRYs out our code and prevents snafus like the 4.6.0
371
- release where UNICORN_VERSION stayed at 4.5.0
372
-
373
- Reported-by: Maurizio De Santis <m.desantis@morganspa.com>
374
-
375
- commit 1b3352ec9b5c9eeb58cf330d6b9ce8753af4ec16
376
- Author: Eric Wong <normalperson@yhbt.net>
377
- Date: Wed Feb 6 11:20:57 2013 +0000
378
-
379
- unicorn 4.6.0 - hijacking support
380
-
381
- This pre-release adds hijacking support for Rack 1.5 users.
382
- See Rack documentation for more information about hijacking.
383
- There is also a new --no-default-middleware/-N option
384
- for the `unicorn' command to ignore RACK_ENV within unicorn
385
- thanks to Lin Jen-Shin.
386
-
387
- There are only documentation and test-portability updates
388
- since 4.6.0pre1, no code changes.
389
-
390
- commit 9cd8554749a9f120b010c93933d09d2dd27b1280
391
- Author: Eric Wong <normalperson@yhbt.net>
392
- Date: Mon Feb 4 12:39:09 2013 +0000
393
-
394
- tests: "wc -l" portability for *BSDs
395
-
396
- On FreeBSD 9.0, "wc -l" emits leading whitespace, so
397
- filter it through tr -d '[:space:]' to eliminate it.
398
-
399
- commit 2a2163594ea2b515e98fbe9f909bcf90e4c35fe8
400
- Author: Eric Wong <normalperson@yhbt.net>
401
- Date: Mon Feb 4 12:29:00 2013 +0000
402
-
403
- tests: "wc -c" portability for *BSDs
404
-
405
- On FreeBSD 9.0, "wc -c" emits leading whitespace, so
406
- filter it through tr -d '[:space:]' to eliminate it.
407
-
408
- This is commit 8a6117a22a7d01eeb5adc63d3152acf435cd3176
409
- in rainbows.git
410
-
411
- commit 85223902e8229bd460ce0b4ad126f42b1db42a46
412
- Author: Eric Wong <normalperson@yhbt.net>
413
- Date: Mon Feb 4 10:36:18 2013 +0000
414
-
415
- tests: replace non-portable "date +%s" with ruby equivalent
416
-
417
- "date +%s" is not in POSIX (it is in GNU, and at least FreeBSD
418
- 9.0, possibly earlier). The Ruby equivalent should be
419
- sufficiently portable between different Ruby versions.
420
-
421
- This change was automated via:
422
- perl -i -p -e 's/date \+%s/unix_time/' t/*.sh
423
-
424
- This is commit 0ba6fc3c30b9cf530faf7fcf5ce7be519ec13fe7
425
- in rainbows.git
426
-
427
- commit a09a622b4988b5eee819487c96a4563e71f753f7
428
- Author: Eric Wong <normalperson@yhbt.net>
429
- Date: Mon Feb 4 10:30:25 2013 +0000
430
-
431
- tests: remove utee
432
-
433
- POSIX already stipulates tee(1) must be unbuffered. I think my
434
- decision to use utee was due to my being misled by a bug in
435
- older curl where -N did not work as advertised (but --no-buffer
436
- did).
437
-
438
- N.B. we don't use tee in unicorn tests, this just matches
439
- commit cbff7b0892148b037581541184364e0e91d2a138 in rainbows
440
-
441
- commit 64765b95df06256d39daefdeebde97c874770131
442
- Author: Eric Wong <normalperson@yhbt.net>
443
- Date: Tue Jan 29 21:19:22 2013 +0000
444
-
445
- manpage: update middleware-related documentation
446
-
447
- -N/--no-default-middleware needs a corresponding manpage entry.
448
-
449
- Additionally, the Rack::Chunked/ContentLength middleware comment
450
- is out-of-date as of unicorn v4.1.0
451
-
452
- commit db919d18e01f6b2339915cbd057fba9dc040988b
453
- Author: Eric Wong <normalperson@yhbt.net>
454
- Date: Tue Jan 29 21:02:55 2013 +0000
455
-
456
- unicorn 4.6.0pre1 - hijacking support
457
-
458
- This pre-release adds hijacking support for Rack 1.5 users.
459
- See Rack documentation for more information about hijacking.
460
- There is also a new --no-default-middleware/-N option
461
- for the `unicorn' command to ignore RACK_ENV within unicorn.
462
-
463
- commit b73299a053b305098d5d68634fa928ec71aa4eac
464
- Merge: c43113e fedb5e5
465
- Author: Eric Wong <normalperson@yhbt.net>
466
- Date: Tue Jan 29 21:00:32 2013 +0000
467
-
468
- Merge branch 'hijack'
469
-
470
- * hijack:
471
- ignore normal Rack response at request-time hijack
472
- support for Rack hijack in request and response
473
-
474
- commit c43113e350aabb78c30ba64884328458db85c901
475
- Author: Lin Jen-Shin <godfat@godfat.org>
476
- Date: Tue Jan 29 11:21:19 2013 +0800
477
-
478
- Add -N or --no-default-middleware option.
479
-
480
- This would prevent Unicorn from adding default middleware,
481
- as if RACK_ENV were always none. (not development nor deployment)
482
-
483
- This should also be applied to `rainbows' and `zbatery' as well.
484
-
485
- One of the reasons to add this is to avoid conflicting
486
- RAILS_ENV and RACK_ENV. It would be helpful in the case
487
- where a Rails application and Rack application are composed
488
- together, while we want Rails app runs under development
489
- and Rack app runs under none (if we don't want those default
490
- middleware), and we don't really want to make RAILS_ENV
491
- set to development and RACK_ENV to none because it might be
492
- confusing. Note that Rails would also look into RACK_ENV.
493
-
494
- Another reason for this is that only `rackup' would be
495
- inserting those default middleware. Both `thin' and `puma'
496
- would not do this, nor does Rack::Handler.get.run which is
497
- used in Sinatra.
498
-
499
- So using this option would make it work differently from
500
- `rackup' but somehow more similar to `thin' or `puma'.
501
-
502
- Discussion thread on the mailing list:
503
- http://rubyforge.org/pipermail/mongrel-unicorn/2013-January/001675.html
504
-
505
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
506
-
507
- commit fdd7c851e5664c1e629a904e21d147a9dfc950d7
508
- Author: Eric Wong <normalperson@yhbt.net>
509
- Date: Tue Jan 29 03:56:16 2013 +0000
510
-
511
- test_exec: do not count '\n' as column width
512
-
513
- This off-by-one error was incorrectly rejecting a line which
514
- would've been readable without wrapping on an 80-column terminal.
515
-
516
- commit 89071a412e161a3ea24a9574611932a1f0acc8c7
517
- Author: Eric Wong <normalperson@yhbt.net>
518
- Date: Tue Jan 29 03:37:20 2013 +0000
519
-
520
- tests: upgrade to rack 1.5.1
521
-
522
- This fixes a Rack::Lint regression discovered in t0005.
523
-
524
- commit fedb5e50829e6dfad30ca18ea525c812eccbec70
525
- Author: Eric Wong <normalperson@yhbt.net>
526
- Date: Tue Jan 22 23:52:14 2013 +0000
527
-
528
- ignore normal Rack response at request-time hijack
529
-
530
- Once a connection is hijacked, we ignore it completely and leave
531
- the connection at the mercy of the application.
532
-
533
- commit 705cf5fcf8ccb37deef5d2b922d6d78d34765c5b
534
- Author: Eric Wong <normalperson@yhbt.net>
535
- Date: Tue Jan 22 11:04:52 2013 +0000
536
-
537
- support for Rack hijack in request and response
538
-
539
- Rack 1.5.0 (protocol version [1,2]) adds support for
540
- hijacking the client socket (removing it from the control
541
- of unicorn (or any other Rack webserver)).
542
-
543
- Tested with rack 1.5.0.
544
-
545
- commit faf1edc74c9bb35cf4e131d794c1923bf124aa1c
546
- Author: Eric Wong <normalperson@yhbt.net>
547
- Date: Tue Jan 22 09:48:54 2013 +0000
548
-
549
- tests: version bumps for rack, kgio, and raindrops
550
-
551
- Ensure the latest versions work in tests.
552
-
553
- commit 1bcc4ee4400152fe73a20dedf4f5823475393112
554
- Author: Eric Wong <normalperson@yhbt.net>
555
- Date: Mon Jan 7 20:10:43 2013 +0000
556
-
557
- tests: bump tests to use rack 1.4.3
558
-
559
- It's the latest and greatest! \o/
560
-
561
- commit c4e5b936e5b6b535d56eff30c509a063d77710e1
562
- Author: Eric Wong <normalperson@yhbt.net>
563
- Date: Fri Dec 7 22:15:56 2012 +0000
564
-
565
- unicorn 4.5.0 - check_client_connection option
566
-
567
- The new check_client_connection option allows unicorn to detect
568
- most disconnected local clients before potentially expensive
569
- application processing begins.
570
-
571
- This feature is useful for applications experiencing spikes of
572
- traffic leading to undesirable queue times, as clients will
573
- disconnect (and perhaps even retry, compounding the problem)
574
- before unicorn can even start processing the request.
575
-
576
- To enable this feature, add the following line to a unicorn
577
- config file:
578
-
579
- check_client_connection true
580
-
581
- This feature only works when nginx (or any other HTTP/1.0+
582
- client) is on the same machine as unicorn.
583
-
584
- A huge thanks to Tom Burns for implementing and testing this
585
- change in production with real traffic (including mitigating
586
- an unexpected DoS attack).
587
-
588
- ref: http://mid.gmane.org/CAK4qKG3rkfVYLyeqEqQyuNEh_nZ8yw0X_cwTxJfJ+TOU+y8F+w@mail.gmail.com
589
-
590
- This release fixes broken Rainbows! compatibility in 4.5.0pre1.
591
-
592
- commit bc4c412f15a05a37ec40f374239efa83d2dbdb1e
593
- Author: Peter Marsh <pete@modeltwozero.com>
594
- Date: Mon Dec 3 16:37:30 2012 +0000
595
-
596
- gemspec: enable licenses metadata attribute
597
-
598
- This enables compatibility with metadata scanners such as
599
- LicenseFinder[1].
600
-
601
- The previously commented-out accessor was commented out
602
- in September 2009 when ancient RubyGems were more prevalent.
603
- By now (December 2012), those ancient versions of RubyGems
604
- are unlikely to be around.
605
-
606
- [1] https://github.com/pivotal/LicenseFinder
607
-
608
- [ew: rewritten commit message]
609
-
610
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
611
-
612
- commit fd0192c134acd1d5037a9aa45ad7b5375c28c29c
613
- Author: Eric Wong <normalperson@yhbt.net>
614
- Date: Mon Dec 3 21:19:44 2012 +0000
615
-
616
- README: clarify license and copyright
617
-
618
- Since Ruby 1.9.3, (Matz) Ruby is licensed under a 2-clause BSDL.
619
- Thus we need to clarify we inherited the license terms from
620
- Ruby 1.8 to prevent misunderstanding.
621
-
622
- (The Ruby license change cannot alter the license of other
623
- projects automatically)
624
-
625
- Since we added the GPLv3 as an additional license in 2011,
626
- the license terms of unicorn no longer matches Mongrel 1.1.5.
627
-
628
- This is NOT a change to the unicorn license at all, just a
629
- wording clarification.
630
-
631
- commit 69e6a793d34ff71da7c8ca59962d627e2fb508d8
632
- Author: Eric Wong <normalperson@yhbt.net>
633
- Date: Tue Dec 4 02:35:26 2012 +0000
634
-
635
- fix const error responses for Rainbows!
636
-
637
- Rainbows! relies on the ERROR_XXX_RESPONSE constants of unicorn
638
- 4.x. Changing the constants in unicorn 4.x will break existing
639
- versions of Rainbows!, so remove the dependency on the constants
640
- and generate the error response dynamically.
641
-
642
- Unlike Mongrel, unicorn is unlikely to see malicious traffic and
643
- thus unlikely to benefit from making error messages constant.
644
-
645
- For unicorn 5.x, we will drop these constants entirely.
646
-
647
- (Rainbows! most likely cannot support check_client_connection
648
- consistently across all concurrency models since some of them
649
- pessimistically buffer all writes in userspace. However, the
650
- extra concurrency of Rainbows! makes it less likely to be
651
- overloaded than unicorn, so this feature is likely less useful
652
- for Rainbows!)
653
-
654
- commit 32333a4d233f73f6fc9d904301f97a4406c446fa
655
- Author: Eric Wong <normalperson@yhbt.net>
656
- Date: Thu Nov 29 23:00:45 2012 +0000
657
-
658
- unicorn 4.5.0pre1 - check_client_connection option
659
-
660
- The new check_client_connection option allows unicorn to detect
661
- most disconnected clients before potentially expensive
662
- application processing begins.
663
-
664
- This feature is useful for applications experiencing spikes of
665
- traffic leading to undesirable queue times, as clients will
666
- disconnect (and perhaps even retry, compounding the problem)
667
- before unicorn can even start processing the request.
668
-
669
- To enable this feature, add the following line to a unicorn
670
- config file:
671
-
672
- check_client_connection true
673
-
674
- A huge thanks to Tom Burns for implementing and testing this
675
- change in production with real traffic (including mitigating
676
- an unexpected DoS attack).
677
-
678
- commit 90db7b14eab449da8cef4ef22ab76ae00f654361
679
- Author: Eric Wong <normalperson@yhbt.net>
680
- Date: Thu Nov 29 21:48:31 2012 +0000
681
-
682
- check_client_connection: document local-only requirement
683
-
684
- In my testing, only dropped clients over Unix domain sockets or
685
- loopback TCP were detected with this option. Since many
686
- nginx+unicorn combinations run on the same host, this is not a
687
- problem.
688
-
689
- Furthermore, tcp_nodelay:true appears to work over loopback,
690
- so remove the requirement for tcp_nodelay:false.
691
-
692
- commit 5c700fc2cf398848ddcf71a2aa3f0f2a6563e87b
693
- Author: Tom Burns <tom.burns@jadedpixel.com>
694
- Date: Tue Oct 30 16:22:21 2012 -0400
695
-
696
- Begin writing HTTP request headers early to detect disconnected clients
697
-
698
- This patch checks incoming connections and avoids calling the application
699
- if the connection has been closed.
700
-
701
- It works by sending the beginning of the HTTP response before calling
702
- the application to see if the socket can successfully be written to.
703
-
704
- By enabling this feature users can avoid wasting application rendering
705
- time only to find the connection is closed when attempting to write, and
706
- throwing out the result.
707
-
708
- When a client disconnects while being queued or processed, Nginx will log
709
- HTTP response 499 but the application will log a 200.
710
-
711
- Enabling this feature will minimize the time window during which the problem
712
- can arise.
713
-
714
- The feature is disabled by default and can be enabled by adding
715
- 'check_client_connection true' to the unicorn config.
716
-
717
- [ew: After testing this change, Tom Burns wrote:
718
-
719
- So we just finished the US Black Friday / Cyber Monday weekend running
720
- unicorn forked with the last version of the patch I had sent you. It
721
- worked splendidly and helped us handle huge flash sales without
722
- increased response time over the weekend.
723
-
724
- Whereas in previous flash traffic scenarios we would see the number of
725
- HTTP 499 responses grow past the number of real HTTP 200 responses,
726
- over the weekend we saw no growth in 499s during flash sales.
727
-
728
- Unexpectedly the patch also helped us ward off a DoS attack where the
729
- attackers were disconnecting immediately after making a request.
730
-
731
- ref: <CAK4qKG3rkfVYLyeqEqQyuNEh_nZ8yw0X_cwTxJfJ+TOU+y8F+w@mail.gmail.com>
732
- ]
733
-
734
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
735
-
736
- commit f4af812a28b03508c96853739aea53f7a6714abf
737
- Author: Eric Wong <normalperson@yhbt.net>
738
- Date: Tue Nov 13 20:22:13 2012 +0000
739
-
740
- tests: remove assert_nothing_raised (part 2)
741
-
742
- assert_nothing_raised ends up hiding errors and backtraces,
743
- making things harder to debug. Since Test::Unit already
744
- fails on uncaught exceptions, there is no need to assert
745
- on the lack of exceptions for a successful test run.
746
-
747
- This is a followup to commit 5acf5522295c947d3118926d1a1077007f615de9
748
-
749
- commit 4bd0dbdf2d27672dc941746e06b647ea26fe63ee
750
- Author: Eric Wong <normalperson@yhbt.net>
751
- Date: Thu Oct 11 09:16:51 2012 +0000
752
-
753
- Rakefile: fm_update task updated for HTTPS
754
-
755
- Freecode.com now requires HTTPS.
756
-
757
- commit f0a31e43676f59762d5bf53707cd8cc21fed0727
758
- Author: Eric Wong <normalperson@yhbt.net>
759
- Date: Wed Oct 10 21:33:46 2012 +0000
760
-
761
- unicorn 4.4.0 - minor updates
762
-
763
- Non-regular files are no longer reopened on SIGUSR1. This
764
- allows users to specify FIFOs as log destinations.
765
-
766
- TCP_NOPUSH/TCP_CORK is no longer set/unset by default. Use
767
- :tcp_nopush explicitly with the "listen" directive if you wish
768
- to enable TCP_NOPUSH/TCP_CORK.
769
-
770
- Listen sockets are now bound _after_ loading the application for
771
- preload_app(true) users. This prevents load balancers from
772
- sending traffic to an application server while the application
773
- is still loading.
774
-
775
- There are also minor test suite cleanups.
776
-
777
- commit 032791b9a367f67febbe7534f6ea4cac127e7897
778
- Author: Eric Wong <normalperson@yhbt.net>
779
- Date: Mon Oct 1 21:18:02 2012 -0700
780
-
781
- util: only consider regular files as logs
782
-
783
- If a user specifies a non-regular file for stderr_path or
784
- stdout_path, we should not attempt to reopen or chown
785
- it. This should also allow users to specify FIFOs as log
786
- destinations.
787
-
788
- commit 5acf5522295c947d3118926d1a1077007f615de9
789
- Author: Eric Wong <normalperson@yhbt.net>
790
- Date: Mon Aug 6 13:34:34 2012 -0700
791
-
792
- avoid assert_nothing_raised in unit tests
793
-
794
- It's better to show errors and backtraces when stuff
795
- breaks
796
-
797
- commit 7b107d66e84ad2e958d5574cb00770265dd117c2
798
- Author: Eric Wong <normalperson@yhbt.net>
799
- Date: Mon Aug 6 20:15:46 2012 +0000
800
-
801
- do not touch TCP_NOPUSH/TCP_CORK at all by default
802
-
803
- On a certain FreeBSD 8.1 installation, explicitly setting
804
- TCP_NOPUSH to zero (off) can cause EADDRNOTAVAIL errors and also
805
- resets the listen backlog to 5. Enabling TCP_NOPUSH explicitly
806
- did not exhibit this issue for the user who (privately) reported
807
- this issue.
808
-
809
- To be on the safe side, we won't set/unset TCP_NOPUSH/TCP_CORK
810
- at all, which will leave it off on all current systems.
811
-
812
- commit 53c375dc933b62b24df2c54d3938b03fa9da1f06
813
- Author: Eric Wong <normalperson@yhbt.net>
814
- Date: Fri Jun 29 16:22:17 2012 -0700
815
-
816
- bind listeners after loading for preload_app users
817
-
818
- In the case where preload_app is true, delay binding new
819
- listeners until after loading the application.
820
-
821
- Some applications have very long load times (especially Rails
822
- apps with Ruby 1.9.2). Binding listeners early may cause a load
823
- balancer to incorrectly believe the unicorn workers are ready to
824
- serve traffic even while the app is being loaded.
825
-
826
- Once a listener is bound, connect() requests from the load
827
- balancer succeed until the listen backlog is filled. This
828
- allows requests to pile up for a bit (depending on backlog size)
829
- before getting rejected by the kernel. By the time the
830
- application is loaded and ready-to-run, requests in the
831
- listen backlog are likely stale and not useful to process.
832
-
833
- Processes inheriting listeners do not suffer this effect, as the
834
- old process should still be capable of serving new requests.
835
-
836
- This change does not improve the situation for the
837
- preload_app=false (default) use case. There may not be a
838
- solution for preload_app=false users using large applications.
839
-
840
- Fortunately Ruby 1.9.3+ improves load times of large
841
- applications significantly over 1.9.2 so this should be less of
842
- a problem in the future.
843
-
844
- Reported via private email sent on 2012-06-29T22:59:10Z
845
-
846
- commit 91a3cde091d4ae6ff436681f155b3907daae1c04
847
- Author: Eric Wong <normalperson@yhbt.net>
848
- Date: Thu Jul 26 23:44:04 2012 +0000
849
-
850
- remove Rails-oriented integration tests
851
-
852
- It's too much overhead to keep Rails-specific tests working,
853
- especially when it's hauling in an ancient version of SQLite3.
854
- Since Rails 3 has settled down with Rack and unicorn_rails is
855
- unlikely to need changing in the future, we can drop these
856
- tests.
857
-
858
- commit f4f2de4a526f3a88573f2f839e6865637c67dbe5
859
- Author: Eric Wong <normalperson@yhbt.net>
860
- Date: Sun Apr 29 07:00:48 2012 +0000
861
-
862
- unicorn 4.3.1 - shutdown() fixes
863
-
864
- * Call shutdown(2) if a client EOFs on us during upload.
865
- We can avoid holding a socket open if the Rack app forked a
866
- process during uploads.
867
-
868
- * ignore potential Errno::ENOTCONN errors (from shutdown(2)).
869
- Even on LANs, connections can occasionally be accept()-ed but
870
- be unusable afterwards.
871
-
872
- Thanks to Joel Nimety <jnimety@continuity.net>,
873
- Matt Smith <matt@nearapogee.com> and George <lists@southernohio.net>
874
- on the mongrel-unicorn@rubyforge.org mailing list for their
875
- feedback and testing for this release.
876
-
877
- commit 60b9275410277acc6adcf49a81c177c443d1d392
878
- Author: Eric Wong <normalperson@yhbt.net>
879
- Date: Sun Apr 29 06:49:23 2012 +0000
880
-
881
- isolate_for_tests: upgrade to kgio-monkey 0.4.0
882
-
883
- Seems to work well enough...
884
-
885
- commit 4551c8ad4d63d4031c618f76d39532b39e88f9be
886
- Author: Eric Wong <normalperson@yhbt.net>
887
- Date: Fri Apr 27 14:42:38 2012 -0700
888
-
889
- stream_input: call shutdown(2) if a client EOFs on us
890
-
891
- In case the Rack app forks before a client upload is complete,
892
- shutdown(2) the socket to ensure the client isn't attempting to
893
- read from us (even if it explicitly stopped writes).
894
-
895
- commit 04901da5ae0b4655c83be05d24ae737f1b572002
896
- Author: Eric Wong <normalperson@yhbt.net>
897
- Date: Fri Apr 27 11:48:16 2012 -0700
898
-
899
- http_server: ignore ENOTCONN (mostly from shutdown(2))
900
-
901
- Since there's nothing unicorn can do to avoid this error
902
- on unconnected/halfway-connected clients, ignoring ENOTCONN
903
- is a safe bet.
904
-
905
- Rainbows! has long had this rescue as it called getpeername(2)
906
- on untrusted sockets
907
-
908
- commit 8c1aff1e6335f8a55723907e2661dcb09ea16205
909
- Author: Eric Wong <normalperson@yhbt.net>
910
- Date: Tue Apr 17 21:32:07 2012 +0000
911
-
912
- unicorn 4.3.0 - minor fixes and updates
913
-
914
- * PATH_INFO (aka REQUEST_PATH) increased to 4096 (from 1024).
915
- This allows requests with longer path components and matches
916
- the system PATH_MAX value common to GNU/Linux systems for
917
- serving filesystem components with long names.
918
-
919
- * Apps that fork() (but do not exec()) internally for background
920
- tasks now indicate the end-of-request immediately after
921
- writing the Rack response.
922
-
923
- Thanks to Hongli Lai, Lawrence Pit, Patrick Wenger and Nuo Yan
924
- for their valuable feedback for this release.
925
-
926
- commit e7f5de575b3fd58c65014191c31ed2a59bd05265
927
- Author: Eric Wong <normalperson@yhbt.net>
928
- Date: Tue Apr 17 21:10:51 2012 +0000
929
-
930
- tests: set executable bit on integration shell scripts
931
-
932
- These should be made executable for ease-of-understanding and
933
- consistency, regardless of whether we actually execute them.
934
-
935
- commit 7eccef471a609c87281bb90d9d3b3d7a7b35709e
936
- Author: Eric Wong <normalperson@yhbt.net>
937
- Date: Thu Apr 12 07:40:46 2012 +0000
938
-
939
- http: increase REQUEST_PATH maximum length to 4K
940
-
941
- The previous REQUEST_PATH limit of 1024 is relatively small and
942
- some users encounter problems with long URLs. 4K is a common
943
- limit for PATH_MAX on modern GNU/Linux systems and REQUEST_PATH
944
- is likely to translate to a filesystem path name.
945
-
946
- Thanks to Nuo Yan <yan.nuo@gmail.com> and Lawrence Pit
947
- <lawrence.pit@gmail.com> for their feedback on this issue.
948
-
949
- ref: http://mid.gmane.org/CB935F19-72B8-4EC2-8A1D-5084B37C09F2@gmail.com
950
-
951
- commit b26d3e2c4387707ca958cd9c63c213fc7ac558fa
952
- Author: Eric Wong <normalperson@yhbt.net>
953
- Date: Thu Apr 12 16:46:24 2012 -0700
954
-
955
- shutdown client socket for apps which fork in background
956
-
957
- Previously we relied on implicit socket shutdown() from the
958
- close() syscall. However, some Rack applications fork()
959
- (without calling exec()), creating a potentially long-lived
960
- reference to the underlying socket in a child process. This
961
- ends up causing nginx to wait on the socket shutdown when the
962
- child process exits.
963
-
964
- Calling shutdown() explicitly signals nginx (or whatever client)
965
- that the unicorn worker is done with the socket, regardless of
966
- the number of FD references to the underlying socket in
967
- existence.
968
-
969
- This was not an issue for applications which exec() since
970
- FD_CLOEXEC is always set on the client socket.
971
-
972
- Thanks to Patrick Wenger for discovering this. Thanks to
973
- Hongli Lai for the tip on using shutdown() as is done in
974
- Passenger.
975
-
976
- ref: http://mid.gmane.org/CAOG6bOTseAPbjU5LYchODqjdF3-Ez4+M8jo-D_D2Wq0jkdc4Rw@mail.gmail.com
977
-
978
- commit d258653745e1c8e8fa13b95b1944729294804946
979
- Author: Eric Wong <normalperson@yhbt.net>
980
- Date: Thu Apr 12 18:35:03 2012 -0700
981
-
982
- t/sslgen.sh: use larger keys for tests
983
-
984
- This seems required for TLSv1.2 under OpenSSL 1.0.1
985
-
986
- commit 12cd717d612fe8170f53f5f8377137e1b41db015
987
- Author: Eric Wong <normalperson@yhbt.net>
988
- Date: Wed Apr 11 21:38:10 2012 +0000
989
-
990
- misc documentation spelling fixes
991
-
992
- Found via rdoc-spellcheck
993
-
994
- commit 4757aa70c3b3ab953255f74831b6f98e6f32fb72
995
- Author: Eric Wong <normalperson@yhbt.net>
996
- Date: Mon Mar 26 21:35:10 2012 +0000
997
-
998
- unicorn 4.2.1 - minor fix and doc updates
999
-
1000
- * Stale pid files are detected if a pid is recycled by processes
1001
- belonging to another user, thanks to Graham Bleach.
1002
- * nginx example config updates thanks to to Eike Herzbach.
1003
- * KNOWN_ISSUES now documents issues with apps/libs that install
1004
- conflicting signal handlers.
1005
-
1006
- commit 84e92a9d301f3f42d1d1e4430db33dfb43d54818
1007
- Author: Eric Wong <normalperson@yhbt.net>
1008
- Date: Sat Mar 24 07:45:44 2012 +0000
1009
-
1010
- tests: depend on kgio 2.7.4
1011
-
1012
- This latest version of kgio improves portability to
1013
- FreeBSD-based systems.
1014
-
1015
- commit d0e7d8d770275654024887a05d9e986589ba358c
1016
- Author: Eric Wong <normalperson@yhbt.net>
1017
- Date: Tue Mar 20 20:05:59 2012 +0000
1018
-
1019
- log EPERM errors from invalid pid files
1020
-
1021
- In some cases, EPERM may indicate a real configuration problem,
1022
- but it can also just mean the pid file is stale.
1023
-
1024
- commit 1e13ffee3469997286e65e0563b6433e7744388a
1025
- Author: Eric Wong <normalperson@yhbt.net>
1026
- Date: Tue Mar 20 19:51:35 2012 +0000
1027
-
1028
- KNOWN_ISSUES: document signal conflicts in libs/apps
1029
-
1030
- Jeffrey Yeung confirmed this issue on the mailing list.
1031
-
1032
- ref: <E8D9E7CCC2621343A0A3BB45E8DEDFA91C682DD23D@CRPMBOXPRD04.polycom.com>
1033
-
1034
- commit 9fc5c24920726d3c10bc9f39d8e97686b93cbbe0
1035
- Author: Eric Wong <normalperson@yhbt.net>
1036
- Date: Tue Mar 20 19:49:56 2012 +0000
1037
-
1038
- examples/nginx.conf: use $scheme instead of hard-coded "https"
1039
-
1040
- This adds a little more flexibility to the nginx config,
1041
- especially as protocols (e.g. SPDY) become more prevalent.
1042
-
1043
- Suggested-by: Eike Herzbach <eike@herzbach.net>
1044
-
1045
- commit 0daedd92d3e896a9fcd301bbb58e85bb54a939ee
1046
- Author: Eric Wong <normalperson@yhbt.net>
1047
- Date: Tue Mar 20 19:27:08 2012 +0000
1048
-
1049
- examples/nginx.conf: remove redundant word
1050
-
1051
- From: Eike Herzbach <eike@herzbach.net>
1052
-
1053
- commit 2ce57950e0f61eb6f325a93cef9b7e0e598fc109
1054
- Author: Graham Bleach <graham@darkskills.org.uk>
1055
- Date: Wed Feb 29 14:34:44 2012 +0000
1056
-
1057
- Start the server if another user has a PID matching our stale pidfile.
1058
-
1059
- If unicorn doesn't get terminated cleanly (for example if the machine
1060
- has its power interrupted) and the pid in the pidfile gets used by
1061
- another process, the current unicorn code will exit and not start a
1062
- server. This tiny patch fixes that behaviour.
1063
-
1064
- Acked-by: Eric Wong <normalperson@yhbt.net>
1065
-
1066
- commit b6a154eba6d79fd1572f61290e55f4d05df86730
1067
- Author: Eric Wong <normalperson@yhbt.net>
1068
- Date: Sat Jan 28 09:05:07 2012 +0000
1069
-
1070
- unicorn 4.2.0
1071
-
1072
- The GPLv3 is now an option to the Unicorn license. The existing GPLv2
1073
- and Ruby-only terms will always remain options, but the GPLv3 is
1074
- preferred.
1075
-
1076
- Daemonization is correctly detected on all terminals for development
1077
- use (Brian P O'Rourke).
1078
-
1079
- Unicorn::OobGC respects applications that disable GC entirely
1080
- during application dispatch (Yuichi Tateno).
1081
-
1082
- Many test fixes for OpenBSD, which may help other *BSDs, too.
1083
- (Jeremy Evans).
1084
-
1085
- There is now _optional_ SSL support (via the "kgio-monkey"
1086
- RubyGem). On fast, secure LANs, SSL is only intended for
1087
- detecting data corruption that weak TCP checksums cannot detect.
1088
- Our SSL support is remains unaudited by security experts.
1089
-
1090
- There are also some minor bugfixes and documentation
1091
- improvements.
1092
-
1093
- Ruby 2.0.0dev also has a copy-on-write friendly GC which can save memory
1094
- when combined with "preload_app true", so if you're in the mood, start
1095
- testing Unicorn with the latest Ruby!
1096
-
1097
- commit 8478a54008ea64bf734b9dfc78d940ed69bc00ff
1098
- Author: Eric Wong <normalperson@yhbt.net>
1099
- Date: Sat Jan 28 09:03:57 2012 +0000
1100
-
1101
- doc: update doc for Ruby 2.0.0dev CoW-friendliness
1102
-
1103
- Ruby 2.0.0dev is the future and includes a CoW-friendly GC,
1104
- so we shall encourage folks to give Ruby 2.0.0dev a spin.
1105
-
1106
- commit 49c70ae741b96588021eb1bb6327da4cf78f8ec0
1107
- Author: Eric Wong <normalperson@yhbt.net>
1108
- Date: Fri Jan 27 19:55:28 2012 +0000
1109
-
1110
- script/isolate_for_tests: disable sqlite3-ruby for Ruby 2.0.0dev
1111
-
1112
- We don't need it because we don't test old Rails with bleeding edge Ruby.
1113
-
1114
- commit c8abf6a06c0bd7eb1dfc8457ef1c31de31e7715b
1115
- Author: Eric Wong <normalperson@yhbt.net>
1116
- Date: Fri Jan 27 19:54:41 2012 +0000
1117
-
1118
- disable old Rails tests for Ruby 2.0.0
1119
-
1120
- I doubt anybody would attempt to run ancient, unsupported versions
1121
- of Rails on the latest (unreleased, even) versions of Ruby...
1122
-
1123
- commit 79ae7110b37f9b82151cc61960d93a33bb543669
1124
- Author: Eric Wong <normalperson@yhbt.net>
1125
- Date: Fri Jan 27 19:27:43 2012 +0000
1126
-
1127
- script/isolate_for_tests: update to kgio 2.7.2
1128
-
1129
- Again, we test with the latest version.
1130
-
1131
- commit d6d9178f5dc40cf5cb4c5ef61094d4103f23dce5
1132
- Author: Eric Wong <normalperson@yhbt.net>
1133
- Date: Tue Jan 24 21:48:35 2012 +0000
1134
-
1135
- update tests for Rack 1.4.1
1136
-
1137
- Trying to ensure things always work with the latest version.
1138
-
1139
- commit a7b286273690f801c61a1db9475f74299ffaef6c
1140
- Author: Eric Wong <normalperson@yhbt.net>
1141
- Date: Sun Jan 8 02:01:53 2012 +0000
1142
-
1143
- Rakefile: swap freshmeat.net URL for freecode.com
1144
-
1145
- :<
1146
-
1147
- commit 0782f9fb69993b62dc0c3a90f900c4d8cf5745e6
1148
- Author: Eric Wong <normalperson@yhbt.net>
1149
- Date: Wed Dec 28 06:03:00 2011 +0000
1150
-
1151
- update tests for rack 1.4.0
1152
-
1153
- It's the latest and greatest version, so ensure everything
1154
- works with it.
1155
-
1156
- commit cda82b5ff44c8fcfb61315f822bbaefa3471d4fe
1157
- Author: Eric Wong <normalperson@yhbt.net>
1158
- Date: Sat Dec 17 06:51:58 2011 +0000
1159
-
1160
- http: test case for "Connection: TE"
1161
-
1162
- We need to be sure we don't barf on this header.
1163
-
1164
- commit 68e8d3726542c549f291f82bdcb751d372c34597
1165
- Author: Eric Wong <normalperson@yhbt.net>
1166
- Date: Tue Dec 13 15:04:59 2011 -0800
1167
-
1168
- cleanup exception handling on SIGUSR1
1169
-
1170
- No need to duplicate logic here
1171
-
1172
- commit 7688fe59a8a80f473b276aa1ab01ff24cab6a653
1173
- Author: Eric Wong <normalperson@yhbt.net>
1174
- Date: Tue Dec 13 06:04:51 2011 +0000
1175
-
1176
- quiet possible IOError from SIGUSR1 (reopen logs)
1177
-
1178
- It's possible for a SIGUSR1 signal to be received in the
1179
- worker immediately before calling IO.select. In that case,
1180
- do not clutter logging with IOError and just process the
1181
- reopen log request.
1182
-
1183
- commit 2cc0db7761ee4286c5ccbc48395c70c41d402119
1184
- Author: Eric Wong <normalperson@yhbt.net>
1185
- Date: Mon Dec 5 02:27:14 2011 +0000
1186
-
1187
- socket_helper: fix grammerr fail
1188
-
1189
- Oops :x
1190
-
1191
- commit ee6ffca0a8d129dd930f4c63d0c4c9ef034b245f
1192
- Author: Eric Wong <normalperson@yhbt.net>
1193
- Date: Mon Dec 5 01:33:41 2011 +0000
1194
-
1195
- socket_helper: set SO_KEEPALIVE on TCP sockets
1196
-
1197
- Even LANs can break or be unreliable sometimes and socket
1198
- disconnect messages get lost, which means we fall back to
1199
- the global (kill -9) timeout in Unicorn.
1200
-
1201
- While the default global timeout is much shorter (60s) than
1202
- typical TCP timeouts, some HTTP application dispatches take much
1203
- I/O or computational time (streaming many gigabytes), so the
1204
- global timeout becomes ineffective.
1205
-
1206
- Under Linux, sysadmins are encouraged to lower the default
1207
- net.ipv4.tcp_keepalive_* knobs in sysctl. There should be
1208
- similar knobs in other operating systems (the default keepalive
1209
- intervals are usually ridiculously high, too high for anything).
1210
-
1211
- When the listen socket has SO_KEEPALIVE set, the flag should be
1212
- inherited by accept()-ed sockets.
1213
-
1214
- commit 27f666a973a59c8c6738a65b69f9060c41e6958c
1215
- Author: Eric Wong <normalperson@yhbt.net>
1216
- Date: Mon Dec 5 01:28:33 2011 +0000
1217
-
1218
- socket_helper: remove out-of-date comment for TCP_NODELAY
1219
-
1220
- We favor low latency and consistency with the Unix socket
1221
- behavior even with TCP.
1222
-
1223
- commit 5f8ea2614f92172c7b214441aa3c09a6054c3aa8
1224
- Author: Eric Wong <normalperson@yhbt.net>
1225
- Date: Mon Dec 5 01:26:39 2011 +0000
1226
-
1227
- bump dependencies
1228
-
1229
- We should always be testing with the newest available versions
1230
- to watch for incompatibilities, even if we don't /require/ the
1231
- latest ones to run.
1232
-
1233
- commit fbcf6aa641e5827da48a3b6776c9897de123b405
1234
- Author: Eric Wong <normalperson@yhbt.net>
1235
- Date: Tue Nov 15 16:32:12 2011 -0800
1236
-
1237
- tests: try to set a shorter path for Unix domain sockets
1238
-
1239
- We're only allowed 108 bytes for Unix domain sockets.
1240
- mktemp(1) usually generates path names of reasonable length
1241
- and we rely on it anyways.
1242
-
1243
- commit c4c880c5a2ac521d4a6d0bad132d38dfff375a6c
1244
- Author: Eric Wong <normalperson@yhbt.net>
1245
- Date: Tue Nov 15 15:28:44 2011 -0800
1246
-
1247
- tests: just use the sha1sum implemented in Ruby
1248
-
1249
- The output of SHA1 command-line tools is too unstable and
1250
- I'm more comfortable with Ruby 1.9 encoding support than
1251
- I was in 2009.
1252
-
1253
- Jeremy Evans noted the output of "openssl sha1" has
1254
- changed since I last used it.
1255
-
1256
- commit 2fd5910969419c17aa6a31fb2119eb47a121d497
1257
- Author: Jeremy Evans <jeremyevans0@gmail.com>
1258
- Date: Tue Nov 15 15:26:36 2011 -0800
1259
-
1260
- test_helper: ensure test client connects to valid address
1261
-
1262
- You can listen on 0.0.0.0, but trying to connect to it doesn't work
1263
- well on OpenBSD.
1264
-
1265
- Acked-by: Eric Wong <normalperson@yhbt.net>
1266
-
1267
- commit 66c706acfb3cda802bac4629219e3c3e064352ed
1268
- Author: Jeremy Evans <jeremyevans0@gmail.com>
1269
- Date: Tue Nov 15 15:21:58 2011 -0800
1270
-
1271
- t0011: fix test under OpenBSD
1272
-
1273
- expr on OpenBSD uses a basic regular expression (according to
1274
- re_format(7)), which doesn't support +, only *.
1275
-
1276
- Acked-by: Eric Wong <normalperson@yhbt.net>
1277
-
1278
- commit 9e62bc10294f0b6344b47cd596a93ae457d546fb
1279
- Author: Eric Wong <normalperson@yhbt.net>
1280
- Date: Tue Nov 15 15:13:15 2011 -0800
1281
-
1282
- configurator: limit timeout to 30 days
1283
-
1284
- There's no practical difference between a timeout of 30 days and
1285
- 68 years from an HTTP server standpoint.
1286
-
1287
- POSIX limits us to 31 days, actually, but there could be
1288
- rounding error with floats used in Ruby time calculations and
1289
- there's no real difference between 30 and 31 days, either...
1290
-
1291
- Thanks to Jeremy Evans for pointing out large values will throw
1292
- EINVAL (on select(2) under OpenBSD with Ruby 1.9.3 and
1293
- RangeError on older Rubies.
1294
-
1295
- commit aab850780f9ff0d74c346d7fd62ac588f4d5879b
1296
- Author: Eric Wong <normalperson@yhbt.net>
1297
- Date: Tue Nov 15 15:09:21 2011 -0800
1298
-
1299
- t: ensure SSL certificates exist on fresh test
1300
-
1301
- We throw up some fake SSL certs for testing
1302
-
1303
- commit c7ba76a21c5d00fb5c173cd6aa847442bbc652cb
1304
- Author: Yuichi Tateno <hotchpotch@gmail.com>
1305
- Date: Mon Oct 3 16:51:19 2011 +0900
1306
-
1307
- OobGC: force GC.start
1308
-
1309
- [ew: we need to explicitly enable GC if it is disabled
1310
- and respect applications that disable GC]
1311
-
1312
- Acked-by: Eric Wong <normalperson@yhbt.net>
1313
-
1314
- commit ac346b5abcfa6253bd792091e5fb011774c40d49
1315
- Author: Eric Wong <normalperson@yhbt.net>
1316
- Date: Wed Sep 7 00:36:58 2011 +0000
1317
-
1318
- add preliminary SSL support
1319
-
1320
- This will also be the foundation of SSL support in Rainbows!
1321
- and Zbatery. Some users may also want to use this in
1322
- Unicorn on LANs to meet certain security/auditing requirements.
1323
- Of course, Nightmare! (in whatever form) should also be able to
1324
- use it.
1325
-
1326
- commit b48c6659b294b37f2c6ff3e75c1c9245522d48d1
1327
- Author: Brian P O'Rourke <bpo@somnambulance.net>
1328
- Date: Wed Sep 14 18:50:29 2011 +0800
1329
-
1330
- Detect daemonization via configuration.
1331
-
1332
- This prevents the stopping of all workers by SIGWINCH if you're
1333
- using a windowing system that will 'exec' unicorn from a process
1334
- that's already in a process group.
1335
-
1336
- Acked-by: Eric Wong <normalperson@yhbt.net>
1337
-
1338
- commit db2cba26acc5748bcf9919e3184a667c46911f8c
1339
- Author: Eric Wong <normalperson@yhbt.net>
1340
- Date: Fri Sep 9 16:10:55 2011 -0700
1341
-
1342
- Links: add a link to the UnXF middleware
1343
-
1344
- Since unicorn is designed to be deployed behind nginx (or
1345
- similar), X-Forwarded-* headers are common and Rack applications
1346
- may blindly trust spoofed X-Forwarded-* headers. UnXF provides
1347
- a central place for managing that trust by using rpatricia.
1348
-
1349
- commit d209910e29d4983f8346233262a49541464252c1
1350
- Author: Eric Wong <normalperson@yhbt.net>
1351
- Date: Fri Sep 9 15:48:53 2011 -0700
1352
-
1353
- http_server: update comment on tick == 0
1354
-
1355
- The old comment was confusing. We only zero the tick counter
1356
- when forking because application loading can take a long time.
1357
- Otherwise, it's always updated.
1358
-
1359
- ref: http://mid.gmane.org/20110908191352.GA25251@dcvr.yhbt.net
1360
-
1361
- commit 0113de29108fb669a43d4d7f5528c77a2f96db57
1362
- Author: Eric Wong <normalperson@yhbt.net>
1363
- Date: Fri Sep 2 16:17:57 2011 -0700
1364
-
1365
- http_server: a few more things eligible for GC in worker
1366
-
1367
- There is no need to keep extra hashes or Proc objects around in
1368
- the heap.
1369
-
1370
- commit cd22c595633ec36b69c60f27f2c3841ae0f6faca
1371
- Author: Eric Wong <normalperson@yhbt.net>
1372
- Date: Mon Aug 29 19:54:32 2011 +0000
1373
-
1374
- add GPLv3 option to the license
1375
-
1376
- Existing license terms (Ruby-specific) and GPLv2 remain
1377
- in place, but GPLv3 is preferred as it helps with
1378
- distribution of AGPLv3 code and is explicitly compatible
1379
- with Apache License (v2.0).
1380
-
1381
- Many more reasons are documented by the FSF:
1382
- https://www.gnu.org/licenses/quick-guide-gplv3.html
1383
- http://gplv3.fsf.org/rms-why.html
1384
-
1385
- ref: http://thread.gmane.org/gmane.comp.lang.ruby.unicorn.general/933
1386
-
1387
- commit 8bed251777e9850b04f52f4c520e8b173bd1d756
1388
- Author: Eric Wong <normalperson@yhbt.net>
1389
- Date: Thu Aug 25 14:24:23 2011 -0700
1390
-
1391
- unicorn 4.1.1 - fix last-resort timeout accuracy
1392
-
1393
- The last-resort timeout mechanism was inaccurate and often
1394
- delayed in activation since the 2.0.0 release. It is now fixed
1395
- and remains power-efficient in idle situations, especially with
1396
- the wakeup reduction in MRI 1.9.3+.
1397
-
1398
- There is also a new document on application timeouts
1399
- intended to discourage the reliance on this last-resort
1400
- mechanism. It is visible on the web at:
1401
-
1402
- http://unicorn.bogomips.org/Application_Timeouts.html
1403
-
1404
- commit 34b400cbec2a05e9a1d9fad2d6bd34f54620fdcb
1405
- Author: Eric Wong <normalperson@yhbt.net>
1406
- Date: Wed Aug 24 17:59:55 2011 -0700
1407
-
1408
- doc: add Application Timeouts document
1409
-
1410
- Hopefully this leads to fewer worker processes being killed.
1411
-
1412
- commit b781e5b1a9b652ee3da73e16851e1f17f0cecd88
1413
- Author: Eric Wong <normalperson@yhbt.net>
1414
- Date: Tue Aug 23 19:50:03 2011 -0700
1415
-
1416
- test_helper: remove needless LOAD_PATH mangling
1417
-
1418
- We do it in the Ruby invocation or RUBYLIB.
1419
-
1420
- commit e9da4ce4c8917934242037db0c2735bd7dab1586
1421
- Author: Eric Wong <normalperson@yhbt.net>
1422
- Date: Tue Aug 23 17:39:53 2011 -0700
1423
-
1424
- fix sleep/timeout activation accuracy
1425
-
1426
- I've noticed in stderr logs from some folks that (last resort)
1427
- timeouts from the master process are taking too long to activate
1428
- due to the workarounds for suspend/hibernation.
1429
-
1430
- commit 8d8b500816371fb8f8fce5e9f21cf235ee8d26ae
1431
- Author: Eric Wong <normalperson@yhbt.net>
1432
- Date: Mon Aug 22 20:04:47 2011 +0000
1433
-
1434
- .document: re-add OobGC documentation
1435
-
1436
- Oops!
1437
-
1438
- commit 4f33a71dc2e24f0cc59315b49e7a7ffe71f368d3
1439
- Author: Eric Wong <normalperson@yhbt.net>
1440
- Date: Fri Aug 19 23:04:30 2011 +0000
1441
-
1442
- unicorn 4.1.0 - small updates and fixes
1443
-
1444
- * Rack::Chunked and Rack::ContentLength middlewares are loaded
1445
- by default for RACK_ENV=(development|deployment) users to match
1446
- Rack::Server behavior. As before, use RACK_ENV=none if you want
1447
- fine-grained control of your middleware. This should also
1448
- help users of Rainbows! and Zbatery.
1449
-
1450
- * CTL characters are now rejected from HTTP header values
1451
-
1452
- * Exception messages are now filtered for [:cntrl:] characters
1453
- since application/middleware authors may forget to do so
1454
-
1455
- * Workers will now terminate properly if a SIGQUIT/SIGTERM/SIGINT
1456
- is received while during worker process initialization.
1457
-
1458
- * close-on-exec is explicitly disabled to future-proof against
1459
- Ruby 2.0 changes [ruby-core:38140]
1460
-
1461
- commit 5a6d4ddd8ea2df799654abadb1e25f3def9d478b
1462
- Author: Eric Wong <normalperson@yhbt.net>
1463
- Date: Sat Aug 20 00:28:39 2011 +0000
1464
-
1465
- rdoc cleanups
1466
-
1467
- commit 8de6ab371c1623669b86a5dfa8703c8fd539011f
1468
- Author: Eric Wong <normalperson@yhbt.net>
1469
- Date: Fri Aug 19 22:13:04 2011 +0000
1470
-
1471
- close race if an exit signal hits the worker before trap
1472
-
1473
- The signal handler from the master is still active and will
1474
- push the pending signal to SIG_QUEUE if a worker receives
1475
- a signal immediately after forking.
1476
-
1477
- commit f8b22397ca395a9173d391e8699d539503707792
1478
- Author: Eric Wong <normalperson@yhbt.net>
1479
- Date: Fri Aug 19 21:55:35 2011 +0000
1480
-
1481
- gemspec: bump wrongdoc dependency for dev
1482
-
1483
- Hopefully it points people towards the mailing list
1484
-
1485
- commit 86bbb84231a8a16ec54a621c66843b103b5a8610
1486
- Author: Eric Wong <normalperson@yhbt.net>
1487
- Date: Fri Aug 19 21:54:37 2011 +0000
1488
-
1489
- tests: bump test deps to the latest versions
1490
-
1491
- Nothing appears broken :)
1492
-
1493
- commit 1077961a3f8933c65d39c7e6c9ed6ff3b6b53647
1494
- Author: Eric Wong <normalperson@yhbt.net>
1495
- Date: Fri Aug 19 20:47:29 2011 +0000
1496
-
1497
- Rack::Chunked and ContentLength middlewares by default
1498
-
1499
- This is needed to match the behavior of Rack::Server for
1500
- RACK_ENV=(deployment|development), actually. This won't
1501
- affect users of other RACK_ENV values.
1502
-
1503
- This change has minor performance consequences, so users
1504
- negatively affected should set RACK_ENV to "none" instead for
1505
- full control of their middleware stack.
1506
-
1507
- This mainly affects Rainbows!/Zbatery users since they have
1508
- persistent connections and /need/ Content-Length or
1509
- Transfer-Encoding:chunked headers.
1510
-
1511
- commit 7fe08addefb12bd2f4c63901e8cf631e9162ca51
1512
- Author: Eric Wong <normalperson@yhbt.net>
1513
- Date: Tue Aug 16 19:44:04 2011 -0700
1514
-
1515
- filter exception messages with control characters
1516
-
1517
- We do not want to affect terminals of users who view our log
1518
- files.
1519
-
1520
- commit b1f328b0dd3647168fcc8b1ad9b09284707ad929
1521
- Author: Eric Wong <normalperson@yhbt.net>
1522
- Date: Thu Aug 11 17:28:47 2011 -0700
1523
-
1524
- http_server: small simplification for redirects
1525
-
1526
- We only need the fileno in the key which we use
1527
- to generate the UNICORN_FD env. Otherwise the IO
1528
- object is accepted and understood by Ruby.
1529
-
1530
- commit 6ab27beeda3b0aaaa66f7cc4f734944a7aa84385
1531
- Author: Eric Wong <normalperson@yhbt.net>
1532
- Date: Thu Aug 11 12:59:09 2011 -0700
1533
-
1534
- future-proof against close-on-exec by default
1535
-
1536
- Setting the close-on-exec flag by default and closing
1537
- non-standard descriptors is proposed for Ruby 1.9.4/2.0.0.
1538
- Since Unicorn is one of the few apps to rely on FD inheritance
1539
- across exec(), we need to workaround this by redirecting each
1540
- listener FD to itself for Kernel#exec.
1541
-
1542
- Ruby supports a hash as the final argument to Kernel#exec since
1543
- at least 1.9.1 (nobody cares for 1.9.0 anymore). This allows
1544
- users to backport close-on-exec by default patches to older
1545
- 1.9.x installs without breaking anything.
1546
-
1547
- ref: http://redmine.ruby-lang.org/issues/5041
1548
-
1549
- commit 60d60a6fa716e91651997d86e3cb9cda41475975
1550
- Author: Eric Wong <normalperson@yhbt.net>
1551
- Date: Thu Aug 11 12:46:27 2011 -0700
1552
-
1553
- test_socket_helper: Socket#bind may fail with EINVAL if IPv6 is missing
1554
-
1555
- I don't build IPv6 into all my kernels; maybe other testers do
1556
- not, either.
1557
-
1558
- commit ec8a8f32d257290aac377f1c7b1c496e1df75f73
1559
- Author: Eric Wong <normalperson@yhbt.net>
1560
- Date: Wed Aug 3 11:00:28 2011 -0700
1561
-
1562
- KNOWN_ISSUES: add link to FreeBSD jail workaround notes
1563
-
1564
- Thanks to Tatsuya Ono on the unicorn mailing list.
1565
-
1566
- commit 406b8b0e2ed6e5be34d8ec3cd4b16048233c2856
1567
- Author: Eric Wong <normalperson@yhbt.net>
1568
- Date: Tue Aug 2 23:52:14 2011 +0000
1569
-
1570
- trap death signals in the worker sooner
1571
-
1572
- This helps close a race condition preventing shutdown if
1573
- loading the application (preload_app=false) takes a long
1574
- time and the user decides to kil workers instead.
1575
-
1576
- commit 6d56d7ab891d2cb6127b4cba428a0f7c13b9d2ce
1577
- Author: Eric Wong <normalperson@yhbt.net>
1578
- Date: Wed Jul 20 22:42:16 2011 +0000
1579
-
1580
- http_server: explicitly disable close-on-exec for listeners
1581
-
1582
- Future versions of Ruby may change this from the default *nix
1583
- behavior, so we need to explicitly allow FD passing via exec().
1584
-
1585
- ref: http://redmine.ruby-lang.org/issues/5041
1586
-
1587
- commit 83f72773b7242d86263a18950fca7c8101d7038d
1588
- Author: Eric Wong <normalperson@yhbt.net>
1589
- Date: Tue Jul 12 23:52:33 2011 +0000
1590
-
1591
- http: reject non-LWS CTL chars (0..31 + 127) in field values
1592
-
1593
- RFC 2616 doesn't appear to allow most CTL bytes even though
1594
- Mongrel always did. Rack::Lint disallows 0..31, too, though we
1595
- allow "\t" (HT, 09) since it's LWS and allowed by RFC 2616.
1596
-
1597
- commit cc63e2ee54b4113c40631214618f51c9ef867a91
1598
- Author: Eric Wong <normalperson@yhbt.net>
1599
- Date: Fri Jul 1 07:52:31 2011 +0000
1600
-
1601
- socket_helper: fix undefined variable for logging
1602
-
1603
- I corrupted a Ruby build and SOL_TCP didn't get defined :x
1604
-
1605
- commit 79c646d69822df542aaabe285eac08cdf4111dc0
1606
- Author: Eric Wong <normalperson@yhbt.net>
1607
- Date: Wed Jun 29 18:49:45 2011 +0000
1608
-
1609
- unicorn 4.0.1 - regression bugfixes
1610
-
1611
- This release fixes things for users of per-worker "listen"
1612
- directives in the after_fork hook. Thanks to ghazel@gmail.com
1613
- for reporting the bug.
1614
-
1615
- The "timeout" configurator directive is now truncated to
1616
- 0x7ffffffe seconds to prevent overflow when calling
1617
- IO.select.
1618
-
1619
- commit cdb9bc905cf8e15e8a7d0900f57409f54a7b80ac
1620
- Author: Eric Wong <normalperson@yhbt.net>
1621
- Date: Wed Jun 29 18:48:42 2011 +0000
1622
-
1623
- configurator: limit timeout to 32-bit INT_MAX-1
1624
-
1625
- Nobody will miss one second if they specify an "infinite"
1626
- timeout of ~68 years. This prevents duplicating this logic
1627
- in Rainbows!
1628
-
1629
- commit 19f798301ac1884f423640efafb277b071bb5439
1630
- Author: Eric Wong <normalperson@yhbt.net>
1631
- Date: Wed Jun 29 07:19:32 2011 +0000
1632
-
1633
- fix per-worker listen directive in after_fork hook
1634
-
1635
- The testcase for this was broken, too, so we didn't notice
1636
- this :<
1637
-
1638
- Reported-by: ghazel@gmail.com on the Rainbows! mailing list,
1639
- http://mid.gmane.org/BANLkTi=oQXK5Casq9SuGD3edeUrDPvRm3A@mail.gmail.com
1640
-
1641
- commit 38672501206c9e64d241e3d8571f70b198f0c1e5
1642
- Author: Eric Wong <normalperson@yhbt.net>
1643
- Date: Mon Jun 27 20:51:16 2011 +0000
1644
-
1645
- configurator: truncate timeouts to 32-bit LONG_MAX
1646
-
1647
- IO.select in Ruby can't wait longer than this. This
1648
- means Unicorn can't support applications that take
1649
- longer than 68 years to respond :(
1650
-
1651
- commit fb8bb4469849fa2b2241152aea7e9e82bd3cbcc8
1652
- Author: Eric Wong <normalperson@yhbt.net>
1653
- Date: Mon Jun 27 08:12:58 2011 +0000
1654
-
1655
- unicorn 4.0.0 - for mythical hardware!
1656
-
1657
- A single Unicorn instance may manage more than 1024 workers
1658
- without needing privileges to modify resource limits. As a
1659
- result of this, the "raindrops"[1] gem/library is now a required
1660
- dependency.
1661
-
1662
- TCP socket defaults now favor low latency to mimic UNIX domain
1663
- socket behavior (tcp_nodelay: true, tcp_nopush: false). This
1664
- hurts throughput, users who want to favor throughput should
1665
- specify "tcp_nodelay: false, tcp_nopush: true" in the listen
1666
- directive.
1667
-
1668
- Error logging is more consistent and all lines should be
1669
- formatted correctly in backtraces. This may break the
1670
- behavior of some log parsers.
1671
-
1672
- The call stack is smaller and thus easier to examine backtraces
1673
- when debugging Rack applications.
1674
-
1675
- There are some internal API changes and cleanups, but none that
1676
- affect applications designed for Rack. See "git log v3.7.0.."
1677
- for details.
1678
-
1679
- For users who cannot install kgio[2] or raindrops, Unicorn 1.1.x
1680
- remains supported indefinitely. Unicorn 3.x will remain
1681
- supported if there is demand. We expect raindrops to introduce
1682
- fewer portability problems than kgio did, however.
1683
-
1684
- [1] http://raindrops.bogomips.org/
1685
- [2] http://bogomips.org/kgio/
1686
-
1687
- commit 4785db8cf19899756c4a79462fed861a1d1bd96c
1688
- Author: Eric Wong <normalperson@yhbt.net>
1689
- Date: Mon Jun 27 08:46:28 2011 +0000
1690
-
1691
- slightly faster worker process spawning
1692
-
1693
- It's still O(n) since we don't maintain a reverse mapping of
1694
- spawned processes, but at least we avoid the extra overhead of
1695
- creating an array every time.
1696
-
1697
- commit 441bb8ab48f15f583b82a3f8520648a4694a198f
1698
- Author: Eric Wong <normalperson@yhbt.net>
1699
- Date: Sat Jun 25 22:40:20 2011 +0000
1700
-
1701
- reenable heartbeat checking for idle workers
1702
-
1703
- Some applications/libraries may launch background threads which
1704
- can lock up the process. So we can't disable heartbeat checking
1705
- just because the main thread is sleeping. This also has the
1706
- side effect of reducing master process wakeups when all workers
1707
- are idle.
1708
-
1709
- commit 63bcecf48994aa9afe6dc2890efe3ba4b0696bbf
1710
- Author: Eric Wong <normalperson@yhbt.net>
1711
- Date: Fri Jun 24 08:17:02 2011 +0000
1712
-
1713
- test with latest kgio and rack versions
1714
-
1715
- We'll continue to support older versions, but make
1716
- sure things on the latest ones work.
1717
-
1718
- commit 079eb70692fcda9b4bcf572319434ffa7f9e9849
1719
- Author: Eric Wong <normalperson@yhbt.net>
1720
- Date: Fri Jun 24 07:19:22 2011 +0000
1721
-
1722
- allow multiline comments in config.ru
1723
-
1724
- This matches the latest Rack behavior.
1725
-
1726
- We can't just use Rack::Builder.parse_file because our option
1727
- parser logic is slightly different and incompatible.
1728
-
1729
- ref: rack commit d31cf2b7c0c77c04510c08d95776315ceb24ba54
1730
-
1731
- commit b3b6b0dff19f8a22a96525bba22bf061d03c3fc5
1732
- Author: Eric Wong <normalperson@yhbt.net>
1733
- Date: Thu Jun 23 05:12:08 2011 +0000
1734
-
1735
- http_server: avoid race conditions on SIGQUIT
1736
-
1737
- We don't want the Worker#tick= assignment to trigger after we
1738
- accept a client, since we'd drop that request when we raise the
1739
- exception that breaks us out of the worker loop.
1740
-
1741
- Also, we don't want to enter IO.select with an empty LISTENERS
1742
- array so we can fail with IOError or Errno::EBADF.
1743
-
1744
- commit fbe48964d79f3d592f4f75960c5940add9ccf22a
1745
- Author: Eric Wong <normalperson@yhbt.net>
1746
- Date: Wed Jun 22 07:48:36 2011 +0000
1747
-
1748
- http_server: remove unused variable
1749
-
1750
- A leftover from the fchmod() days
1751
-
1752
- commit 1a2dc92e7ff92157aa12e2c8a8a09ec0d56e0eb6
1753
- Author: Eric Wong <normalperson@yhbt.net>
1754
- Date: Wed Jun 22 02:06:46 2011 +0000
1755
-
1756
- gemspec: fix raindrops dependency
1757
-
1758
- Oops, I suck at Ruby :x
1759
-
1760
- commit de142bc61f714392b0902b6e66a31c34ba223cdb
1761
- Author: Eric Wong <normalperson@yhbt.net>
1762
- Date: Wed Jun 22 02:05:20 2011 +0000
1763
-
1764
- TODO: remove scalability to >= 1024 workers item
1765
-
1766
- We can do it!
1767
-
1768
- commit b08410facbccf96c67822a92888de0bc1910390e
1769
- Author: Eric Wong <normalperson@yhbt.net>
1770
- Date: Fri Jun 17 08:59:02 2011 +0000
1771
-
1772
- test_http_parser: fix for URI too long errors (#3)
1773
-
1774
- The random garbage generator may occasionally generate URIs that
1775
- are too long and cause the URI-specific error to be raised
1776
- instead of the generic parser error we recently introduced.
1777
-
1778
- Follow-up-to: commit 742c4d77f179a757dbcb1fa350f9d75b757acfc7
1779
-
1780
- commit 5f478f5a9a58f72c0a844258b8ee614bf24ea9f7
1781
- Author: Eric Wong <normalperson@yhbt.net>
1782
- Date: Fri Jun 17 08:54:37 2011 +0000
1783
-
1784
- error logging is more consistent
1785
-
1786
- Backtraces are now formatted properly (with timestamps) and
1787
- exceptions will be logged more consistently and similar to
1788
- Logger defaults:
1789
-
1790
- "#{exc.message} (#{e.class})"
1791
- backtrace.each { |line| ... }
1792
-
1793
- This may break some existing monitoring scripts, but errors
1794
- will be more standardized and easier to check moving forward.
1795
-
1796
- commit fa7ce0a6a755cb71a30417478fb797ee7b8d94b5
1797
- Author: Eric Wong <normalperson@yhbt.net>
1798
- Date: Fri Jun 17 07:32:17 2011 +0000
1799
-
1800
- add broken app test from Rainbows!
1801
-
1802
- "app error" is more correct, and consistent with Rainbows!
1803
-
1804
- commit 593deb92e8ebd4e77e482c567d97b6ee496ac378
1805
- Author: Eric Wong <normalperson@yhbt.net>
1806
- Date: Thu Jun 16 23:57:31 2011 +0000
1807
-
1808
- ensure at_exit handlers run on graceful shutdown
1809
-
1810
- rescuing from SystemExit and exit()-ing again is ugly, but
1811
- changes made to lower stack depth positively affect _everyone_
1812
- so we'll tolerate some ugliness here.
1813
-
1814
- We'll need to disable graceful exit for some tests, too...
1815
-
1816
- commit a0c59adf71506b8808de276b1288a319424ee71a
1817
- Author: Eric Wong <normalperson@yhbt.net>
1818
- Date: Thu Jun 16 22:54:40 2011 +0000
1819
-
1820
- replace fchmod()-based heartbeat with raindrops
1821
-
1822
- This means we no longer waste an extra file descriptor per
1823
- worker process in the master. Now there's no need to set a
1824
- higher file descriptor limit for systems running >= 1024
1825
- workers.
1826
-
1827
- commit 95f543a9583e58c56b1c480df84b4b88e6669403
1828
- Author: Eric Wong <normalperson@yhbt.net>
1829
- Date: Thu Jun 16 23:11:28 2011 +0000
1830
-
1831
- add heartbeat timeout test from Rainbows!
1832
-
1833
- Just in case we break anything
1834
-
1835
- commit 4beeb52b1c52ea4486dea13cebe2a8438a9f2139
1836
- Author: Eric Wong <normalperson@yhbt.net>
1837
- Date: Wed Jun 15 01:10:07 2011 +0000
1838
-
1839
- memory reductions in worker process
1840
-
1841
- There's absolutely no need to keep the OptionParser around in
1842
- worker processes.
1843
-
1844
- commit e9e7a1c7c1778ed7cd7c724b26362d1f89b2801c
1845
- Author: Eric Wong <normalperson@yhbt.net>
1846
- Date: Wed Jun 15 00:56:47 2011 +0000
1847
-
1848
- test_http_parser: fix for URI too long errors (again)
1849
-
1850
- The random garbage generator may occasionally generate URIs that
1851
- are too long and cause the URI-specific error to be raised
1852
- instead of the generic parser error we recently introduced.
1853
-
1854
- Follow-up-to: commit 742c4d77f179a757dbcb1fa350f9d75b757acfc7
1855
-
1856
- commit a7d9eb03bf3ac554854990018a67f34c2221fb20
1857
- Author: Eric Wong <normalperson@yhbt.net>
1858
- Date: Wed Jun 15 00:53:45 2011 +0000
1859
-
1860
- http_server: kill another stack frame off
1861
-
1862
- We always know we have zero workers at startup, so we don't
1863
- need to check before hand. SIGHUP users may suffer a small
1864
- performance decrease as a result, but there's not much we
1865
- can do about it.
1866
-
1867
- commit f8953ce747bd35b2008fc3daa040b89002a3133e
1868
- Author: Eric Wong <normalperson@yhbt.net>
1869
- Date: Wed Jun 15 00:47:25 2011 +0000
1870
-
1871
- http_server: factor out inherit_listeners! method
1872
-
1873
- This should be easier to understand and reduces garbage on
1874
- stack, too.
1875
-
1876
- commit 6aa423454d7c3926297426fc22d23c88531bd15a
1877
- Author: Eric Wong <normalperson@yhbt.net>
1878
- Date: Wed Jun 15 00:45:37 2011 +0000
1879
-
1880
- test_response: httpdate is low resolution
1881
-
1882
- It may return the previous second
1883
-
1884
- commit 63e421d82ac6d838f9b8b02d4a727bf6f783e7b6
1885
- Author: Eric Wong <normalperson@yhbt.net>
1886
- Date: Wed Jun 15 00:39:37 2011 +0000
1887
-
1888
- remove BasicSocket.do_not_reverse_lookup setting
1889
-
1890
- kgio never does reverse lookup
1891
-
1892
- commit 12024a6268d4e96fcf96df33fb7d82eaec9c16b1
1893
- Author: Eric Wong <normalperson@yhbt.net>
1894
- Date: Wed Jun 15 00:20:26 2011 +0000
1895
-
1896
- http: delay CoW string invalidations in filter_body
1897
-
1898
- Not all invocations of filter_body will trigger CoW on the
1899
- given destination string. We can also avoid an unnecessary
1900
- rb_str_set_len() in the non-chunked path, too.
1901
-
1902
- commit d91ca210615432bdad3ee70c08908ea7064c6b95
1903
- Author: Eric Wong <normalperson@yhbt.net>
1904
- Date: Wed Jun 15 00:15:42 2011 +0000
1905
-
1906
- http: remove tainting flag
1907
-
1908
- Needless line noise, kgio doesn't support tainting anyways.
1909
-
1910
- commit c719497c6db220a9f58c71970f2370cb2e6c99c3
1911
- Author: Eric Wong <normalperson@yhbt.net>
1912
- Date: Wed Jun 15 00:09:32 2011 +0000
1913
-
1914
- http_server: get rid of EINTR checks
1915
-
1916
- Ruby IO.select never raises that, actually
1917
-
1918
- commit 742c4d77f179a757dbcb1fa350f9d75b757acfc7
1919
- Author: Eric Wong <normalperson@yhbt.net>
1920
- Date: Wed Jun 15 00:08:03 2011 +0000
1921
-
1922
- test_http_parser: fix for URI too long errors
1923
-
1924
- The random garbage generator may occasionally generate URIs that
1925
- are too long and cause the URI-specific error to be raised
1926
- instead of the generic parser error we recently introduced.
1927
-
1928
- commit 20c0f28cf60f164c9788b694625bce22962464f3
1929
- Author: Eric Wong <normalperson@yhbt.net>
1930
- Date: Wed Jun 15 00:01:32 2011 +0000
1931
-
1932
- http_server: further reduce stack usage for app.call
1933
-
1934
- By avoid Array#each
1935
-
1936
- commit ddcea26976f24dda8a0cd65022065100bb40fbb7
1937
- Author: Eric Wong <normalperson@yhbt.net>
1938
- Date: Tue Jun 14 23:49:57 2011 +0000
1939
-
1940
- http_server: small cleanups for attr assignments
1941
-
1942
- ivar references using @ are slightly faster than calling
1943
- attribute methods.
1944
-
1945
- commit f1d8dd94122395cd7b072aeec8942f2cd6b8ca99
1946
- Author: Eric Wong <normalperson@yhbt.net>
1947
- Date: Tue Jun 14 23:25:43 2011 +0000
1948
-
1949
- http_server: do not rescue from proper exits
1950
-
1951
- Oops, it messes logging up badly.
1952
-
1953
- commit 2f3c135b15e6603e71bb9d6d054e5cd606c7b2b6
1954
- Author: Eric Wong <normalperson@yhbt.net>
1955
- Date: Tue Jun 14 00:51:01 2011 +0000
1956
-
1957
- http: fix documentation for dechunk!
1958
-
1959
- chunk_ready! was my original name for it, but I'm indecisive
1960
- when it comes to naming things.
1961
-
1962
- commit c297fde2000dcc8bdf7cb9f912fb2ea07be1c282
1963
- Author: Eric Wong <normalperson@yhbt.net>
1964
- Date: Mon Jun 13 23:42:54 2011 +0000
1965
-
1966
- http: dechunk! method to enter dechunk mode
1967
-
1968
- This allows one to enter the dechunker without parsing
1969
- HTTP headers beforehand. Since we skipped header parsing,
1970
- trailer parsing is not supported since we don't know
1971
- what trailers might be (to our knowledge, nobody uses trailers
1972
- anyways)
1973
-
1974
- commit 131c241840990753f7b75344092058ef7434ea8b
1975
- Author: Eric Wong <normalperson@yhbt.net>
1976
- Date: Mon Jun 13 22:35:18 2011 +0000
1977
-
1978
- http: document reasoning for memcpy in filter_body
1979
-
1980
- copy-on-write behavior doesn't help you if your common
1981
- use case triggers copies.
1982
-
1983
- commit 4aa8fd1322ccb46fc58a4f26ca111a03c1720c7d
1984
- Author: Eric Wong <normalperson@yhbt.net>
1985
- Date: Mon Jun 13 22:18:30 2011 +0000
1986
-
1987
- http: rename variables in filter_body implementation
1988
-
1989
- Makes things easier-to-understand since it's based on memcpy()
1990
-
1991
- commit b1d8d3de991ebc5b7d655f2e8a1294129021db8a
1992
- Author: Eric Wong <normalperson@yhbt.net>
1993
- Date: Mon Jun 13 22:17:14 2011 +0000
1994
-
1995
- change TCP defaults to favor low latency
1996
-
1997
- These TCP settings are a closer match to the behavior of
1998
- Unix domain sockets and what users expect for fast streaming
1999
- responses even if nginx can't provide them just now...
2000
-
2001
- commit c1cac62571b543ac8e9f7203f8c315bb75516a20
2002
- Author: Eric Wong <normalperson@yhbt.net>
2003
- Date: Mon Jun 13 21:44:24 2011 +0000
2004
-
2005
- gemspec: bump kgio dependency to ~> 2.4
2006
-
2007
- kgio 2.4.1 portability should be better than 2.3, so
2008
- less user confusion and push them towards 2.4
2009
-
2010
- commit 5d2284afdc2d4f4ff122394ae5fd78a32cb8c09e
2011
- Author: Eric Wong <normalperson@yhbt.net>
2012
- Date: Fri Jun 10 23:54:47 2011 +0000
2013
-
2014
- runtime stack size reductions
2015
-
2016
- This reduces the size of `caller` by 5 frames,
2017
- which should make backtraces easier-to-read, raising
2018
- exceptions less expensive, and reduce GC runtime.
2019
-
2020
- commit 987b9496171b090e62de488ddc7b9a175c4c8d33
2021
- Author: Eric Wong <normalperson@yhbt.net>
2022
- Date: Fri Jun 10 23:44:10 2011 +0000
2023
-
2024
- test/benchmark/stack.ru: app for measuring stack depth
2025
-
2026
- Stack depth affects Ruby GC performance, so lowering it
2027
- makes sense
2028
-
2029
- commit 1c033dfd66c713afb05911e5e220adb7fc4ddc17
2030
- Author: Eric Wong <normalperson@yhbt.net>
2031
- Date: Thu Jun 9 13:36:20 2011 -0700
2032
-
2033
- unicorn 3.7.0 - minor feature update
2034
-
2035
- * miscellaneous documentation improvements
2036
- * return 414 (instead of 400) for Request-URI Too Long
2037
- * strip leading and trailing linear whitespace in header values
2038
-
2039
- User-visible improvements meant for Rainbows! users:
2040
-
2041
- * add :ipv6only "listen" option (same as nginx)
2042
-
2043
- commit c3880bb0cc00821d1715a7dd94b0b76a03a7ace0
2044
- Author: Eric Wong <normalperson@yhbt.net>
2045
- Date: Tue Jun 7 13:54:18 2011 -0700
2046
-
2047
- configurator: add :ipv6only directive
2048
-
2049
- Enabling this flag for an IPv6 TCP listener allows users to
2050
- specify IPv6-only listeners regardless of the OS default.
2051
- This should be interest to Rainbows! users.
2052
-
2053
- commit 0dc56fd03ea478ae054e3d0398703f43e017723b
2054
- Author: Eric Wong <normalperson@yhbt.net>
2055
- Date: Tue Jun 7 09:56:30 2011 -0700
2056
-
2057
- build: ensure gem and tgz targets build manpages
2058
-
2059
- Original patch by Hongli Lai <hongli@phusion.nl>:
2060
-
2061
- > >From bfefc2cf0efb0913a42862886363b3140dcdbb2a Mon Sep 17 00:00:00 2001
2062
- > From: Hongli Lai (Phusion) <hongli@phusion.nl>
2063
- > Date: Mon, 6 Jun 2011 13:39:00 +0200
2064
- > Subject: [PATCH] Ensure that 'make gem' builds the documentation too.
2065
- >
2066
- > If autogenerated documentation files, like man pages, don't exist then
2067
- > 'make gem' will fail, complaining that some files are not found. By
2068
- > depending the 'gem' target on the 'doc' target we ensure that 'make gem'
2069
- > always works.
2070
- >
2071
- > Signed-off-by: Hongli Lai (Phusion) <hongli@phusion.nl>
2072
-
2073
- ref: http://mid.gmane.org/4DED0EE2.7040400@phusion.nl
2074
-
2075
- commit 6eefc641c84eaa86cb2be4a2b1983b15efcbfae1
2076
- Author: Eric Wong <normalperson@yhbt.net>
2077
- Date: Tue Jun 7 09:38:34 2011 -0700
2078
-
2079
- examples/nginx.conf: better wording for ipv6only comment
2080
-
2081
- Oops.
2082
-
2083
- commit 32b340b88915ec945ebdbfa11b7da242860a6f44
2084
- Author: Eric Wong <normalperson@yhbt.net>
2085
- Date: Mon Jun 6 19:15:36 2011 -0700
2086
-
2087
- examples/nginx.conf: add ipv6only comment
2088
-
2089
- IPv4-mapped-IPv6 addresses are fugly.
2090
-
2091
- commit f4b9c1cb92711a62ae047368d7694c5050d27f2c
2092
- Author: Eric Wong <normalperson@yhbt.net>
2093
- Date: Mon Jun 6 10:00:36 2011 -0700
2094
-
2095
- Documentation: remove --sanitize-html for pandoc
2096
-
2097
- pandoc 1.8 no longer has this.
2098
-
2099
- commit 8e8781aa7002079ad066c11d271b98fc29f225dd
2100
- Author: Hongli Lai (Phusion) <hongli@phusion.nl>
2101
- Date: Mon Jun 6 13:36:57 2011 +0200
2102
-
2103
- Document the method for building the Unicorn gem.
2104
-
2105
- Signed-off-by: Hongli Lai (Phusion) <hongli@phusion.nl>
2106
-
2107
- commit 6e550cabdafd2cb0fcd1617f8815a732e79af670
2108
- Author: Eric Wong <normalperson@yhbt.net>
2109
- Date: Mon May 23 23:59:53 2011 +0000
2110
-
2111
- isolate_for_tests: use rake 0.8.7
2112
-
2113
- Rails 3.0.0 can't use Rake 0.9.0 it seems.
2114
-
2115
- commit 3e8971f3998249c58c9958815e0f17a04256ef9f
2116
- Author: Eric Wong <normalperson@yhbt.net>
2117
- Date: Mon May 23 23:59:31 2011 +0000
2118
-
2119
- gemspec: use latest Isolate (3.1)
2120
-
2121
- It's required for RubyGems 1.8.x
2122
-
2123
- commit 67e1fa9f9535ad009d538b8189bb3bdec0e5f79c
2124
- Author: Eric Wong <normalperson@yhbt.net>
2125
- Date: Mon May 23 21:53:19 2011 +0000
2126
-
2127
- http: call rb_str_modify before rb_str_resize
2128
-
2129
- Ruby 1.9.3dev (trunk) requires it if the string size
2130
- is unchanged.
2131
-
2132
- commit 1b31c40997ff8b932a457275e9a2f219de1d32c8
2133
- Author: Eric Wong <normalperson@yhbt.net>
2134
- Date: Mon May 23 21:04:56 2011 +0000
2135
-
2136
- strip trailing and leading linear whitespace in headers
2137
-
2138
- RFC 2616, section 4.2:
2139
- > The field-content does not include any leading or trailing LWS:
2140
- > linear white space occurring before the first non-whitespace
2141
- > character of the field-value or after the last non-whitespace
2142
- > character of the field-value. Such leading or trailing LWS MAY be
2143
- > removed without changing the semantics of the field value. Any LWS
2144
- > that occurs between field-content MAY be replaced with a single SP
2145
- > before interpreting the field value or forwarding the message
2146
- > downstream.
2147
-
2148
- commit 947704e3f8e67b8262815838e87b331802c7ba67
2149
- Author: Eric Wong <normalperson@yhbt.net>
2150
- Date: Mon May 23 18:22:44 2011 +0000
2151
-
2152
- doc: add Links page to help folks find relevant info
2153
-
2154
- Older announcements on our mailing list could be harder
2155
- to find.
2156
-
2157
- commit 66be289901508d5a6ed092db81ec96815c42d21d
2158
- Author: Eric Wong <normalperson@yhbt.net>
2159
- Date: Mon May 23 18:21:50 2011 +0000
2160
-
2161
- GNUmakefile: locale-independent grep invocation
2162
-
2163
- Otherwise it could casefold and we don't want that.
2164
-
2165
- commit c20077db941cc969fb3721c7527d37a99367f220
2166
- Author: Eric Wong <normalperson@yhbt.net>
2167
- Date: Sun May 8 02:39:42 2011 +0000
2168
-
2169
- doc: PHILOSOPHY: formatting fixes
2170
-
2171
- No need to list things inside preformatted text
2172
-
2173
- commit 77a951c5da518dda471282635c98f3b572ca15db
2174
- Author: Eric Wong <normalperson@yhbt.net>
2175
- Date: Thu May 5 16:42:26 2011 -0700
2176
-
2177
- http_parser: add max_header_len accessor
2178
-
2179
- Rainbows! wants to be able to lower this eventually...
2180
-
2181
- commit 733cb68e444a6f324bb1ffda3839da98ef010c74
2182
- Author: Eric Wong <normalperson@yhbt.net>
2183
- Date: Thu May 5 16:40:42 2011 -0700
2184
-
2185
- t0002-parser-error: fix race conditions
2186
-
2187
- "wait" needs to be done in the outside shell because
2188
- the subshell could still be exiting when we grep.
2189
-
2190
- commit 39ffd5590e4b5d2114215854deec848f849e9e87
2191
- Author: Eric Wong <normalperson@yhbt.net>
2192
- Date: Wed May 4 17:59:48 2011 -0700
2193
-
2194
- doc: remove redundant "of" typo
2195
-
2196
- commit 1b0ee5826ef146a3e2647c40f3bc929d51d1b442
2197
- Author: Eric Wong <normalperson@yhbt.net>
2198
- Date: Wed May 4 17:04:51 2011 -0700
2199
-
2200
- http_parser: new add_parse method
2201
-
2202
- Combines the following sequence:
2203
-
2204
- http_parser.buf << socket.readpartial(0x4000)
2205
- http_parser.parse
2206
-
2207
- Into:
2208
-
2209
- http_parser.add_parse(socket.readpartial(0x4000))
2210
-
2211
- It was too damn redundant otherwise...
2212
-
2213
- commit f81aa02448b615c4d5fc4f6544c53289dae9d2ec
2214
- Author: Eric Wong <normalperson@yhbt.net>
2215
- Date: Wed May 4 16:41:36 2011 -0700
2216
-
2217
- return 414 for URI length violations
2218
-
2219
- There's an HTTP status code allocated for it in
2220
- <http://www.iana.org/assignments/http-status-codes>, so
2221
- return that instead of 400.
2222
-
2223
- commit 3a76dc40dda91a3804276fcc73260bb2a529c034
2224
- Author: Eric Wong <normalperson@yhbt.net>
2225
- Date: Sat Apr 30 11:09:32 2011 -0700
2226
-
2227
- Sandbox: update doc for latest Bundler versions
2228
-
2229
- Bundler 1.0.x is much improved :)
2230
-
2231
- commit f848f632a81cf8ebc977592cbf9a45d84a69f306
2232
- Author: Eric Wong <normalperson@yhbt.net>
2233
- Date: Sat Apr 30 06:34:52 2011 +0000
2234
-
2235
- unicorn 3.6.2 - fix Unicorn::OobGC module
2236
-
2237
- The optional Unicorn::OobGC module is reimplemented to fix
2238
- breakage that appeared in v3.3.1. There are also minor
2239
- documentation updates, but no code changes as of 3.6.1 for
2240
- non-OobGC users.
2241
-
2242
- There is also a v1.1.7 release to fix the same OobGC breakage
2243
- that appeared for 1.1.x users in the v1.1.6 release.
2244
-
2245
- commit 1588c299703754e52b9f36219c21e13204734e6c
2246
- Merge: fe47a17 0874125
2247
- Author: Eric Wong <normalperson@yhbt.net>
2248
- Date: Sat Apr 30 06:33:53 2011 +0000
2249
-
2250
- Merge commit 'v1.1.7'
2251
-
2252
- * commit 'v1.1.7':
2253
- unicorn 1.1.7 - major fixes to minor components
2254
- oob_gc: reimplement to fix breakage and add tests
2255
- exec_cgi: handle Status header in CGI response
2256
- unicorn 1.1.6 - one minor, esoteric bugfix
2257
- close client socket after closing response body
2258
-
2259
- commit fe47a179468799bbbb893b339cbb0d4fedf29c2a
2260
- Author: Eric Wong <normalperson@yhbt.net>
2261
- Date: Fri Apr 29 23:31:35 2011 -0700
2262
-
2263
- TUNING: more minor doc updates
2264
-
2265
- commit 0874125ce56d52cee0f634712e69d1387eadfae1
2266
- Author: Eric Wong <normalperson@yhbt.net>
2267
- Date: Sat Apr 30 04:56:28 2011 +0000
2268
-
2269
- unicorn 1.1.7 - major fixes to minor components
2270
-
2271
- No changes to the core code, so this release only affects users
2272
- of the Unicorn::OobGC and Unicorn::ExecCGI modules.
2273
- Unicorn::OobGC was totally broken by the fix in the v1.1.6
2274
- release and is now reimplemented. Unicorn::ExecCGI (which
2275
- hardly anybody uses) now returns proper HTTP status codes.
2276
-
2277
- commit fe0dd93cd9cb97b46f6cfb4b1e370e38717a93f0
2278
- Author: Eric Wong <normalperson@yhbt.net>
2279
- Date: Fri Apr 29 15:48:35 2011 -0700
2280
-
2281
- oob_gc: reimplement to fix breakage and add tests
2282
-
2283
- This was broken since v3.3.1[1] and v1.1.6[2] since nginx relies on
2284
- a closed socket (and not Content-Length/Transfer-Encoding) to
2285
- detect a response completion. We have to close the client
2286
- socket before invoking GC to ensure the client sees the response
2287
- in a timely manner.
2288
-
2289
- [1] - commit b72a86f66c722d56a6d77ed1d2779ace6ad103ed
2290
- [2] - commit b7a0074284d33352bb9e732c660b29162f34bf0e
2291
-
2292
- (cherry picked from commit faeb3223636c39ea8df4017dc9a9d39ac649b26d)
2293
-
2294
- Conflicts:
2295
-
2296
- examples/big_app_gc.rb
2297
- lib/unicorn/oob_gc.rb
2298
-
2299
- commit 02a116c0d94a60a64abf8ad2465132e8194dd62a
2300
- Author: Eric Wong <normalperson@yhbt.net>
2301
- Date: Fri Apr 29 16:01:35 2011 -0700
2302
-
2303
- TUNING: document worker_processes tuning
2304
-
2305
- It seems people are still confused about it...
2306
-
2307
- commit faeb3223636c39ea8df4017dc9a9d39ac649b26d
2308
- Author: Eric Wong <normalperson@yhbt.net>
2309
- Date: Fri Apr 29 15:48:35 2011 -0700
2310
-
2311
- oob_gc: reimplement to fix breakage and add tests
2312
-
2313
- This was broken since v3.3.1[1] since nginx relies on a closed
2314
- socket (and not Content-Length/Transfer-Encoding) to detect
2315
- a response completion. We have to close the client socket
2316
- before invoking GC to ensure the client sees the response
2317
- in a timely manner.
2318
-
2319
- [1] - commit b72a86f66c722d56a6d77ed1d2779ace6ad103ed
2320
-
2321
- commit ce4995a4daf1e4da7034dc87fd218a283c405410
2322
- Author: Eric Wong <normalperson@yhbt.net>
2323
- Date: Fri Apr 29 15:30:07 2011 -0700
2324
-
2325
- TUNING: original sentence was incomplete
2326
-
2327
- commit 843d30120139dc372aca6c1773ac7699b6ee6345
2328
- Author: Eric Wong <normalperson@yhbt.net>
2329
- Date: Fri Apr 29 12:21:38 2011 -0700
2330
-
2331
- examples/big_app_gc: fix comment
2332
-
2333
- Oops, comments should match the latest code
2334
-
2335
- commit d4f70c45029ab1c6aba4bc2d69283ae43e46d9ff
2336
- Author: Eric Wong <normalperson@yhbt.net>
2337
- Date: Fri Apr 29 12:18:59 2011 -0700
2338
-
2339
- examples/big_app_gc: update this example
2340
-
2341
- OobGC is actually broken with nginx these days since
2342
- we needed to preserve the env for body.close...
2343
-
2344
- commit eaf72275e36560e567efc9597d929e02dc2f577d
2345
- Author: Eric Wong <normalperson@yhbt.net>
2346
- Date: Wed Apr 27 13:49:14 2011 -0700
2347
-
2348
- configurator: attempt to clarify :tcp_nopush/:tcp_nodelay
2349
-
2350
- These options will probably be more important as interest in
2351
- streaming responses in Rails 3.1 develops.
2352
-
2353
- I consider the respective defaults for Unicorn (designed to run
2354
- behind nginx) and Rainbows! (designed to run standalone) to be
2355
- the best choices in their respective environments.
2356
-
2357
- commit 37c491dcc23d445521229dbe902f02833f2a0f4c
2358
- Author: Eric Wong <normalperson@yhbt.net>
2359
- Date: Wed Apr 27 13:13:24 2011 -0700
2360
-
2361
- examples/nginx.conf: clarify proxy_buffering for Rails 3.1
2362
-
2363
- I've tested with nginx 1.0.0 and confirmed "proxy_buffering off;"
2364
- can cause Unicorn to block on a slow client reading a
2365
- large response. While there's a potential (client-visible)
2366
- performance improvement with Rails 3.1 streaming responses, it
2367
- can also hurt the server with slow clients.
2368
-
2369
- Rainbows! with (ThreadSpawn or ThreadPool) is probably the best
2370
- way to do streaming responses efficiently from all angles (from
2371
- a server, client and programmer time perspective).
2372
-
2373
- commit 1b3befbadb99c83c24109f68b719276f0051c7fb
2374
- Author: Eric Wong <normalperson@yhbt.net>
2375
- Date: Tue Apr 26 16:04:19 2011 -0700
2376
-
2377
- unicorn 3.6.1 - fix OpenSSL PRNG workaround
2378
-
2379
- Our attempt in 3.6.0 to workaround a problem with the OpenSSL
2380
- PRNG actually made the problem worse. This release corrects the
2381
- workaround to properly reseed the OpenSSL PRNG after forking.
2382
-
2383
- commit 34f7dbd1b7e087bc8c86029496fd8daa7dc58441
2384
- Author: Eric Wong <normalperson@yhbt.net>
2385
- Date: Tue Apr 26 16:01:31 2011 -0700
2386
-
2387
- properly reseed OpenSSL::Random after forking
2388
-
2389
- Using the return value of Kernel#srand actually made the
2390
- problem worse. Using the value of Kernel#rand is required
2391
- to actually get a random value to seed the OpenSSL PRNG.
2392
-
2393
- Thanks to ghazel for the bug report!
2394
-
2395
- commit 2aabf90ca53b31edef6c2b63006c33374840c816
2396
- Author: Eric Wong <normalperson@yhbt.net>
2397
- Date: Thu Apr 21 06:16:27 2011 +0000
2398
-
2399
- unicorn 3.6.0 - small fixes, PRNG workarounds
2400
-
2401
- Mainly small fixes, improvements, and workarounds for fork() issues
2402
- with pseudo-random number generators shipped with Ruby (Kernel#rand,
2403
- OpenSSL::Random (used by SecureRandom and also by Rails).
2404
-
2405
- The PRNG issues are documented in depth here (and links to Ruby Redmine):
2406
-
2407
- http://bogomips.org/unicorn.git/commit?id=1107ede7
2408
- http://bogomips.org/unicorn.git/commit?id=b3241621
2409
-
2410
- If you're too lazy to upgrade, you can just do this in your after_fork
2411
- hooks:
2412
-
2413
- after_fork do |server,worker|
2414
- tmp = srand
2415
- OpenSSL::Random.seed(tmp.to_s) if defined?(OpenSSL::Random)
2416
- end
2417
-
2418
- There are also small log reopening (SIGUSR1) improvements:
2419
-
2420
- * relative paths may also be reopened, there's a small chance this
2421
- will break with a handful of setups, but unlikely. This should
2422
- make configuration easier especially since the "working_directory"
2423
- configurator directive exists. Brought up by Matthew Kocher:
2424
- http://thread.gmane.org/gmane.comp.lang.ruby.unicorn.general/900
2425
-
2426
- * workers will just die (and restart) if log reopening fails for
2427
- any reason (including user error). This is to workaround the issue
2428
- reported by Emmanuel Gomez:
2429
- http://thread.gmane.org/gmane.comp.lang.ruby.unicorn.general/906
2430
-
2431
- commit 4f7f3bbb973c8f2bb4b189592158a0682ea2a625
2432
- Author: Eric Wong <normalperson@yhbt.net>
2433
- Date: Thu Apr 21 06:23:21 2011 +0000
2434
-
2435
- http_server: fix Rainbows! compatibility
2436
-
2437
- Older Rainbows! redefines the ready_pipe= accessor method
2438
- to call internal after_fork hooks.
2439
-
2440
- commit c6c9cae960bd8cbfa2feb801ca7079f6626b436b
2441
- Author: Eric Wong <normalperson@yhbt.net>
2442
- Date: Wed Apr 20 16:02:51 2011 +0000
2443
-
2444
- KNOWN_ISSUES: document PRNG changes in 3.6.0
2445
-
2446
- commit 6411add3f1a5aae5f2e0dcd73cd842500d21e9fd
2447
- Author: Eric Wong <normalperson@yhbt.net>
2448
- Date: Mon Apr 18 15:53:08 2011 -0700
2449
-
2450
- documentation cleanup/reduction
2451
-
2452
- Don't clutter up our RDoc/website with things that users
2453
- of Unicorn don't need to see. This should make user-relevant
2454
- documentation easier to find, especially since Unicorn is
2455
- NOT intended to be an API.
2456
-
2457
- commit 1107ede716461049033d6a5b311e14c742c9363a
2458
- Author: Eric Wong <normalperson@yhbt.net>
2459
- Date: Mon Apr 18 15:34:29 2011 -0700
2460
-
2461
- reseed OpenSSL PRNG upon fork() of workers
2462
-
2463
- OpenSSL seeds its PRNG with the process ID, so if a process ID
2464
- is recycled, there's a chance of indepedent workers getting
2465
- repeated PRNG sequences over a long time period iff the same
2466
- PID is used.
2467
-
2468
- This only affects deployments that meet both of the following
2469
- conditions:
2470
-
2471
- 1) OpenSSL::Random.random_bytes is called before forking
2472
- 2) worker (but not master) processes are die unexpectedly
2473
-
2474
- The SecureRandom module in Ruby (and Rails) uses the OpenSSL
2475
- PRNG if available. SecureRandom is used by Rails and called
2476
- when the application is loaded, so most Rails apps with
2477
- frequently dying worker processes are affected.
2478
-
2479
- Of course dying worker processes are bad and entirely the
2480
- fault of bad application/library code, not the fault of
2481
- Unicorn.
2482
-
2483
- Thanks for Alexander Dymo for reporting this.
2484
-
2485
- ref: http://redmine.ruby-lang.org/issues/4579
2486
-
2487
- commit b32416211ef30e958ec38c8c99833161cd476dd4
2488
- Author: Eric Wong <normalperson@yhbt.net>
2489
- Date: Mon Apr 18 22:21:58 2011 +0000
2490
-
2491
- reinitialize PRNG for latest Ruby 1.8.7 releases
2492
-
2493
- The current versions of Ruby 1.8 do not reseed the PRNG after
2494
- forking, so we'll work around that by calling Kernel#srand.
2495
-
2496
- ref: http://redmine.ruby-lang.org/issues/show/4338
2497
-
2498
- commit 3c8f21a4257578e9cdc4781dd21a6a572e25ca54
2499
- Author: Eric Wong <normalperson@yhbt.net>
2500
- Date: Wed Apr 13 08:05:51 2011 +0000
2501
-
2502
- fix some 1.9.3dev warnings
2503
-
2504
- commit 1355d262288352c2ced67cefc2301cee79bec0dd
2505
- Author: Eric Wong <normalperson@yhbt.net>
2506
- Date: Wed Apr 13 07:55:11 2011 +0000
2507
-
2508
- configurator: fix broken local variable
2509
-
2510
- Oops, changing a method definition for RDoc means code
2511
- needs to be updated, too :x
2512
-
2513
- commit 30ece1c7cc66b2fc816b1361e498ca0d4a554a78
2514
- Author: Eric Wong <normalperson@yhbt.net>
2515
- Date: Wed Apr 13 07:43:05 2011 +0000
2516
-
2517
- GNUmakefile: s/Config/RbConfig/
2518
-
2519
- "Config" is deprecated and warns under 1.9.3dev
2520
-
2521
- commit cabbc6ce06487619431af102378aefa08d55f9f1
2522
- Author: Eric Wong <normalperson@yhbt.net>
2523
- Date: Wed Apr 13 07:34:31 2011 +0000
2524
-
2525
- http_server: workers die on log reopen failures
2526
-
2527
- They should then recover and inherit writable descriptors
2528
- from the master when it respawns.
2529
-
2530
- commit c1322a721d9039f54da97cf50de49f2affbfff37
2531
- Author: Eric Wong <normalperson@yhbt.net>
2532
- Date: Wed Apr 13 05:41:07 2011 +0000
2533
-
2534
- http_parser: remove RDoc
2535
-
2536
- It's not needed for users, so avoid confusing them.
2537
- Unicorn itself is not intended to be an API, it just
2538
- hosts Rack applications.
2539
-
2540
- commit 8c359f50ce8b20dc3d72fe655db9d93c4a8ee7d5
2541
- Author: Eric Wong <normalperson@yhbt.net>
2542
- Date: Wed Apr 13 01:43:31 2011 +0000
2543
-
2544
- configurator: miscellaneous RDoc improvements
2545
-
2546
- Mainly formatting and such, but some wording changes.
2547
-
2548
- commit 2d1a4fbe37ebb0f229edbaefd392bdd8b6865590
2549
- Author: Eric Wong <normalperson@yhbt.net>
2550
- Date: Wed Apr 13 01:11:29 2011 +0000
2551
-
2552
- worker: improve RDoc, point users to Configurator#user
2553
-
2554
- commit 46cc05089ea34b823454f790092f386f22d3adb1
2555
- Author: Eric Wong <normalperson@yhbt.net>
2556
- Date: Wed Apr 13 01:04:19 2011 +0000
2557
-
2558
- configurator: remove outdated user example in after_fork
2559
-
2560
- Configurator itself supports user at the top-level.
2561
-
2562
- commit c4d3cd7d7b32ed133e25e3740c8e7a3493592eec
2563
- Author: Emmanuel Gomez <emmanuel.gomez@gmail.com>
2564
- Date: Tue Apr 12 15:36:36 2011 -0700
2565
-
2566
- Document "user" directive in example unicorn conf
2567
-
2568
- commit 6647dcb3afa4c0b16c5fef5bfdf88292e6adf6ca
2569
- Author: Eric Wong <normalperson@yhbt.net>
2570
- Date: Fri Apr 1 16:09:03 2011 -0700
2571
-
2572
- util: allow relative paths to be rotated
2573
-
2574
- Users keep both pieces if it's broken :)
2575
-
2576
- commit ebcc5b45adfb1d04af98356d867e9221ecdc9b70
2577
- Author: Eric Wong <normalperson@yhbt.net>
2578
- Date: Fri Apr 1 15:48:30 2011 -0700
2579
-
2580
- bump dependencies for testing
2581
-
2582
- No need to use an ancient Rack now that we've dropped Rails
2583
- 2.3.x tests. We need to remember that Rack 1.1.0 doesn't
2584
- support input#size.
2585
-
2586
- commit e5bf7b7207d69daf1c3537797aeeab2642f19514
2587
- Author: Eric Wong <normalperson@yhbt.net>
2588
- Date: Fri Apr 1 15:44:22 2011 -0700
2589
-
2590
- drop Rails 2.3.x tests
2591
-
2592
- They were transitionary releases and the logic to deal with them
2593
- and Rack versioning was too much overhead.
2594
-
2595
- commit c1ebb313735a280582d87c1ba44619aa47e00b06
2596
- Author: Eric Wong <normalperson@yhbt.net>
2597
- Date: Tue Mar 29 09:47:26 2011 -0700
2598
-
2599
- add examples/logrotate.conf
2600
-
2601
- logrotate is the de facto tool for logrotation, so an
2602
- example config for highlighting important parts are in order.
2603
-
2604
- Since our USR1 signal handling is part of the crusade against
2605
- the slow and lossy "copytruncate" option, be sure to
2606
- emphasize that :)
2607
-
2608
- commit ede28dc59562c862ff4641ed42a0ef357880d0f5
2609
- Author: Eric Wong <normalperson@yhbt.net>
2610
- Date: Sun Mar 27 20:35:16 2011 -0700
2611
-
2612
- tmpio: do not redefine size method under 1.9.2+
2613
-
2614
- File#size is available in 1.9.2
2615
-
2616
- commit 9de69c47e0a261bc88ca40e03562b7324baaf0cf
2617
- Author: Eric Wong <normalperson@yhbt.net>
2618
- Date: Tue Mar 22 17:57:03 2011 -0700
2619
-
2620
- DESIGN: fix redundant wording
2621
-
2622
- "P" in HTTP is already "protocol"
2623
-
2624
- commit 5da78214be9518879ee96345d8184913853fe890
2625
- Author: Eric Wong <normalperson@yhbt.net>
2626
- Date: Tue Mar 22 17:48:30 2011 -0700
2627
-
2628
- README: s/Gemcutter/RubyGems.org/
2629
-
2630
- Gemcutter is the old name
2631
-
2632
- commit d1c9aa300c0cbda272f197b734b3e895959ae3e3
2633
- Author: Eric Wong <normalperson@yhbt.net>
2634
- Date: Tue Mar 15 12:19:30 2011 +0000
2635
-
2636
- unicorn 3.5.0 - very minor improvements
2637
-
2638
- A small set of small changes but it's been more than a month
2639
- since our last release. There are minor memory usage and
2640
- efficiently improvements (for graceful shutdowns). MRI 1.8.7
2641
- users on *BSD should be sure they're using the latest patchlevel
2642
- (or upgrade to 1.9.x) because we no longer workaround their
2643
- broken stdio (that's MRI's job :)
2644
-
2645
- commit e6b6782030d8593006b4b7cace866cf42dd38d51
2646
- Author: Eric Wong <normalperson@yhbt.net>
2647
- Date: Tue Mar 8 06:59:53 2011 +0000
2648
-
2649
- gemspec: update kgio dependency to 2.3.2
2650
-
2651
- People reinstalling would've pulled it in anyways, but
2652
- 2.3.2 is the latest and has no known issues.
2653
-
2654
- commit 1594937132a5d9b7f1dc24cc47e3a27679ac9950
2655
- Author: Eric Wong <normalperson@yhbt.net>
2656
- Date: Tue Mar 8 06:59:08 2011 +0000
2657
-
2658
- gemspec: no need for require_paths
2659
-
2660
- commit cc7e65a1aa1bacc9658a687140011e999be6e3e7
2661
- Author: Eric Wong <normalperson@yhbt.net>
2662
- Date: Fri Feb 25 17:54:24 2011 +0000
2663
-
2664
- tee_input: remove old *BSD stdio workaround
2665
-
2666
- Ruby 1.8.* users should get the latest Ruby 1.8.7 anyways since
2667
- they contain critical bugfixes. We don't keep workarounds
2668
- forever since the root problem is fixed/worked-around in
2669
- upstream and people have had more than a year to upgrade Ruby.
2670
-
2671
- commit 2b6dd7653211d3d6b4cb6a46eec11bbde8cab789
2672
- Author: Eric Wong <normalperson@yhbt.net>
2673
- Date: Fri Feb 18 17:02:08 2011 -0800
2674
-
2675
- clear listeners array on SIGQUIT
2676
-
2677
- We don't want to repeatedly reclose the same IOs
2678
- and keep raising exceptions this way.
2679
-
2680
- commit d3ebd339990b0586a5993232302235c26cdb33d9
2681
- Author: Eric Wong <normalperson@yhbt.net>
2682
- Date: Wed Feb 16 10:33:20 2011 -0800
2683
-
2684
- README: clarify the versions of "Ruby license"
2685
-
2686
- Ruby 1.9.3dev is now using the 2-clause BSD License, not the
2687
- GPLv2. Do not mislead people into thinking we will switch to
2688
- any BSD License, we won't.
2689
-
2690
- commit 4cfb64f10784498b9625bbbd3364231710bc7c36
2691
- Author: Eric Wong <normalperson@yhbt.net>
2692
- Date: Thu Feb 10 13:41:32 2011 -0800
2693
-
2694
- Revert "test_helper: simplify random port binding"
2695
-
2696
- This causes conflicts with ports clients may use in
2697
- the ephemeral range since those do not hold FS locks.
2698
-
2699
- This reverts commit e597e594ad88dc02d70f7d3521d0d3bdc23739bb.
2700
-
2701
- Conflicts:
2702
-
2703
- test/test_helper.rb
2704
-
2705
- commit 6dd90cb902f43b32b0db204484d5e3df79ec0d0c
2706
- Author: Eric Wong <normalperson@yhbt.net>
2707
- Date: Thu Feb 10 13:34:58 2011 -0800
2708
-
2709
- remove unnecessary &block usage
2710
-
2711
- They needlessly allocate Proc objects
2712
-
2713
- commit 1fd1234ca5ba3d84d2182c38b37322bd55f08882
2714
- Author: Eric Wong <normalperson@yhbt.net>
2715
- Date: Mon Feb 7 16:09:53 2011 -0800
2716
-
2717
- test_helper: avoid FD leakage/waste
2718
-
2719
- No need to unnecessarily leave file descriptor open.
2720
-
2721
- commit 6ffc294aac4735127ac9455266623aaa3603e9c1
2722
- Author: Eric Wong <normalperson@yhbt.net>
2723
- Date: Fri Feb 4 13:06:30 2011 -0800
2724
-
2725
- unicorn 3.4.0 - for people with very big LANs
2726
-
2727
- * IPv6 support in the HTTP hostname parser and configuration
2728
- language. Configurator syntax for "listen" addresses should
2729
- be the same as nginx. Even though we support IPv6, we will
2730
- never support non-LAN/localhost clients connecting to Unicorn.
2731
-
2732
- * TCP_NOPUSH/TCP_CORK is enabled by default to optimize
2733
- for bandwidth usage and avoid unnecessary wakeups in nginx.
2734
-
2735
- * Updated KNOWN_ISSUES document for bugs in recent Ruby 1.8.7
2736
- (RNG needs reset after fork) and nginx+sendfile()+FreeBSD 8.
2737
-
2738
- * examples/nginx.conf updated for modern stable versions of nginx.
2739
-
2740
- * "Status" in headers no longer ignored in the response,
2741
- Rack::Lint already enforces this so we don't duplicate
2742
- the work.
2743
-
2744
- * All tests pass under Ruby 1.9.3dev
2745
-
2746
- * various bugfixes in the (mostly unused) ExecCGI class that
2747
- powers http://bogomips.org/unicorn.git
2748
-
2749
- commit 3df8a197320b8a9e8a6413dcd04613db0558d90a
2750
- Author: Eric Wong <normalperson@yhbt.net>
2751
- Date: Fri Feb 4 13:04:39 2011 -0800
2752
-
2753
- bump dependency on kgio
2754
-
2755
- This is needed for IPv6 support, and 2.2.0 is nicer
2756
- all around for Rainbows! users. Updates wrongdoc
2757
- while we're at it, too.
2758
-
2759
- commit 1045faa0f9e94b13ee0281b7968b72d6f50dd5bf
2760
- Author: Eric Wong <normalperson@yhbt.net>
2761
- Date: Thu Feb 3 13:53:18 2011 -0800
2762
-
2763
- test/unit: fix tests under Ruby 1.9.3dev
2764
-
2765
- Ugh, one day I'll clean them up, one day...
2766
-
2767
- commit 9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd
2768
- Author: Eric Wong <normalperson@yhbt.net>
2769
- Date: Wed Feb 2 17:37:22 2011 -0800
2770
-
2771
- Fix Ruby 1.9.3dev warnings
2772
-
2773
- for i in `git ls-files '*.rb'`; do ruby -w -c $i; done
2774
-
2775
- commit e597e594ad88dc02d70f7d3521d0d3bdc23739bb
2776
- Author: Eric Wong <normalperson@yhbt.net>
2777
- Date: Wed Feb 2 16:54:07 2011 -0800
2778
-
2779
- test_helper: simplify random port binding
2780
-
2781
- Duh...
2782
-
2783
- commit 314680327b95c0dc5e11be45a6343ca2a18ee447
2784
- Author: Eric Wong <normalperson@yhbt.net>
2785
- Date: Wed Feb 2 16:27:30 2011 -0800
2786
-
2787
- socket_helper: cleanup leftover debugging statement
2788
-
2789
- Oops! Ugh, not my day...
2790
-
2791
- commit e0160a18ef5c4592d1ac5ff24ba8ae0fd703057c
2792
- Author: Eric Wong <normalperson@yhbt.net>
2793
- Date: Wed Feb 2 15:34:33 2011 -0800
2794
-
2795
- socket_helper: export tcp_name as a module_function
2796
-
2797
- Oops!
2798
-
2799
- commit 87fd86ef22b6b80fa75dd8e50f53a4e62e8339f7
2800
- Author: Eric Wong <normalperson@yhbt.net>
2801
- Date: Wed Feb 2 15:22:02 2011 -0800
2802
-
2803
- allow binding on IPv6 sockets with listen "[#{addr}]:#{port}"
2804
-
2805
- This is much like how nginx does it, except we always require a
2806
- port when explicitly binding to IPv6 using the "listen"
2807
- directive. This also adds support to listen with an
2808
- address-only, which can be useful to Rainbows! users.
2809
-
2810
- commit d140e7b1ff44b06bc54c2b790d06e9c7325503fe
2811
- Author: Eric Wong <normalperson@yhbt.net>
2812
- Date: Wed Feb 2 14:45:57 2011 -0800
2813
-
2814
- http: parser handles IPv6 bracketed IP hostnames
2815
-
2816
- Just in case we have people that don't use DNS, we can support
2817
- folks who enter ugly IPv6 addresses...
2818
-
2819
- IPv6 uses brackets around the address to avoid confusing
2820
- the colons used in the address with the colon used to denote
2821
- the TCP port number in URIs.
2822
-
2823
- commit 24f8ef5f385e38954a5582fb2e8cd9d12fbf7d20
2824
- Author: Eric Wong <normalperson@yhbt.net>
2825
- Date: Mon Jan 31 16:14:46 2011 -0800
2826
-
2827
- force socket options to defaults if unspecified
2828
-
2829
- This reduces surprise when people (correctly) believe
2830
- removing an option from the config file will return
2831
- things back to our internal defaults.
2832
-
2833
- commit c28e2610cfc70e89a0ffabe18356d148afe98bfc
2834
- Author: Eric Wong <normalperson@yhbt.net>
2835
- Date: Mon Jan 31 15:51:30 2011 -0800
2836
-
2837
- enable TCP_NOPUSH/TCP_CORK by default
2838
-
2839
- It's actually harmless since Unicorn only supports "fast"
2840
- applications that do not trickle, and we don't do keepalive so
2841
- we'll always flush-on-close. This should reduce wakeups on the
2842
- nginx proxy server if nginx is over TCP. Mongrel 1.x had
2843
- TCP_CORK enabled by default, too.
2844
-
2845
- commit e3420e0ae1f3c38f125010134d2cdeb22c6fa64e
2846
- Author: Eric Wong <normalperson@yhbt.net>
2847
- Date: Mon Jan 31 15:50:37 2011 -0800
2848
-
2849
- test_upload: check size in server
2850
-
2851
- The client may not get a proper response with TCP_CORK enabled
2852
-
2853
- commit f4caf6b6bdea902abaadd3c04b2af94f056c4ff1
2854
- Author: Eric Wong <normalperson@yhbt.net>
2855
- Date: Fri Jan 28 18:11:26 2011 +0000
2856
-
2857
- KNOWN_ISSUES: document broken RNG+fork in newer Ruby 1.8
2858
-
2859
- Reported by: ghazel@gmail.com
2860
-
2861
- ref: <AANLkTimTpPATTpkoD2EYA2eM1+5OzCN=WxnCygQmJdhn@mail.gmail.com>
2862
-
2863
- commit 09afcf2ce9fc89d77b6b282bbf00a78c73741a4b
2864
- Author: Eric Wong <normalperson@yhbt.net>
2865
- Date: Tue Jan 25 13:58:29 2011 -0800
2866
-
2867
- examples/nginx.conf: use try_files directive
2868
-
2869
- This feature is in nginx 0.7.x and 0.8.x and optimized
2870
- better than the "if" directive in nginx.conf
2871
-
2872
- ref: http://wiki.nginx.org/Pitfalls
2873
- ref: http://wiki.nginx.org/IfIsEvil
2874
-
2875
- commit 1ca83b055375ab7e72d383ffd0f36f70c07d9e92
2876
- Author: Eric Wong <normalperson@yhbt.net>
2877
- Date: Tue Jan 25 13:56:39 2011 -0800
2878
-
2879
- examples/nginx: avoid unnecessary listen directive
2880
-
2881
- There's no need to use listen unless you use non-default port or
2882
- can enable "deferred" or "httpready" (which you usually want).
2883
-
2884
- commit fb1f33aecc7102fb5c10e27c65b9b27cf249415f
2885
- Author: Eric Wong <normalperson@yhbt.net>
2886
- Date: Tue Jan 25 13:42:53 2011 -0800
2887
-
2888
- KNOWN_ISSUES: split old stuff into its own section
2889
-
2890
- Ruby 1.9.1, Sinatra 0.3.x, and Rails 2.3.2 are not in
2891
- common use anymore (at least we don't think).
2892
-
2893
- commit 8ac0ae45a04f5f121f323c182403ef6eb0d8aa18
2894
- Author: Eric Wong <normalperson@yhbt.net>
2895
- Date: Tue Jan 25 13:30:21 2011 -0800
2896
-
2897
- KNOWN_ISSUES: FreeBSD 8 and sendfile can be buggy
2898
-
2899
- Reported by Alexey Bondar.
2900
-
2901
- commit d770d09dfd9e5d7148379c58cdf9a020cbdc63b6
2902
- Author: Eric Wong <normalperson@yhbt.net>
2903
- Date: Fri Jan 21 12:28:39 2011 -0800
2904
-
2905
- git.bogomips.org => bogomips.org
2906
-
2907
- bogomips.org is slimming down and losing URL weight :)
2908
-
2909
- commit d385bc4f3ed7b783b7414f5d34299bd2bf242fe6
2910
- Author: Eric Wong <normalperson@yhbt.net>
2911
- Date: Fri Jan 21 04:01:01 2011 +0000
2912
-
2913
- exec_cgi: handle Status header in CGI response
2914
-
2915
- We no longer blindly return 200 if the CGI returned another error
2916
- code. We also don't want two Status headers in our output since we
2917
- no longer filter it out.
2918
- (cherry picked from commit 6cca8e61c66c1c2a8ebe260813fa83e44530a768)
2919
-
2920
- commit 6cca8e61c66c1c2a8ebe260813fa83e44530a768
2921
- Author: Eric Wong <normalperson@yhbt.net>
2922
- Date: Fri Jan 21 04:01:01 2011 +0000
2923
-
2924
- exec_cgi: handle Status header in CGI response
2925
-
2926
- We no longer blindly return 200 if the CGI returned another error
2927
- code. We also don't want two Status headers in our output since we
2928
- no longer filter it out.
2929
-
2930
- commit c4d77de381c40cf315e6f84791e3fb634bc10675
2931
- Author: Eric Wong <normalperson@yhbt.net>
2932
- Date: Fri Jan 21 04:01:02 2011 +0000
2933
-
2934
- exec_cgi: make output compatible with IO.copy_stream
2935
-
2936
- Rainbows! can then use this to bypass luserspace given
2937
- the correct offset is set before hand and the file
2938
- is unlinked.
2939
-
2940
- commit 4150a398a48b9bca96aa623380161229ac0f8622
2941
- Author: Eric Wong <normalperson@yhbt.net>
2942
- Date: Wed Jan 19 19:10:25 2011 -0800
2943
-
2944
- configurator: undocument trust_x_forwarded_for
2945
-
2946
- This may not be supported in the future...
2947
-
2948
- commit ec400a537a0947796e108f3593721289661b49dc
2949
- Author: Eric Wong <normalperson@yhbt.net>
2950
- Date: Fri Jan 7 10:14:46 2011 -0800
2951
-
2952
- http_response: do not skip Status header set by app
2953
-
2954
- Rack::Lint already stops apps from using it. If a developer
2955
- insists on it, then users who inspect their HTTP headers can
2956
- point and laugh at them for not using Rack::Lint!
2957
-
2958
- commit 5ebd22a9d28fc96c69c09b695d99c1f173ce5a67
2959
- Author: Eric Wong <normalperson@yhbt.net>
2960
- Date: Thu Jan 6 15:46:56 2011 -0800
2961
-
2962
- unicorn 3.3.1 - one minor, esoteric bugfix
2963
-
2964
- We now close the client socket after closing the response body.
2965
- This does not affect most applications that run under Unicorn,
2966
- in fact, it may not affect any.
2967
-
2968
- There is also a new v1.1.6 release for users who do not use
2969
- kgio.
2970
-
2971
- commit 3587edb6e88ebe5c24cdde090ba8dd98de493d63
2972
- Author: Eric Wong <normalperson@yhbt.net>
2973
- Date: Thu Jan 6 15:40:54 2011 -0800
2974
-
2975
- unicorn 1.1.6 - one minor, esoteric bugfix
2976
-
2977
- We now close the client socket after closing the response body.
2978
- This does not affect most applications that run under Unicorn,
2979
- in fact, it may not affect any.
2980
-
2981
- commit b7a0074284d33352bb9e732c660b29162f34bf0e
2982
- Author: Eric Wong <normalperson@yhbt.net>
2983
- Date: Wed Jan 5 23:05:05 2011 -0800
2984
-
2985
- close client socket after closing response body
2986
-
2987
- Response bodies may capture the block passed to each
2988
- and save it for body.close, so don't close the socket
2989
- before we have a chance to call body.close
2990
-
2991
- (cherry picked from commit b72a86f66c722d56a6d77ed1d2779ace6ad103ed)
2992
-
2993
- Conflicts:
2994
-
2995
- lib/unicorn/http_server.rb
2996
- test/unit/test_response.rb
2997
-
2998
- commit b72a86f66c722d56a6d77ed1d2779ace6ad103ed
2999
- Author: Eric Wong <normalperson@yhbt.net>
3000
- Date: Wed Jan 5 22:39:03 2011 -0800
3001
-
3002
- close client socket after closing response body
3003
-
3004
- Response bodies may capture the block passed to each
3005
- and save it for body.close, so don't close the socket
3006
- before we have a chance to call body.close
3007
-
3008
- commit 1b69686fd28347eb5c071a9b76e2939bca424f04
3009
- Author: Eric Wong <normalperson@yhbt.net>
3010
- Date: Wed Jan 5 15:26:17 2011 -0800
3011
-
3012
- unicorn 3.3.0 - minor optimizations
3013
-
3014
- Certain applications that already serve hundreds/thousands of requests a
3015
- second should experience performance improvements due to
3016
- Time.now.httpdate usage being removed and reimplemented in C.
3017
-
3018
- There are also minor internal changes and cleanups for Rainbows!
3019
-
3020
- commit 62c844e343978f233e4f2567fb344411c39e263c
3021
- Author: Eric Wong <normalperson@yhbt.net>
3022
- Date: Wed Jan 5 14:06:00 2011 -0800
3023
-
3024
- http_parser: add clear method, deprecate reset
3025
-
3026
- But allows small optimizations to be made to avoid
3027
- constant/instance variable lookups later :)
3028
-
3029
- commit bd397ee11b60243ef15c5558c4309e46e27e6192
3030
- Author: Eric Wong <normalperson@yhbt.net>
3031
- Date: Wed Jan 5 11:41:36 2011 -0800
3032
-
3033
- http_response: simplify the status == 100 comparison
3034
-
3035
- No need to preserve the response tuplet if we're just
3036
- going to unpack it eventually.
3037
-
3038
- commit 062227e00f7ec589c3906a8bcd22dd7194268266
3039
- Author: Eric Wong <normalperson@yhbt.net>
3040
- Date: Wed Jan 5 11:32:44 2011 -0800
3041
-
3042
- http_server: remove unnecessary 'nil'
3043
-
3044
- commit 3f5abce2b1c071f9aed4cdd0951331d7f037c4b1
3045
- Author: Eric Wong <normalperson@yhbt.net>
3046
- Date: Wed Jan 5 11:16:21 2011 -0800
3047
-
3048
- socket_helper: expose more defaults in DEFAULTS hash
3049
-
3050
- This will allow Rainbows! to set :tcp_nodelay=>true
3051
- and possibly other things in the future.
3052
-
3053
- commit d100025759450dd1cbeccd1a3e44c46921bba26b
3054
- Author: Eric Wong <normalperson@yhbt.net>
3055
- Date: Tue Jan 4 17:50:51 2011 -0800
3056
-
3057
- http_response: implement httpdate in C
3058
-
3059
- This can return a static string and be significantly
3060
- faster as it reduces object allocations and Ruby method
3061
- calls for the fastest websites that serve thousands of
3062
- requests a second.
3063
-
3064
- It assumes the Ruby runtime is single-threaded, but that
3065
- is the case of Ruby 1.8 and 1.9 and also what Unicorn
3066
- is all about. This change is safe for Rainbows! under 1.8
3067
- and 1.9.
3068
-
3069
- commit 6183611108c571dbed29dfe2854b9f06757fd27f
3070
- Author: Eric Wong <normalperson@yhbt.net>
3071
- Date: Thu Dec 30 02:32:41 2010 +0000
3072
-
3073
- http_response: do not account for $, being set
3074
-
3075
- It's a minor garbage reduction, but nobody uses "$,", and
3076
- if they did, they'd break things in the Ruby standard library
3077
- as well as Rack, so let anybody who uses "$," shoot themselves
3078
- in the foot.
3079
-
3080
- commit 3a2634f3f68f6b8ea1aa7b2bb5944884bbfa8017
3081
- Author: Eric Wong <normalperson@yhbt.net>
3082
- Date: Thu Dec 30 02:30:19 2010 +0000
3083
-
3084
- tests: test parser works with keepalive_requests=0
3085
-
3086
- We use this in Rainbows! to disable keepalive in certain
3087
- configurations.
3088
-
3089
- commit 2c57f59172c45a3ca52dbddfb3f12c1bc70cbfd6
3090
- Author: Eric Wong <normalperson@yhbt.net>
3091
- Date: Wed Dec 29 16:45:13 2010 +0000
3092
-
3093
- http: remove unnecessary dir_config statement
3094
-
3095
- We do not link against any external libraries
3096
-
3097
- commit 2eb2c74aeb0da1d3f6f575ff8e05715e8c5ed85e
3098
- Author: Eric Wong <normalperson@yhbt.net>
3099
- Date: Sun Dec 26 08:10:35 2010 +0000
3100
-
3101
- Rakefile: fix fm_update task
3102
-
3103
- Oops!
3104
-
3105
- commit 6f7a3958c1544c1034ecf8b1ccfdd9dabd171fd2
3106
- Author: Eric Wong <normalperson@yhbt.net>
3107
- Date: Sun Dec 26 08:03:23 2010 +0000
3108
-
3109
- unicorn 3.2.1 - parser improvements for Rainbows!
3110
-
3111
- There are numerous improvements in the HTTP parser for
3112
- Rainbows!, none of which affect Unicorn-only users.
3113
-
3114
- The kgio dependency is incremented to 2.1: this should avoid
3115
- ENOSYS errors for folks building binaries on newer Linux
3116
- kernels and then deploying to older ones.
3117
-
3118
- There are also minor documentation improvements, the website
3119
- is now JavaScript-free!
3120
-
3121
- (Ignore the 3.2.0 release, I fat-fingered some packaging things)
3122
-
3123
- commit dece59f577d04f3735ccbeb190d26ce2c371d5f9
3124
- Author: Eric Wong <normalperson@yhbt.net>
3125
- Date: Sun Dec 26 07:58:38 2010 +0000
3126
-
3127
- gemspec: fix gemspec build
3128
-
3129
- Oops
3130
-
3131
- commit 03a43d9dc23c21f1c1a1baa2f29eab1157f4a076
3132
- Author: Eric Wong <normalperson@yhbt.net>
3133
- Date: Sun Dec 26 07:44:54 2010 +0000
3134
-
3135
- unicorn 3.2.0 - parser improvements for Rainbows!
3136
-
3137
- There are numerous improvements in the HTTP parser for
3138
- Rainbows!, none of which affect Unicorn-only users.
3139
-
3140
- The kgio dependency is incremented to 2.1: this should avoid
3141
- ENOSYS errors for folks building binaries on newer Linux
3142
- kernels and then deploying to older ones.
3143
-
3144
- There are also minor documentation improvements, the website
3145
- is now JavaScript-free!
3146
-
3147
- commit 51f30bf454e82f33443fe4a7f2e0496103c5ec6f
3148
- Author: Eric Wong <normalperson@yhbt.net>
3149
- Date: Sun Dec 26 07:29:38 2010 +0000
3150
-
3151
- http_server: remove needless lambda
3152
-
3153
- We can just use a begin block at startup, this also makes life
3154
- easier on RDoc.
3155
-
3156
- commit 45f0220ab13ec67150b3226a83437356f141eefd
3157
- Author: Eric Wong <normalperson@yhbt.net>
3158
- Date: Sun Dec 26 07:21:34 2010 +0000
3159
-
3160
- http_response: remove TODO item
3161
-
3162
- An unconfigured Rainbows! (e.g. Rainbows! { use :Base }) already
3163
- does keepalive and supports only a single client per-process.
3164
-
3165
- commit 87b1cf4eef3d717d345d730f28ddaad319f2fb2f
3166
- Author: Eric Wong <normalperson@yhbt.net>
3167
- Date: Sun Dec 26 06:23:28 2010 +0000
3168
-
3169
- http: #keepalive? and #headers? work after #next?
3170
-
3171
- We need to preserve our internal flags and only clear them on
3172
- HttpParser#parse. This allows the async concurrency models in
3173
- Rainbows! to work properly.
3174
-
3175
- commit c348223a045abb295b8c9d7dbf189264bc3a17c3
3176
- Author: Eric Wong <normalperson@yhbt.net>
3177
- Date: Sun Dec 26 03:38:13 2010 +0000
3178
-
3179
- bump kgio dependency to ~> 2.1
3180
-
3181
- The kgio 2.x series will maintain API compatibility
3182
- until 3.x, so it's safe to use any 2.x release.
3183
-
3184
- commit f970d87f9c0a4479a59685920a96c4d2fb2315e1
3185
- Author: Eric Wong <normalperson@yhbt.net>
3186
- Date: Sat Dec 25 19:30:12 2010 +0000
3187
-
3188
- http: fix typo in xftrust unit test
3189
-
3190
- Oops
3191
-
3192
- commit f62ef19a4aa3d3e4ce1aa37a499907ff776a8964
3193
- Author: Eric Wong <normalperson@yhbt.net>
3194
- Date: Fri Dec 24 08:37:22 2010 +0000
3195
-
3196
- doc: use wrongdoc for documentation
3197
-
3198
- wrongdoc factors out a bunch of common code from this
3199
- project into its own and removes JavaScript from RDoc
3200
- to boot.
3201
-
3202
- commit 210e5cc3109af248d29f1d722076ff8ecd1fde2d
3203
- Author: Eric Wong <normalperson@yhbt.net>
3204
- Date: Thu Dec 23 18:10:00 2010 +0000
3205
-
3206
- TODO: remove item for TeeInput performance
3207
-
3208
- Disabling TeeInput is possible now, so the filesystem
3209
- is no longer a bottleneck :>
3210
-
3211
- commit 5ffaf7df44425766a60d632881a2debd83605b52
3212
- Author: Eric Wong <normalperson@yhbt.net>
3213
- Date: Tue Dec 21 04:45:30 2010 +0000
3214
-
3215
- rdoc: include tag subject in NEWS file
3216
-
3217
- It's more useful this way
3218
-
3219
- commit 3a67490b10ca38d7d3d30c6917d75ce0e093706b
3220
- Author: Eric Wong <normalperson@yhbt.net>
3221
- Date: Tue Dec 21 01:58:32 2010 +0000
3222
-
3223
- rdoc: enable webcvs feature for cgit links
3224
-
3225
- Hopefully this gets more people reading our source.
3226
-
3227
- commit ee29a14cb383839cf5dcef6fe442558f46a1615b
3228
- Author: Eric Wong <normalperson@yhbt.net>
3229
- Date: Tue Dec 21 01:30:35 2010 +0000
3230
-
3231
- configurator: RDoc cleanups and improvements
3232
-
3233
- This is the most important part of Unicorn documentation
3234
- for end users.
3235
-
3236
- commit 1f5bac15cd8e4393c6da98eb7bb4532133dc6259
3237
- Author: Eric Wong <normalperson@yhbt.net>
3238
- Date: Tue Dec 21 01:28:23 2010 +0000
3239
-
3240
- http: hook up "trust_x_forwarded" to configurator
3241
-
3242
- More config bloat, sadly this is necessary for Rainbows! :<
3243
-
3244
- commit bf64b9aa855cf3590a4d5b4eca853aef33ba90cc
3245
- Author: Eric Wong <normalperson@yhbt.net>
3246
- Date: Mon Dec 20 22:05:50 2010 +0000
3247
-
3248
- http: allow ignoring X-Forwarded-* for url_scheme
3249
-
3250
- Evil clients may be exposed to the Unicorn parser via
3251
- Rainbows!, so we'll allow people to turn off blindly
3252
- trusting certain X-Forwarded* headers for "rack.url_scheme"
3253
- and rely on middleware to handle it.
3254
-
3255
- commit 8be3668c11cf721960581e325b481c105e8f3c89
3256
- Author: Eric Wong <normalperson@yhbt.net>
3257
- Date: Mon Dec 20 20:49:21 2010 +0000
3258
-
3259
- http: refactor finalize_header function
3260
-
3261
- rack.url_scheme handling and SERVER_{NAME,PORT} handling
3262
- each deserve their own functions.
3263
-
3264
- commit b740269f121167c4f93e3a0e155e05422f6e80ff
3265
- Author: Eric Wong <normalperson@yhbt.net>
3266
- Date: Mon Dec 20 19:40:57 2010 +0000
3267
-
3268
- http: update setting of "https" for rack.url_scheme
3269
-
3270
- The first value of X-Forwarded-Proto in rack.url_scheme should
3271
- be used as it can be chained. This header can be set multiple
3272
- times via different proxies in the chain, but consider the first
3273
- one to be valid.
3274
-
3275
- Additionally, respect X-Forwarded-SSL as it may be passed with
3276
- the "on" flag instead of X-Forwarded-Proto.
3277
-
3278
- ref: rack commit 85ca454e6143a3081d90e4546ccad602a4c3ad2e
3279
- and 35bb5ba6746b5d346de9202c004cc926039650c7
3280
-
3281
- commit 7ad59e0c48e12febae2a2fe86b76116c05977c6f
3282
- Author: Eric Wong <normalperson@yhbt.net>
3283
- Date: Mon Dec 20 00:14:52 2010 +0000
3284
-
3285
- http: support keepalive_requests directive
3286
-
3287
- This limits the number of keepalive requests of a single
3288
- connection to prevent a single client from monopolizing server
3289
- resources. On multi-process servers (e.g. Rainbows!) with many
3290
- keepalive clients per worker process, this can force a client to
3291
- reconnect and increase its chances of being accepted on a
3292
- less-busy worker process.
3293
-
3294
- This directive is named after the nginx directive which
3295
- is identical in function.
3296
-
3297
- commit 82ea9b442a9edaae6dc3b06a5c61035b2c2924c9
3298
- Author: Eric Wong <normalperson@yhbt.net>
3299
- Date: Sun Dec 19 18:47:23 2010 +0000
3300
-
3301
- http: delay clearing env on HttpParser#next?
3302
-
3303
- This allows apps/middlewares on Rainbows! that rely on env in
3304
- the response_body#close to hold onto the env.
3305
-
3306
- commit 39f264173717287eda70910e7a24fbafd21a4a7e
3307
- Author: Eric Wong <normalperson@yhbt.net>
3308
- Date: Fri Dec 10 05:45:14 2010 +0800
3309
-
3310
- unicorn 3.1.0 - client_buffer_body_size tuning
3311
-
3312
- This release enables tuning the client_buffer_body_size to raise
3313
- or lower the threshold for buffering request bodies to disk.
3314
- This only applies to users who have not disabled rewindable
3315
- input. There is also a TeeInput bugfix for uncommon usage
3316
- patterns and Configurator examples in the FAQ should be fixed
3317
-
3318
- commit 71716672752e573ff15002aaefd6e8ba8c6b6cb6
3319
- Author: Eric Wong <normalperson@yhbt.net>
3320
- Date: Thu Dec 9 03:39:03 2010 +0000
3321
-
3322
- allow client_buffer_body_size to be tuned
3323
-
3324
- Since modern machines have more memory these days and
3325
- clients are sending more data, avoiding potentially slow
3326
- filesystem operations for larger uploads can be useful
3327
- for some applications.
3328
-
3329
- commit 9d80b009a3cb795530ad23263f4eb525880e79dc
3330
- Author: Eric Wong <normalperson@yhbt.net>
3331
- Date: Wed Dec 8 23:53:25 2010 +0000
3332
-
3333
- configurator: ensure examples in FAQ still work
3334
-
3335
- This has been broken since 2.0.x
3336
- Internal cleanups sometimes have unintended consequences :<
3337
-
3338
- commit 3b2fc62dadd3c90038c168849b33c4ca6df058da
3339
- Author: Eric Wong <normalperson@yhbt.net>
3340
- Date: Wed Dec 8 22:02:45 2010 +0000
3341
-
3342
- tee_input: fix accounting error on corked requests
3343
-
3344
- In case a request sends the header and buffer as one packet,
3345
- TeeInput relying on accounting info from StreamInput is harmful
3346
- as StreamInput will buffer in memory outside of TeeInput's
3347
- control.
3348
-
3349
- This bug is triggered by calling env["rack.input"].size or
3350
- env["rack.input"].rewind before to read.
3351
-
3352
- commit 52f55529293e466a77090691d1fe06a7933c74a1
3353
- Author: Eric Wong <normalperson@yhbt.net>
3354
- Date: Fri Dec 3 00:31:15 2010 +0000
3355
-
3356
- unicorn 3.0.1 - one bugfix for Rainbows!
3357
-
3358
- ...and only Rainbows! This release fixes HTTP pipelining for
3359
- requests with bodies for users of synchronous Rainbows!
3360
- concurrency models.
3361
-
3362
- Since Unicorn itself does not support keepalive nor pipelining,
3363
- Unicorn-only users need not upgrade.
3364
-
3365
- commit c32488dcc69181d2e10b82645ef87c8b8b88b8e1
3366
- Author: Eric Wong <normalperson@yhbt.net>
3367
- Date: Thu Dec 2 05:30:39 2010 +0000
3368
-
3369
- stream_input: avoid trailer parsing on unchunked requests
3370
-
3371
- It screws up keepalive for Rainbows! requests with a body.
3372
-
3373
- commit dee9e6432c8eb5269a19c4c6b66ab932fdeda34f
3374
- Author: Eric Wong <normalperson@yhbt.net>
3375
- Date: Sat Nov 20 10:14:19 2010 +0800
3376
-
3377
- unicorn 3.0.0 - disable rewindable input!
3378
-
3379
- Rewindable "rack.input" may be disabled via the
3380
- "rewindable_input false" directive in the configuration file.
3381
- This will violate Rack::Lint for Rack 1.x applications, but can
3382
- reduce I/O for applications that do not need a rewindable
3383
- input.
3384
-
3385
- This release updates us to the Kgio 2.x series which should play
3386
- more nicely with other libraries and applications. There are
3387
- also internal cleanups and improvements for future versions of
3388
- Rainbows!
3389
-
3390
- The Unicorn 3.x series supercedes the 2.x series
3391
- while the 1.x series will remain supported indefinitely.
3392
-
3393
- commit ad268cea66c2b91538dd60fc7f945348bb24214d
3394
- Author: Eric Wong <normalperson@yhbt.net>
3395
- Date: Sat Nov 20 08:07:12 2010 +0800
3396
-
3397
- tests: stream_input tests for mixed gets/read calls
3398
-
3399
- Some apps may do them, so make sure we do them correctly.
3400
-
3401
- commit cd315e5a20b17d29679fb22b4e2ab44cd6d0edeb
3402
- Author: Eric Wong <normalperson@yhbt.net>
3403
- Date: Sat Nov 20 07:45:57 2010 +0800
3404
-
3405
- stream_input: use String#sub! instead of gsub!
3406
-
3407
- There's no difference because of the \A anchor, but sub!
3408
- is doesn't loop so it's simpler.
3409
-
3410
- commit 5bc239fd154a7eaebeb024394f8e0b507bbf4c5a
3411
- Author: Eric Wong <normalperson@yhbt.net>
3412
- Date: Fri Nov 19 20:51:57 2010 +0000
3413
-
3414
- stream_input: small cleanups and fixes
3415
-
3416
- No need to accept any number of args, that could hide bugs in
3417
- applications that could give three or more arguments. We also
3418
- raise ArgumentError when given a negative length argument to
3419
- read.
3420
-
3421
- commit d12e10ea88c7adeb97094e4b835201e4c2ce52ab
3422
- Author: Eric Wong <normalperson@yhbt.net>
3423
- Date: Fri Nov 19 01:55:07 2010 +0000
3424
-
3425
- tests: isolate kgio 2.0.0 instead of the prerelease
3426
-
3427
- Same thing, but might as well make it more obvious.
3428
-
3429
- commit 507f228864574437e610e57d20d3b77c1e6d0e41
3430
- Author: Eric Wong <normalperson@yhbt.net>
3431
- Date: Fri Nov 19 08:04:14 2010 +0800
3432
-
3433
- unicorn 3.0.0pre2 - less bad than 2.x or 3.0.0pre1!
3434
-
3435
- This release updates us to the Kgio 2.x series which should play
3436
- more nicely with other applications. There are also bugfixes
3437
- from the 2.0.1 release and a small bugfix to the new StreamInput
3438
- class.
3439
-
3440
- The Unicorn 3.x series will supercede the 2.x series
3441
- while the 1.x series will remain supported indefinitely.
3442
-
3443
- commit 238c98ec4c353bb14671ab543c21baa068b7e3f2
3444
- Author: Eric Wong <normalperson@yhbt.net>
3445
- Date: Fri Nov 19 08:02:45 2010 +0800
3446
-
3447
- update to kgio 2.x series
3448
-
3449
- The Kgio 2.x API is less brain-damaged than the 1.3.x series
3450
- was, and should solve API-compatibility problems with
3451
- dalli 0.11.1.
3452
-
3453
- commit 86d2a22ffdc4bf9f16e1870f9db9a2ff84760c7c
3454
- Merge: eda4086 268c2ec
3455
- Author: Eric Wong <normalperson@yhbt.net>
3456
- Date: Thu Nov 18 07:48:12 2010 +0800
3457
-
3458
- Merge branch '2.0.x-stable'
3459
-
3460
- * 2.0.x-stable:
3461
- unicorn 2.0.1 - fix errors in error handling
3462
- tests: add parser error test from Rainbows!
3463
- http_server: fix HttpParserError constant resolution
3464
- t0012: fix race condition in reload
3465
-
3466
- commit 268c2ec5fef2630b0626b848be9d6ec46d360ddb
3467
- Author: Eric Wong <normalperson@yhbt.net>
3468
- Date: Thu Nov 18 07:42:40 2010 +0800
3469
-
3470
- unicorn 2.0.1 - fix errors in error handling
3471
-
3472
- This release fixes errors in our own error handling,
3473
- causing certain errors to not be logged nor responded
3474
- to correctly.
3475
-
3476
- Eric Wong (3):
3477
- t0012: fix race condition in reload
3478
- http_server: fix HttpParserError constant resolution
3479
- tests: add parser error test from Rainbows!
3480
-
3481
- commit 859593b418db7e5fd93295a7a8b15de56cc4f6dd
3482
- Author: Eric Wong <normalperson@yhbt.net>
3483
- Date: Thu Nov 18 07:44:47 2010 +0800
3484
-
3485
- tests: add parser error test from Rainbows!
3486
-
3487
- This will help ensure we trap our own errors properly
3488
- in the future.
3489
- (cherry picked from commit eda408603edc51f10f17217c767b31a45eb6c627)
3490
-
3491
- commit eda408603edc51f10f17217c767b31a45eb6c627
3492
- Author: Eric Wong <normalperson@yhbt.net>
3493
- Date: Thu Nov 18 07:44:47 2010 +0800
3494
-
3495
- tests: add parser error test from Rainbows!
3496
-
3497
- This will help ensure we trap our own errors properly
3498
- in the future.
3499
-
3500
- commit 3362dc51934c15fd944748e55ba4a470cc60d27d
3501
- Author: Eric Wong <normalperson@yhbt.net>
3502
- Date: Thu Nov 18 07:36:27 2010 +0800
3503
-
3504
- stream_input: read with zero length returns ''
3505
-
3506
- Any calls to read with an explicit zero length now returns an
3507
- empty string. While not explicitly specified by Rack::Lint,
3508
- this is for compatibility with StringIO and IO methods which
3509
- are common in other web servers.
3510
-
3511
- commit a6d96b61c2d81af077d55f43121c8472aa095447
3512
- Author: Eric Wong <normalperson@yhbt.net>
3513
- Date: Wed Nov 17 11:20:02 2010 -0800
3514
-
3515
- http_server: fix HttpParserError constant resolution
3516
-
3517
- "Unicorn" is no longer in the default constant resolution
3518
- namespace.
3519
- (cherry picked from commit 390e351dd1283d4c80a12b744b1327fff091a141)
3520
-
3521
- commit 390e351dd1283d4c80a12b744b1327fff091a141
3522
- Author: Eric Wong <normalperson@yhbt.net>
3523
- Date: Wed Nov 17 11:20:02 2010 -0800
3524
-
3525
- http_server: fix HttpParserError constant resolution
3526
-
3527
- "Unicorn" is no longer in the default constant resolution
3528
- namespace.
3529
-
3530
- commit 01ae51fa5fda40a63277b0d1189925fb209c75a9
3531
- Author: Eric Wong <normalperson@yhbt.net>
3532
- Date: Thu Nov 18 02:48:41 2010 +0800
3533
-
3534
- add missing test files
3535
-
3536
- oops :x
3537
-
3538
- commit 958c1f81a2c570f4027d8fe2dd4f5c40ac7ed430
3539
- Author: Eric Wong <normalperson@yhbt.net>
3540
- Date: Tue Nov 16 16:00:07 2010 -0800
3541
-
3542
- unicorn 3.0.0pre1
3543
-
3544
- Rewindable "rack.input" may be disabled via the
3545
- "rewindable_input false" directive in the configuration file.
3546
- This will violate Rack::Lint for Rack 1.x applications, but
3547
- can reduce I/O for applications that do not need it.
3548
-
3549
- There are also internal cleanups and enhancements for future
3550
- versions of Rainbows!
3551
-
3552
- Eric Wong (11):
3553
- t0012: fix race condition in reload
3554
- enable HTTP keepalive support for all methods
3555
- http_parser: add HttpParser#next? method
3556
- tee_input: switch to simpler API for parsing trailers
3557
- switch versions to 3.0.0pre
3558
- add stream_input class and build tee_input on it
3559
- configurator: enable "rewindable_input" directive
3560
- http_parser: ensure keepalive is disabled when reset
3561
- *_input: make life easier for subclasses/modules
3562
- tee_input: restore read position after #size
3563
- preread_input: no-op for non-rewindable "rack.input"
3564
-
3565
- commit 431de671a29b312bd19e615bd4bd99228b0c8b13
3566
- Author: Eric Wong <normalperson@yhbt.net>
3567
- Date: Tue Nov 16 13:51:24 2010 -0800
3568
-
3569
- preread_input: no-op for non-rewindable "rack.input"
3570
-
3571
- We may get "rack.input" objects that are not rewindable
3572
- in the future, so be prepared for those and do no harm.
3573
-
3574
- commit d41e5364bde413e195df8803845f7232718325a6
3575
- Author: Eric Wong <normalperson@yhbt.net>
3576
- Date: Thu Oct 28 09:03:21 2010 +0000
3577
-
3578
- t0012: fix race condition in reload
3579
-
3580
- We need to ensure the old worker is reaped before sending
3581
- new requests intended for the new worker.
3582
- (cherry picked from commit b45bf946545496cf8d69037113533d7a58ce7e20)
3583
-
3584
- commit 17a734a9f6ccea8c969a574f09b5d8dd3d568a9c
3585
- Author: Eric Wong <normalperson@yhbt.net>
3586
- Date: Sat Nov 13 16:41:10 2010 +0800
3587
-
3588
- tee_input: restore read position after #size
3589
-
3590
- It's possible for an application to call size after it has read
3591
- a few bytes/lines, so do not screw up a user's read offset when
3592
- consuming input.
3593
-
3594
- commit 855c02a9720a17854a2f1c715efbe502cdba54e2
3595
- Author: Eric Wong <normalperson@yhbt.net>
3596
- Date: Fri Nov 12 10:59:14 2010 +0800
3597
-
3598
- *_input: make life easier for subclasses/modules
3599
-
3600
- Avoid having specific knowledge of internals in TeeInput
3601
- and instead move that to StreamInput when dealing with
3602
- byte counts. This makes things easier for Rainbows! which
3603
- will need to extends these classes.
3604
-
3605
- commit 3b544fb2c0e4a1e14a7bcb752a8af9819b5aaeb2
3606
- Author: Eric Wong <normalperson@yhbt.net>
3607
- Date: Thu Nov 11 07:31:01 2010 +0800
3608
-
3609
- http_parser: ensure keepalive is disabled when reset
3610
-
3611
- We'll need this in Rainbows!
3612
-
3613
- commit a89ccf321224f3248ddd00bb0edb320311604e4e
3614
- Author: Eric Wong <normalperson@yhbt.net>
3615
- Date: Thu Nov 11 02:16:50 2010 +0800
3616
-
3617
- configurator: enable "rewindable_input" directive
3618
-
3619
- This allows users to override the current Rack spec and disable
3620
- the rewindable input requirement. This can allow applications
3621
- to use less I/O to minimize the performance impact when
3622
- processing uploads.
3623
-
3624
- commit 7d44b5384758aeddcb49d7606a9908308df7c698
3625
- Author: Eric Wong <normalperson@yhbt.net>
3626
- Date: Thu Nov 11 01:13:12 2010 +0800
3627
-
3628
- add stream_input class and build tee_input on it
3629
-
3630
- We will eventually expose a Unicorn::StreamInput object as
3631
- "rack.input" for Rack 2.x applications. StreamInput allows
3632
- applications to avoid buffering input to disk, removing the
3633
- (potentially expensive) rewindability requirement of Rack 1.x.
3634
-
3635
- TeeInput is also rewritten to build off StreamInput for
3636
- simplicity. The only regression is that TeeInput#rewind forces
3637
- us to consume an unconsumed stream before returning, a
3638
- negligible price to pay for decreased complexity.
3639
-
3640
- commit 1493af7cc23afecc8592ce44f5226476afccd212
3641
- Author: Eric Wong <normalperson@yhbt.net>
3642
- Date: Thu Nov 11 07:17:19 2010 +0800
3643
-
3644
- switch versions to 3.0.0pre
3645
-
3646
- Here are major, incompatible internal API changes.
3647
-
3648
- commit 8edcc3f9e1be9113685e61b9a83994a02d37c768
3649
- Author: Eric Wong <normalperson@yhbt.net>
3650
- Date: Sun Nov 7 10:21:43 2010 +0800
3651
-
3652
- tee_input: switch to simpler API for parsing trailers
3653
-
3654
- Not that anybody uses trailers extensively, but it's
3655
- good to know it's there.
3656
-
3657
- commit 60a9ec94f1f738f881e67f0a881c44c104f07c04
3658
- Author: Eric Wong <normalperson@yhbt.net>
3659
- Date: Sat Nov 6 10:30:44 2010 +0800
3660
-
3661
- http_parser: add HttpParser#next? method
3662
-
3663
- An easy combination of the existing HttpParser#keepalive? and
3664
- HttpParser#reset methods, this makes it easier to implement
3665
- persistence.
3666
-
3667
- commit 7987e1a4001491f8a494f3926037f8cbee713263
3668
- Author: Eric Wong <normalperson@yhbt.net>
3669
- Date: Fri Sep 3 01:48:24 2010 +0000
3670
-
3671
- enable HTTP keepalive support for all methods
3672
-
3673
- Yes, this means even POST/PUT bodies may be kept alive,
3674
- but only if the body (and trailers) are fully-consumed.
3675
-
3676
- commit b45bf946545496cf8d69037113533d7a58ce7e20
3677
- Author: Eric Wong <normalperson@yhbt.net>
3678
- Date: Thu Oct 28 09:03:21 2010 +0000
3679
-
3680
- t0012: fix race condition in reload
3681
-
3682
- We need to ensure the old worker is reaped before sending
3683
- new requests intended for the new worker.
3684
-
3685
- commit 5ffc1f81c3f56d17ff3369f7514e978754840c29
3686
- Author: Eric Wong <normalperson@yhbt.net>
3687
- Date: Wed Oct 27 23:32:24 2010 +0000
3688
-
3689
- unicorn 2.0.0 - mostly internal cleanups
3690
-
3691
- Despite the version number, this release mostly features
3692
- internal cleanups for future versions of Rainbows!. User
3693
- visible changes include reductions in CPU wakeups on idle sites
3694
- using high timeouts.
3695
-
3696
- Barring possible portability issues due to the introduction of
3697
- the kgio library, this release should be ready for all to use.
3698
- However, 1.1.x (and possibly 1.0.x) will continue to be
3699
- maintained. Unicorn 1.1.5 and 1.0.2 have also been released
3700
- with bugfixes found during development of 2.0.0.
3701
-
3702
- commit a3b08e9411f1d958e2264329c67972541424ac35
3703
- Merge: 0692e8c 7f3ebe9
3704
- Author: Eric Wong <normalperson@yhbt.net>
3705
- Date: Wed Oct 27 23:31:41 2010 +0000
3706
-
3707
- Merge branch '1.1.x-stable'
3708
-
3709
- * 1.1.x-stable:
3710
- unicorn 1.1.5
3711
- doc: stop using deprecated rdoc CLI options
3712
- gemspec: depend on Isolate 3.0.0 for dev
3713
- configurator: reloading with unset values restores default
3714
- configurator: use "__send__" instead of "send"
3715
- Rakefile: capture prerelease tags
3716
- Rakefile: don't post freshmeat on empty changelogs
3717
- fix delays in signal handling
3718
-
3719
- commit 0692e8cb10dd27275f2de794ed6eba62e9918431
3720
- Merge: 4d493d8 ea975cc
3721
- Author: Eric Wong <normalperson@yhbt.net>
3722
- Date: Wed Oct 27 23:31:38 2010 +0000
3723
-
3724
- Merge branch 'maint'
3725
-
3726
- * maint:
3727
- unicorn 1.0.2
3728
- doc: stop using deprecated rdoc CLI options
3729
- gemspec: depend on Isolate 3.0.0 for dev
3730
- configurator: reloading with unset values restores default
3731
- configurator: use "__send__" instead of "send"
3732
- Rakefile: capture prerelease tags
3733
- Rakefile: don't post freshmeat on empty changelogs
3734
- fix delays in signal handling
3735
- SIGTTIN works after SIGWINCH
3736
-
3737
- commit 4d493d8ad203d7f13ac56b7d6ba2b3aaa481cbd2
3738
- Author: Eric Wong <normalperson@yhbt.net>
3739
- Date: Wed Oct 27 16:26:28 2010 -0700
3740
-
3741
- examples/unicorn.conf: add a note about throttling signals
3742
-
3743
- Sending the same signal faster than the receiver can process
3744
- means signals can get lost.
3745
-
3746
- commit ea975cc3e6d2e6ac9c971c8cbda712486ec63c2a
3747
- Author: Eric Wong <normalperson@yhbt.net>
3748
- Date: Wed Oct 27 23:11:09 2010 +0000
3749
-
3750
- unicorn 1.0.2
3751
-
3752
- This is the latest maintenance release of the 1.0.x series.
3753
- All users are encouraged to upgrade to 1.1.x stable series
3754
- and report bugs there.
3755
-
3756
- Shortlog of changes since 1.0.1:
3757
-
3758
- Eric Wong (8):
3759
- SIGTTIN works after SIGWINCH
3760
- fix delays in signal handling
3761
- Rakefile: don't post freshmeat on empty changelogs
3762
- Rakefile: capture prerelease tags
3763
- configurator: use "__send__" instead of "send"
3764
- configurator: reloading with unset values restores default
3765
- gemspec: depend on Isolate 3.0.0 for dev
3766
- doc: stop using deprecated rdoc CLI options
3767
-
3768
- commit 856959cc0b2dbc96f115d26672d0f5b73ae79914
3769
- Author: Eric Wong <normalperson@yhbt.net>
3770
- Date: Wed Oct 27 23:07:42 2010 +0000
3771
-
3772
- doc: stop using deprecated rdoc CLI options
3773
-
3774
- -N and -a switches no longer exist in rdoc 2.5
3775
- (cherry picked from commit 054c7df93db61839648925cfd881ae880709a210)
3776
-
3777
- commit 04f0f44f9bd0907fcff1e2cdc59f7e84d4110539
3778
- Author: Eric Wong <normalperson@yhbt.net>
3779
- Date: Wed Oct 27 23:08:51 2010 +0000
3780
-
3781
- gemspec: depend on Isolate 3.0.0 for dev
3782
-
3783
- No reason to not use the latest and greatest!
3784
- (cherry picked from commit 570a57c07fd8c3d24b7337637e0dd30136b3a11a)
3785
-
3786
- Conflicts:
3787
-
3788
- unicorn.gemspec
3789
-
3790
- commit 054c7df93db61839648925cfd881ae880709a210
3791
- Author: Eric Wong <normalperson@yhbt.net>
3792
- Date: Wed Oct 27 23:07:42 2010 +0000
3793
-
3794
- doc: stop using deprecated rdoc CLI options
3795
-
3796
- -N and -a switches no longer exist in rdoc 2.5
3797
-
3798
- commit 570a57c07fd8c3d24b7337637e0dd30136b3a11a
3799
- Author: Eric Wong <normalperson@yhbt.net>
3800
- Date: Wed Oct 27 23:06:45 2010 +0000
3801
-
3802
- gemspec: depend on Isolate 3.0.0 for dev
3803
-
3804
- No reason to not use the latest and greatest!
3805
-
3806
- commit 2dd4a89d5726e13b962c1e287d84a6c30f5dd46c
3807
- Author: Eric Wong <normalperson@yhbt.net>
3808
- Date: Wed Oct 27 13:51:12 2010 -0700
3809
-
3810
- configurator: reloading with unset values restores default
3811
-
3812
- If a configuration directive is set at startup and later
3813
- unset, it correctly restores the original default value
3814
- as if it had never been set in the first place.
3815
-
3816
- This applies to the majority of the configuration values with
3817
- a few exceptions:
3818
-
3819
- * This only applies to stderr_path and stdout_path when
3820
- daemonized (the usual case, they'll be redirected to
3821
- "/dev/null"). When NOT daemonized, we cannot easily redirect
3822
- back to the original stdout/stderr destinations.
3823
-
3824
- * Unsetting working_directory does not restore the
3825
- original working directory where Unicorn was started.
3826
- As far as we can tell unsetting this after setting it is
3827
- rarely desirable and greatly increases the probability of
3828
- user error.
3829
- (cherry picked from commit 51b2b90284000aee8d79b37a5406173c45ae212d)
3830
-
3831
- commit 5e672c48d8a3555e4a01f653fb2e0b3556087737
3832
- Author: Eric Wong <normalperson@yhbt.net>
3833
- Date: Wed Oct 27 12:46:46 2010 -0700
3834
-
3835
- configurator: use "__send__" instead of "send"
3836
-
3837
- It's less ambiguous since this is a network server after all.
3838
- (cherry picked from commit f62c5850d7d17d7b5e301a494f8bdf5be3674411)
3839
-
3840
- commit 51b2b90284000aee8d79b37a5406173c45ae212d
3841
- Author: Eric Wong <normalperson@yhbt.net>
3842
- Date: Wed Oct 27 13:51:12 2010 -0700
3843
-
3844
- configurator: reloading with unset values restores default
3845
-
3846
- If a configuration directive is set at startup and later
3847
- unset, it correctly restores the original default value
3848
- as if it had never been set in the first place.
3849
-
3850
- This applies to the majority of the configuration values with
3851
- a few exceptions:
3852
-
3853
- * This only applies to stderr_path and stdout_path when
3854
- daemonized (the usual case, they'll be redirected to
3855
- "/dev/null"). When NOT daemonized, we cannot easily redirect
3856
- back to the original stdout/stderr destinations.
3857
-
3858
- * Unsetting working_directory does not restore the
3859
- original working directory where Unicorn was started.
3860
- As far as we can tell unsetting this after setting it is
3861
- rarely desirable and greatly increases the probability of
3862
- user error.
3863
-
3864
- commit f62c5850d7d17d7b5e301a494f8bdf5be3674411
3865
- Author: Eric Wong <normalperson@yhbt.net>
3866
- Date: Wed Oct 27 12:46:46 2010 -0700
3867
-
3868
- configurator: use "__send__" instead of "send"
3869
-
3870
- It's less ambiguous since this is a network server after all.
3871
-
3872
- commit 928a88d5419210380078a2e141cb64d308719295
3873
- Author: Eric Wong <normalperson@yhbt.net>
3874
- Date: Wed Oct 6 01:27:45 2010 +0000
3875
-
3876
- Rakefile: capture prerelease tags
3877
-
3878
- Since we do those, now.
3879
- (cherry picked from commit 1d1a2b1bd5bdd89f774f19bf8ad24c2f5f8a2d4c)
3880
-
3881
- commit 74dec350d93b88c0a5bd792239671097901e2393
3882
- Author: Eric Wong <normalperson@yhbt.net>
3883
- Date: Wed Oct 27 19:32:55 2010 +0000
3884
-
3885
- Rakefile: don't post freshmeat on empty changelogs
3886
-
3887
- We don't want to flood or monopolize freshmeat.
3888
- (cherry picked from commit 1ad510d645e0c84c8d352ac0deaeefa75240ea94)
3889
-
3890
- commit c7feb7e10a937df2dc72f53aa6cc1ebda4c1cd3b
3891
- Author: Eric Wong <normalperson@yhbt.net>
3892
- Date: Wed Oct 27 12:43:14 2010 -0700
3893
-
3894
- configurator: switch to normal class
3895
-
3896
- No point in using a Struct for (1.8) space-efficiency
3897
- if there's only one of them.
3898
-
3899
- commit 10037f2aabb3fab4296fc90c615e7caa9f4a9b53
3900
- Author: Eric Wong <normalperson@yhbt.net>
3901
- Date: Wed Oct 27 01:44:33 2010 +0000
3902
-
3903
- fix delays in signal handling
3904
-
3905
- There is no need to loop in the master_sleep method at all, as
3906
- the rest of the code is designed to function even on interrupted
3907
- sleeps.
3908
-
3909
- This change is included as part of a larger cleanup in master.
3910
- (commit bdc79712e5ac53d39c51e80dfe50aff950e5053f)
3911
-
3912
- commit 514af94321ef0fab74894e517792c4a9709d76f5
3913
- Author: Eric Wong <normalperson@yhbt.net>
3914
- Date: Wed Oct 27 00:36:25 2010 +0000
3915
-
3916
- reduce master process wakeups
3917
-
3918
- To reduce CPU wakeups and save power during off hours,
3919
- we can precalculate a safe amount to sleep before killing
3920
- off idle workers.
3921
-
3922
- commit 7ef05ec23b06f06e9d4bb1cf45d1907b4eeacb80
3923
- Author: Eric Wong <normalperson@yhbt.net>
3924
- Date: Tue Oct 26 23:19:09 2010 +0000
3925
-
3926
- master: remove limit on queued signals
3927
-
3928
- If a moronic sysadmin is sending too many signals, just let them
3929
- do it. It's likely something is terribly wrong when the server
3930
- is overloaded with signals, so don't try to protect users from
3931
- it. This will also help in case where TTOU signals are sent too
3932
- quickly during shutdown, although sleeping between kill(2)
3933
- syscalls is always a good idea because of how non-real-time
3934
- signals are delivered.
3935
-
3936
- commit 2243c97edf80d635871bc678794f07d6c1d033c2
3937
- Author: Eric Wong <normalperson@yhbt.net>
3938
- Date: Sat Oct 9 00:03:43 2010 +0000
3939
-
3940
- unicorn 2.0.0pre3 - more small fixes
3941
-
3942
- There is a new Unicorn::PrereadInput middleware to which allows
3943
- input bodies to be drained off the socket and buffered to disk
3944
- (or memory) before dispatching the application.
3945
-
3946
- HTTP Pipelining behavior is fixed for Rainbows! There
3947
- are some small Kgio fixes and updates for Rainbows!
3948
- users as well.
3949
-
3950
- commit 6eb46e422f4b2ba98c795fca5e18e7262c0c688e
3951
- Author: Eric Wong <normalperson@yhbt.net>
3952
- Date: Fri Oct 8 23:44:23 2010 +0000
3953
-
3954
- add PrereadInput middleware to get around TeeInput
3955
-
3956
- This may be useful for some apps that wish to drain the body
3957
- before acquiring an app-wide lock. Maybe it's more useful
3958
- with Rainbows!...
3959
-
3960
- commit 9be78606355d4a0ad4ea59316ab2ce998c5b9a12
3961
- Author: Eric Wong <normalperson@yhbt.net>
3962
- Date: Fri Oct 8 22:58:59 2010 +0000
3963
-
3964
- bump kgio dependency
3965
-
3966
- kgio 1.3.1 fixes some cases for zero-length reads.
3967
-
3968
- commit f20274e84169e18a73a5cd341b6bc31b625b83ce
3969
- Author: Eric Wong <normalperson@yhbt.net>
3970
- Date: Fri Oct 8 08:49:22 2010 +0000
3971
-
3972
- build: automatically call isolate on updates
3973
-
3974
- Automation is nice, the makefile needs some cleanup
3975
-
3976
- commit 861481436b933bf4b8d647c43191c701651f16e4
3977
- Author: Eric Wong <normalperson@yhbt.net>
3978
- Date: Fri Oct 8 01:34:37 2010 -0700
3979
-
3980
- bump kgio dependency to 1.3.0
3981
-
3982
- There was a backwards-incompatible API change,
3983
- but that didn't even affect us.
3984
-
3985
- commit c9950692f44bd91af089794664dc56a446668004
3986
- Author: Eric Wong <normalperson@yhbt.net>
3987
- Date: Thu Oct 7 18:42:15 2010 -0700
3988
-
3989
- gemspec: bump kgio version
3990
-
3991
- kgio 1.2.1 works around a bug for some *BSDs, some of which are
3992
- popular platforms for developers.
3993
-
3994
- commit e99178ef89eca9e46b73484aaf9733259dac9dca
3995
- Author: Eric Wong <normalperson@yhbt.net>
3996
- Date: Thu Oct 7 08:12:36 2010 +0000
3997
-
3998
- http: fix behavior with pipelined requests
3999
-
4000
- We cannot clear the buffer between requests because
4001
- clients may send multiple requests that get taken in
4002
- one read()/recv() call.
4003
-
4004
- commit eb5ba488422020568e5ccf650891d7fccce7238f
4005
- Author: Eric Wong <normalperson@yhbt.net>
4006
- Date: Thu Oct 7 07:22:58 2010 +0000
4007
-
4008
- unicorn 2.0.0pre2 - releases are cheap
4009
-
4010
- Internal changes/cleanups for Rainbows!
4011
-
4012
- commit 4c48b520786807487f7f76d709b0dbcee63c4d0c
4013
- Author: Eric Wong <normalperson@yhbt.net>
4014
- Date: Thu Oct 7 06:59:05 2010 +0000
4015
-
4016
- http: remove unnecessary rb_str_update() calls
4017
-
4018
- Rubinius no longer uses it, and it conflicts with a public
4019
- method in MRI.
4020
-
4021
- commit 8daf254356241c135ad2c843de567910528a10a7
4022
- Author: Eric Wong <normalperson@yhbt.net>
4023
- Date: Thu Oct 7 06:55:22 2010 +0000
4024
-
4025
- start using more compact parser API
4026
-
4027
- This should be easier for Rainbows! to use
4028
-
4029
- commit 090f56bb79a8ec734719d9be90daa3cd01d29871
4030
- Author: Eric Wong <normalperson@yhbt.net>
4031
- Date: Thu Oct 7 06:33:03 2010 +0000
4032
-
4033
- http_server: avoid method redefinition warnings
4034
-
4035
- We clobber the accessor methods.
4036
-
4037
- commit 5df8f15c32420c03b2e763a649e6d829ede52113
4038
- Author: Eric Wong <normalperson@yhbt.net>
4039
- Date: Thu Oct 7 05:32:38 2010 +0000
4040
-
4041
- http: allow this to be used as a request object
4042
-
4043
- The parser and request object become one and the
4044
- same, since the parser lives for the lifetime
4045
- of the request.
4046
-
4047
- commit 629107d749748f661ddb73f146ab35836874cc9e
4048
- Author: Eric Wong <normalperson@yhbt.net>
4049
- Date: Wed Oct 6 17:16:49 2010 -0700
4050
-
4051
- bin/unicorn: show "RACK_ENV" in --help
4052
-
4053
- It's more descriptive as to what environment we're setting
4054
- than "ENVIRONMENT".
4055
-
4056
- commit 1d1a2b1bd5bdd89f774f19bf8ad24c2f5f8a2d4c
4057
- Author: Eric Wong <normalperson@yhbt.net>
4058
- Date: Wed Oct 6 01:27:45 2010 +0000
4059
-
4060
- Raiefile: capture prerelease tags
4061
-
4062
- Since we do those, now.
4063
-
4064
- commit cb48b1bc7231db7f53bec6e88e696dc53153750d
4065
- Author: Eric Wong <normalperson@yhbt.net>
4066
- Date: Wed Oct 6 01:08:36 2010 +0000
4067
-
4068
- unicorn 2.0.0pre1 - a boring "major" release
4069
-
4070
- Mostly internal cleanups for future versions of Rainbows! and
4071
- people trying out Rubinius. There are tiny performance
4072
- improvements for Ruby 1.9.2 users which may only be noticeable
4073
- with Rainbows!
4074
-
4075
- Unicorn 1.1.x users are NOT required to upgrade.
4076
-
4077
- commit 4c59a4861bf3f8d25335696c1f8cbce3cd5db902
4078
- Author: Eric Wong <normalperson@yhbt.net>
4079
- Date: Wed Oct 6 01:07:49 2010 +0000
4080
-
4081
- gemspec: depend on newer isolate
4082
-
4083
- We use the latest and greatest whenever possible.
4084
-
4085
- commit cb233696be73873f6f8c367f4b977ade1815b265
4086
- Author: Eric Wong <normalperson@yhbt.net>
4087
- Date: Tue Oct 5 23:59:45 2010 +0000
4088
-
4089
- various cleanups and reduce indentation
4090
-
4091
- This also affects some constant scoping rules, but hopefully
4092
- makes things easier to follow. Accessing ivars (not via
4093
- accessor methods) are also slightly faster, so use them in
4094
- the criticial process_client code path.
4095
-
4096
- commit d4c898a4adc6cb6c3a20a648ae6b9b6a226066a6
4097
- Author: Eric Wong <normalperson@yhbt.net>
4098
- Date: Tue Oct 5 23:34:39 2010 +0000
4099
-
4100
- upgrade to kgio 1.2.0
4101
-
4102
- This provides the kgio_read! method which is like readpartial,
4103
- only significantly cheaper when a client disconnects on us.
4104
-
4105
- commit 80f9987581014d694b8eb67bba0d5c408b7d0f98
4106
- Author: Eric Wong <normalperson@yhbt.net>
4107
- Date: Tue Oct 5 23:34:19 2010 +0000
4108
-
4109
- GNUmakefile: fix isolate invocation
4110
-
4111
- again :x
4112
-
4113
- commit fd6b47cf1690cb45f2144cd92e0fe1f301c7c37b
4114
- Author: Eric Wong <normalperson@yhbt.net>
4115
- Date: Tue Oct 5 22:09:20 2010 +0000
4116
-
4117
- tee_input: use kgio to avoid stack traces on EOF
4118
-
4119
- TeeInput methods may be invoked deep in the stack, so
4120
- avoid giving them more work to do if a client disconnects
4121
- due to a bad upload.
4122
-
4123
- commit 350e8fa3a94838bcc936782315b3472615fe6517
4124
- Author: Eric Wong <normalperson@yhbt.net>
4125
- Date: Tue Oct 5 22:01:19 2010 +0000
4126
-
4127
- http: raise empty backtrace for HttpParserError
4128
-
4129
- It's expensive to generate a backtrace and this exception
4130
- is only triggered by bad clients. So make it harder for
4131
- them to DoS us by sending bad requests.
4132
-
4133
- commit c2975b85b9378797631d3ab133cac371f9fadf54
4134
- Author: Eric Wong <normalperson@yhbt.net>
4135
- Date: Tue Oct 5 21:38:47 2010 +0000
4136
-
4137
- tests: do not invoke isolate in test install dest
4138
-
4139
- We don't want to waste time and bandwidth.
4140
-
4141
- commit ec1315c9e9175d755dfd7b4acb8398fa7c7a924e
4142
- Author: Eric Wong <normalperson@yhbt.net>
4143
- Date: Tue Oct 5 21:29:51 2010 +0000
4144
-
4145
- test_tee_input: use a socketpair()
4146
-
4147
- It's a much closer representation of what we'd expect in
4148
- the real server than a mono-directional UNIX pipe.
4149
-
4150
- commit c639eef6b9c8d793c7f72fa5ac03adb5cf4d1e14
4151
- Author: Eric Wong <normalperson@yhbt.net>
4152
- Date: Tue Oct 5 19:22:09 2010 +0000
4153
-
4154
- test_signals: enable test under Rubinius
4155
-
4156
- The bugs from signal handling were fixed in the Rubinius
4157
- 1.1.0 release.
4158
-
4159
- commit 72dee9e4a8234af762b058a38132268d202c17bf
4160
- Author: Eric Wong <normalperson@yhbt.net>
4161
- Date: Tue Oct 5 19:20:39 2010 +0000
4162
-
4163
- tmpio: use super instead of an explicit method
4164
-
4165
- This is for compatibility with Ruby implementations such as
4166
- Rubinius that use "IO.new" internally inside "IO.open"
4167
-
4168
- commit 7ca92025ececb4b71ec4420e03d5725f13c39cc4
4169
- Author: Eric Wong <normalperson@yhbt.net>
4170
- Date: Tue Oct 5 18:48:53 2010 +0000
4171
-
4172
- update comment about non-blocking accept()
4173
-
4174
- Thanks to kgio, we no longer use accept_nonblock.
4175
-
4176
- commit fc820598da30509269ec84eeca598085ca296e38
4177
- Author: Eric Wong <normalperson@yhbt.net>
4178
- Date: Tue Oct 5 08:00:34 2010 +0000
4179
-
4180
- util: uindent use less ambiguous constant scoping
4181
-
4182
- This hopefully makes things easier to read and follow.
4183
-
4184
- commit 3d147e9bcd8f99c94900a00181692c2a09c3c3c9
4185
- Author: Eric Wong <normalperson@yhbt.net>
4186
- Date: Tue Oct 5 07:54:13 2010 +0000
4187
-
4188
- Unicorn::Util.tmpio => Unicorn::TmpIO.new
4189
-
4190
- This is slightly shorter and hopefully easier to find.
4191
-
4192
- commit e184b9d0fb45b31d80645475e22f0bbbecd195f9
4193
- Author: Eric Wong <normalperson@yhbt.net>
4194
- Date: Tue Oct 5 01:27:00 2010 +0000
4195
-
4196
- doc: update TODO
4197
-
4198
- This gives us some things to think about.
4199
-
4200
- commit 29946368c45dce5da116adb426362ee93c507c4e
4201
- Author: Eric Wong <normalperson@yhbt.net>
4202
- Date: Tue Oct 5 00:13:02 2010 +0000
4203
-
4204
- start using kgio, the kinder, gentler I/O library
4205
-
4206
- This should hopefully make the non-blocking accept()
4207
- situation more tolerable under Ruby 1.9.2.
4208
-
4209
- commit 9ef6b6f551a34922cfd831e2521495e89afe2f94
4210
- Author: Eric Wong <normalperson@yhbt.net>
4211
- Date: Mon Oct 4 23:55:31 2010 +0000
4212
-
4213
- split out isolate usage/logic
4214
-
4215
- We'll be using more of Isolate in development.
4216
-
4217
- commit 018a9deff4bd9273e053f369d746256e5b3ac99b
4218
- Author: Eric Wong <normalperson@yhbt.net>
4219
- Date: Mon Oct 4 21:06:41 2010 +0000
4220
-
4221
- http_request: reformat and small reorg
4222
-
4223
- This hides more HTTP request logic inside our object.
4224
-
4225
- commit dfc5f5a5e4aec4578b79de68c91906da75472a5a
4226
- Author: Eric Wong <normalperson@yhbt.net>
4227
- Date: Wed Sep 29 23:57:57 2010 -0700
4228
-
4229
- tee_input: update interface to use HttpRequest
4230
-
4231
- This should ensure we have less typing to do.
4232
-
4233
- commit fe94d80cb37ee441762ad2a8f5c25092f8eb57a8
4234
- Author: Eric Wong <normalperson@yhbt.net>
4235
- Date: Mon Sep 27 22:39:02 2010 -0700
4236
-
4237
- http_request: avoid globals
4238
-
4239
- Rainbows! will be able to reuse this.
4240
-
4241
- commit 5b6a97ff54d029d433b79eee1549e6f99464c48b
4242
- Author: Eric Wong <normalperson@yhbt.net>
4243
- Date: Fri Aug 27 21:45:33 2010 +0000
4244
-
4245
- split out worker to a separate file
4246
-
4247
- This hopefully makes things easier to read, follow, and find
4248
- since it's mostly documentation...
4249
-
4250
- commit 50c11036dd4898ccfed8b3e0552e88c67b6c63a9
4251
- Author: Eric Wong <normalperson@yhbt.net>
4252
- Date: Fri Aug 27 20:29:55 2010 +0000
4253
-
4254
- http_response: avoid singleton method
4255
-
4256
- There's no need for a response class or object since Rack just
4257
- uses an array as the response. So use a procedural style which
4258
- allows for easier understanding.
4259
-
4260
- We shall also support keepalive/pipelining in the future, too.
4261
-
4262
- commit 7a3efe8a03f85c1f2957130986c24ef7931ff44a
4263
- Merge: 1a2363b 6151686
4264
- Author: Eric Wong <normalperson@yhbt.net>
4265
- Date: Mon Oct 4 20:34:29 2010 +0000
4266
-
4267
- Merge commit 'v1.1.4'
4268
-
4269
- * commit 'v1.1.4':
4270
- unicorn 1.1.4 - small bug fix and doc updates
4271
- update Rails 3 tests to use Rails 3 final
4272
- avoid unlinking actively listening sockets
4273
- doc: update HACKING for documentation contributions
4274
- doc: update Sandbox document for Bundler
4275
- TUNING: more on socket buffer sizes
4276
-
4277
- commit 1a2363b17b1d06be6b35d347ebcaed6a0c940200
4278
- Author: Eric Wong <normalperson@yhbt.net>
4279
- Date: Mon Oct 4 04:17:31 2010 +0000
4280
-
4281
- avoid unlinking actively listening sockets
4282
-
4283
- While we've always unlinked dead sockets from nuked/leftover
4284
- processes, blindly unlinking them can cause unnecessary failures
4285
- when an active process is already listening on them. We now
4286
- make a simple connect(2) check to ensure the socket is not in
4287
- use before unlinking it.
4288
-
4289
- Thanks to Jordan Ritter for the detailed bug report leading to
4290
- this fix.
4291
-
4292
- ref: http://mid.gmane.org/8D95A44B-A098-43BE-B532-7D74BD957F31@darkridge.com
4293
-
4294
- commit 505a9e72d320fe3ae521ceb0f381c1c0f5ae4389
4295
- Author: Eric Wong <normalperson@yhbt.net>
4296
- Date: Wed Sep 15 14:57:27 2010 -0700
4297
-
4298
- doc: update HACKING for documentation contributions
4299
-
4300
- We switched to RDoc 2.5.x long ago and this should clarify
4301
- some documentation preferences I have.
4302
-
4303
- commit 1a75966a5d1a1f6307ed3386e2f91a28bbb72ca0
4304
- Author: Eric Wong <normalperson@yhbt.net>
4305
- Date: Wed Sep 15 14:42:54 2010 -0700
4306
-
4307
- doc: update Sandbox document for Bundler
4308
-
4309
- Thanks to Lawrence Pit, Jamie Wilkinson, and Eirik Dentz Sinclair.
4310
-
4311
- ref: mid.gmane.org/4C8986DA.7090603@gmail.com
4312
- ref: mid.gmane.org/5F1A02DB-CBDA-4302-9E26-8050C2D72433@efficiency20.com
4313
-
4314
- commit f9a7a19a361fd674bab4e2df7e0897015528bba7
4315
- Author: Eric Wong <normalperson@yhbt.net>
4316
- Date: Mon Aug 30 23:25:59 2010 -0700
4317
-
4318
- TUNING: more on socket buffer sizes
4319
-
4320
- Large buffers can hurt as well as help. And the difference
4321
- in real apps that do a lot of things other than I/O often
4322
- makes it not worth it.
4323
-
4324
- commit da272fc48ffaa808456fe94dd7a3e01bc9799832
4325
- Author: Eric Wong <normalperson@yhbt.net>
4326
- Date: Mon Aug 30 08:11:44 2010 +0000
4327
-
4328
- update Rails 3 tests to use Rails 3 final
4329
-
4330
- Rails 3 is out, and requires no code changes on our end to work
4331
- (as far as our tests show :)
4332
-
4333
- commit 0aaa0afa49a2953b7c26c1596a284621e23d5fc4
4334
- Author: Eric Wong <normalperson@yhbt.net>
4335
- Date: Mon Aug 30 07:59:01 2010 +0000
4336
-
4337
- remove nasty ugly hacks at startup
4338
-
4339
- These nasty hacks were breaking Rubinius compatibility.
4340
- This can be further cleaned up, too.
4341
-
4342
- commit f3e1653b900596e054297675becd01d9985ad482
4343
- Merge: feab35f d634b06
4344
- Author: Eric Wong <normalperson@yhbt.net>
4345
- Date: Sun Aug 29 23:38:13 2010 +0000
4346
-
4347
- Merge branch '1.1.x-stable'
4348
-
4349
- * 1.1.x-stable:
4350
- unicorn 1.1.3 - small bug fixes
4351
- make log reopens even more robust in threaded apps
4352
- update Rails3 tests to use 3.0.0rc2
4353
- make log reopens more robust in multithreaded apps
4354
- bin/*: more consistent --help output
4355
- SIGTTIN works after SIGWINCH
4356
-
4357
- commit feab35fe531843066db3418598874cf9f9419614
4358
- Author: Eric Wong <normalperson@yhbt.net>
4359
- Date: Sat Aug 28 18:52:48 2010 +0000
4360
-
4361
- make log reopens even more robust in threaded apps
4362
-
4363
- A follow-up to 4b23693b9082a84433a9e6c1f358b58420176b27
4364
-
4365
- If multithreaded programming can be compared to juggling
4366
- chainsaws, then multithreaded programming with signal handlers
4367
- in play is akin to juggling chainsaws on a tightrope
4368
- over shark-infested waters.
4369
-
4370
- commit 18968f6aff2fa5ba5a7e3e3d47c9cc05cd6c260d
4371
- Author: Eric Wong <normalperson@yhbt.net>
4372
- Date: Sat Aug 28 07:07:14 2010 +0000
4373
-
4374
- update Rails3 tests to use 3.0.0rc2
4375
-
4376
- No code changes needed, thankfully.
4377
-
4378
- commit 4b23693b9082a84433a9e6c1f358b58420176b27
4379
- Author: Eric Wong <normalperson@yhbt.net>
4380
- Date: Sat Aug 28 05:30:46 2010 +0000
4381
-
4382
- make log reopens more robust in multithreaded apps
4383
-
4384
- IOError may occur due to race conditions as another thread
4385
- may close the file immediately after we call File#closed?
4386
- to check.
4387
-
4388
- Errno::EBADF may occur in some applications that close a file
4389
- descriptor without notifying Ruby (or if two IO objects refer to
4390
- the same descriptor, possibly one of them using IO#for_fd).
4391
-
4392
- commit 096afc1a8e958cc09b4ce8b3bfe76ce056c7ed69
4393
- Author: Eric Wong <normalperson@yhbt.net>
4394
- Date: Tue Aug 24 06:21:00 2010 +0000
4395
-
4396
- bin/*: more consistent --help output
4397
-
4398
- This fixes a long-standing bug in the output of "unicorn_rails"
4399
- where the program name was missing.
4400
-
4401
- commit bdc79712e5ac53d39c51e80dfe50aff950e5053f
4402
- Author: Eric Wong <normalperson@yhbt.net>
4403
- Date: Sat Aug 7 03:27:50 2010 +0000
4404
-
4405
- miscellaneous loop and begin cleanups
4406
-
4407
- These are minor changes to remove unnecessary loop nesting and
4408
- begin usage to reduce our code size and hopefully simplify
4409
- flow for readers.
4410
-
4411
- commit e4d0b226391948ef433f1d0135814315e4c48535
4412
- Author: Eric Wong <normalperson@yhbt.net>
4413
- Date: Sat Aug 7 04:25:51 2010 +0000
4414
-
4415
- log ERROR messages if workers exit with failure
4416
-
4417
- Something is wrong if workers exit with a non-zero status,
4418
- so we'll increase the log level to help prevent people
4419
- from missing it.
4420
-
4421
- commit f1d33c80dd6c5650f960f7087f4e08f809754d34
4422
- Author: Eric Wong <normalperson@yhbt.net>
4423
- Date: Fri Jul 16 08:25:32 2010 +0000
4424
-
4425
- SIGTTIN works after SIGWINCH
4426
-
4427
- In addition to SIGHUP, it should be possible to gradually bring
4428
- workers back up (to avoid overloading the machine) when rolling
4429
- back upgrades after SIGWINCH.
4430
-
4431
- Noticed-by: Lawrence Pit
4432
- ref: http://mid.gmane.org/4C3F8C9F.2090903@gmail.com
4433
-
4434
- commit 5a0506c2affd2f5abe6e7315121e67aa3e32b253
4435
- Author: Eric Wong <normalperson@yhbt.net>
4436
- Date: Fri Jul 16 08:25:32 2010 +0000
4437
-
4438
- SIGTTIN works after SIGWINCH
4439
-
4440
- In addition to SIGHUP, it should be possible to gradually bring
4441
- workers back up (to avoid overloading the machine) when rolling
4442
- back upgrades after SIGWINCH.
4443
-
4444
- Noticed-by: Lawrence Pit
4445
- ref: http://mid.gmane.org/4C3F8C9F.2090903@gmail.com
4446
- (cherry picked from commit e75ee7615f9875db314a6403964e7b69a68b0521)
4447
-
4448
- commit 78ba3899eb24d6893e34984b9f1c479c7e6c9be3
4449
- Merge: c13bec3 d1818d2
4450
- Author: Eric Wong <normalperson@yhbt.net>
4451
- Date: Tue Jul 13 13:04:53 2010 -0700
4452
-
4453
- Merge branch '1.1.x-stable'
4454
-
4455
- * 1.1.x-stable: (27 commits)
4456
- unicorn 1.1.2 - fixing upgrade rollbacks
4457
- unicorn 1.0.1 - bugfixes only
4458
- SIGHUP deals w/ dual master pid path scenario
4459
- launcher: do not re-daemonize when USR2 upgrading
4460
- SIGHUP deals w/ dual master pid path scenario
4461
- launcher: do not re-daemonize when USR2 upgrading
4462
- unicorn 1.1.1 - fixing cleanups gone bad :x
4463
- tee_input: fix constant resolution for client EOF
4464
- unicorn 1.1.0 - small changes and cleanups
4465
- cleanup "stringio" require
4466
- tee_input: safer record separator ($/) handling
4467
- prefer "[]" to "first"/"last" where possible
4468
- tee_input: safer record separator ($/) handling
4469
- socket_helper: disable documentation
4470
- socket_helper: cleanup FreeBSD accf_* detection
4471
- socket_helper: no reason to check for logger method
4472
- configurator: cleanup RDoc, un-indent
4473
- configurator: documentation for new accept options
4474
- socket_helper: move defaults to the DEFAULTS constant
4475
- doc: recommend absolute paths for -c/--config-file
4476
- ...
4477
-
4478
- commit c13bec3449396b21795966101367838161612d61
4479
- Author: Eric Wong <normalperson@yhbt.net>
4480
- Date: Tue Jul 13 08:57:37 2010 +0000
4481
-
4482
- SIGHUP deals w/ dual master pid path scenario
4483
-
4484
- As described in our SIGNALS documentation, sending SIGHUP to the
4485
- old master (to respawn SIGWINCH-ed children) while the new
4486
- master (spawned from SIGUSR2) is active is useful for backing
4487
- out of an upgrade before sending SIGQUIT to the new master.
4488
-
4489
- Unfortunately, the SIGHUP signal to the old master will cause
4490
- the ".oldbin" pid file to be reset to the non-".oldbin" version
4491
- and thus attempt to clobber the pid file in use by the
4492
- to-be-terminated new master process.
4493
-
4494
- Thanks to the previous commit to prevent redaemonization in the
4495
- new master, the old master can reliably detect if the new master
4496
- is active while it is reloading the config file.
4497
-
4498
- Thanks to Lawrence Pit for discovering this bug.
4499
- ref: http://mid.gmane.org/4C3BEACF.7040301@gmail.com
4500
-
4501
- commit 3f0f9d6d72cf17b34c130b86eb933bbc513b24b3
4502
- Author: Eric Wong <normalperson@yhbt.net>
4503
- Date: Tue Jul 13 08:53:48 2010 +0000
4504
-
4505
- launcher: do not re-daemonize when USR2 upgrading
4506
-
4507
- This was accidentally enabled when ready_pipe was developed.
4508
- While re-daemonizing appears harmless in most cases this makes
4509
- detecting backed-out upgrades from the original master process
4510
- impossible.
4511
-
4512
- commit ac15513bb81a345cd12c67702a81a585b8b0514e
4513
- Author: Eric Wong <normalperson@yhbt.net>
4514
- Date: Sun Jul 11 02:05:01 2010 +0000
4515
-
4516
- tee_input: fix constant resolution for client EOF
4517
-
4518
- Noticed while hacking on a Zbatery-using application
4519
-
4520
- commit 0fea004ab093ec4f59d919915a505a136326bd8a
4521
- Author: Eric Wong <normalperson@yhbt.net>
4522
- Date: Thu Jul 8 05:54:25 2010 +0000
4523
-
4524
- cleanup "stringio" require
4525
-
4526
- "stringio" is part of the Ruby distro and we use it in multiple
4527
- places, so avoid re-requiring it.
4528
-
4529
- commit 5ece8c1c33f10e6496dfe5ae1d0d368293278d2d
4530
- Author: Eric Wong <normalperson@yhbt.net>
4531
- Date: Thu Jul 8 05:33:49 2010 +0000
4532
-
4533
- prefer "[]" to "first"/"last" where possible
4534
-
4535
- "[]" is slightly faster under Ruby 1.9 (but slightly
4536
- slower under 1.8).
4537
-
4538
- commit 1cd698f8c7938b1f19e9ba091708cb4515187939
4539
- Author: Eric Wong <normalperson@yhbt.net>
4540
- Date: Thu Jul 8 05:14:55 2010 +0000
4541
-
4542
- tee_input: safer record separator ($/) handling
4543
-
4544
- Different threads may change $/ during execution, so cache it at
4545
- function entry to a local variable for safety. $/ may also be
4546
- of a non-binary encoding, so rely on Rack::Utils.bytesize to
4547
- portably capture the correct size.
4548
-
4549
- Our string slicing is always safe from 1.9 encoding: both our
4550
- socket and backing temporary file are opened in binary mode,
4551
- so we'll always be dealing with binary strings in this class
4552
- (in accordance to the Rack spec).
4553
-
4554
- commit 98c51edf8b6f031a655a93b52808c9f9b78fb6fa
4555
- Author: Eric Wong <normalperson@yhbt.net>
4556
- Date: Tue Jul 6 14:17:02 2010 -0700
4557
-
4558
- socket_helper: disable documentation for internals
4559
-
4560
- commit 2b4b15cf513f66dc7a5aabaae4491c17895c288c
4561
- Author: Eric Wong <normalperson@yhbt.net>
4562
- Date: Tue Jul 6 12:59:45 2010 -0700
4563
-
4564
- socket_helper: cleanup FreeBSD accf_* detection
4565
-
4566
- Instead of detecting at startup if filters may be used, just try
4567
- anyways and log the error. It is better to ask for forgiveness
4568
- than permission :)
4569
-
4570
- commit e0ea1e1548a807d152c0ffc175915e98addfe1f2
4571
- Author: Eric Wong <normalperson@yhbt.net>
4572
- Date: Tue Jul 6 12:51:24 2010 -0700
4573
-
4574
- socket_helper: no reason to check for logger method
4575
-
4576
- We only use this module in HttpServer and our unit test mocks
4577
- it properly.
4578
-
4579
- commit e4d2c7c302e96ee504d82376885ac6b1897c666a
4580
- Author: Eric Wong <normalperson@yhbt.net>
4581
- Date: Tue Jul 6 12:49:48 2010 -0700
4582
-
4583
- configurator: cleanup RDoc, un-indent
4584
-
4585
- No point in redeclaring the Unicorn module in here.
4586
-
4587
- commit 686281a90a9b47bac4dfd32a72a97e6e8d26afa1
4588
- Author: Eric Wong <normalperson@yhbt.net>
4589
- Date: Tue Jul 6 12:39:36 2010 -0700
4590
-
4591
- configurator: documentation for new accept options
4592
-
4593
- The defaults should be reasonable, but there may be
4594
- folks who want to experiment.
4595
-
4596
- commit ef8f888ba1bacc759156f7336d39ba9b947e3f9d
4597
- Author: Eric Wong <normalperson@yhbt.net>
4598
- Date: Tue Jul 6 12:35:45 2010 -0700
4599
-
4600
- socket_helper: move defaults to the DEFAULTS constant
4601
-
4602
- This is to allow Rainbows! to override the defaults.
4603
-
4604
- commit d7695c25c5e3b1c90e63bf15a5c5fdf68bfd0c34
4605
- Author: Eric Wong <normalperson@yhbt.net>
4606
- Date: Mon Jul 5 23:14:40 2010 +0000
4607
-
4608
- doc: recommend absolute paths for -c/--config-file
4609
-
4610
- Suggested-by: Jeremy Evans
4611
- ref: http://mid.gmane.org/AANLkTintT4vHGEdueuG45_RwJqFCToHi5pm2-WKDSUMz@mail.gmail.com
4612
-
4613
- commit 646cc762cc9297510102fc094f3af8a5a9e296c7
4614
- Author: Eric Wong <normalperson@yhbt.net>
4615
- Date: Sat Jul 3 09:30:57 2010 +0000
4616
-
4617
- socket_helper: tunables for tcp_defer_accept/accept_filter
4618
-
4619
- Under Linux, this allows users to tune the time (in seconds) to
4620
- defer connections before allowing them to be accepted. The
4621
- behavior of TCP_DEFER_ACCEPT changed with Linux 2.6.32 and idle
4622
- connections may still be accept()-ed after the specified value
4623
- in seconds. A small value of '1' remains the default for
4624
- Unicorn as Unicorn does not worry about slow clients. Higher
4625
- values provide better DoS protection for Rainbows! but also
4626
- increases kernel memory usage.
4627
-
4628
- Allowing "dataready" for FreeBSD accept filters will allow
4629
- SSL sockets to be used in the future for HTTPS, too.
4630
-
4631
- commit 5769f313793ca84100f089b1911f2e22d0a31e9d
4632
- Author: Eric Wong <normalperson@yhbt.net>
4633
- Date: Mon Jun 28 04:45:16 2010 +0000
4634
-
4635
- http_response: this should be a module, not a class
4636
-
4637
- This affects Rainbows!, but Rainbows! is still using the Unicorn
4638
- 1.x branch. While we're at it, avoid redeclaring the "Unicorn"
4639
- module, it makes documentation noisier.
4640
-
4641
- commit cf63db66bca9acfd3416ab8fc8a7fd4f07927342
4642
- Author: Eric Wong <normalperson@yhbt.net>
4643
- Date: Fri Jun 25 11:29:13 2010 -0700
4644
-
4645
- test-exec: prefer ENV['PWD'] in working_directory tests
4646
-
4647
- We do an extra check in the application dispatch to ensure
4648
- ENV['PWD'] is set correctly to match Dir.pwd (even if the
4649
- string path is different) as this is required for Capistrano
4650
- deployments.
4651
-
4652
- These tests should now pass under OSX where /var is apparently
4653
- a symlink to /private/var.
4654
-
4655
- commit e2503a78150f4be113ee2a19404ba6aec401c696
4656
- Author: Eric Wong <normalperson@yhbt.net>
4657
- Date: Thu Jun 24 05:47:27 2010 +0000
4658
-
4659
- const: bump UNICORN_VERSION to 2.0.0pre
4660
-
4661
- commit b8b979d75519be1c84818f32b83d85f8ec5f6072
4662
- Author: Eric Wong <normalperson@yhbt.net>
4663
- Date: Thu Jun 24 04:31:37 2010 +0000
4664
-
4665
- http: avoid (re-)declaring the Unicorn module
4666
-
4667
- It makes for messy documentation.
4668
-
4669
- commit 6f720afd95d8131a2657c643b97cb18c750ed9f8
4670
- Author: Eric Wong <normalperson@yhbt.net>
4671
- Date: Thu Jun 24 04:24:34 2010 +0000
4672
-
4673
- tee_input: undent, avoid (re)-declaring "module Unicorn"
4674
-
4675
- It makes RDoc look better and cleaner, since we don't
4676
- do anything in the Unicorn namespace.
4677
-
4678
- commit 9f48be69bfe579dab02b5fe8d6e728ae63fd24fc
4679
- Author: Eric Wong <normalperson@yhbt.net>
4680
- Date: Thu Jun 24 04:11:35 2010 +0000
4681
-
4682
- tee_input: allow tuning of client_body_buffer_size/io_size
4683
-
4684
- Some folks may require more fine-grained control of buffering
4685
- and I/O chunk sizes, so we'll support them (unofficially, for
4686
- now).
4687
-
4688
- commit 1a49a8295054a2e931f5288540acb858be8edcc8
4689
- Author: Eric Wong <normalperson@yhbt.net>
4690
- Date: Thu Jun 24 03:54:40 2010 +0000
4691
-
4692
- tee_input: (nitpick) use IO#rewind instead of IO#seek(0)
4693
-
4694
- no need to pass an extra argument