preplay_unicorn 4.3.1.2.gc450

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