unicorn-camilo 4.8.2.5.g0b28.dirty

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