Commit 2114b85
authored
Default PUMA_PERSISTENT_TIMEOUT to match router 2.0 (#454)
Router 2.0 introduced keepalive support. It will close idle connections after 90 seconds (https://devcenter.heroku.com/articles/http-routing#keepalives). We want to avoid a situation where they send a request right before Puma closes the connection. We can do that by setting it to the same timeout the router uses + some value (such as 5 seconds).
Puma 7.0 was just released, and I suggested we make that value configurable via env var puma/puma#3378. This sets the value for any Puma user to do this manually, in their `config/puma.rb`, and for Puma 7+ users they will get that value by default.1 parent a480a09 commit 2114b85
File tree
4 files changed
+7
-0
lines changed- buildpacks/ruby
- src/steps
- tests
- docs
4 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
0 commit comments