fix: shutdown should wait for in flight requests#4702
Conversation
8cbf39a to
ed86489
Compare
91774ab to
6972cc4
Compare
6972cc4 to
2fb5020
Compare
|
Marked it as draft because there is a problem caused by yesodweb/wai#853. |
|
Related: yesodweb/wai#1064 |
498627e to
405075a
Compare
405075a to
c8c75e4
Compare
|
@steve-chavez @wolfgangwalther - this is dependent on First commit in this PR is a change to our Haskell overlay pointing to We need to decide what to do with this one. |
Nice, looks like the maintainer is already replying.
Since replies are fast I think we should aim to merge upstream and not fork/vendor for now. |
bcf3e19 to
2ddd662
Compare
I believe these mysterious compilation errors should be fixed with #4825 - at least I had some of these and I assume they were the same as yours :) |
If you use |
71108a8 to
b0ea187
Compare
I see the failures: @mkleczek I think it should be fine to correct these lines to 78M. postgrest/test/memory/memory-tests.sh Lines 113 to 115 in 6b4022b |
c77c429 to
cbd4b46
Compare
Upgraded warp to 3.4.13 which fixed yesodweb/wai#853 Changed interrupt handling so that instead of killing the main thread, listening sockets are closed which triggers warp graceful shutdown.
cbd4b46 to
17fcc57
Compare
Done |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin v14
git worktree add -d .worktree/backport-4702-to-v14 origin/v14
cd .worktree/backport-4702-to-v14
git switch --create backport-4702-to-v14
git cherry-pick -x baebacf3db76594a7799d3f76adad359f3fa2e25 |
|
WDYT of changing this one to a
We can mention this is done by |
| jsonKeyTest "50M" "POST" "/rpc/leak?columns=blob" "73M" | ||
| jsonKeyTest "50M" "POST" "/leak?columns=blob" "73M" | ||
| jsonKeyTest "50M" "PATCH" "/leak?id=eq.1&columns=blob" "73M" | ||
| jsonKeyTest "50M" "POST" "/rpc/leak?columns=blob" "78M" | ||
| jsonKeyTest "50M" "POST" "/leak?columns=blob" "78M" | ||
| jsonKeyTest "50M" "PATCH" "/leak?id=eq.1&columns=blob" "78M" |
There was a problem hiding this comment.
In #4902 (comment), we noticed that this also makes these kinds of requests a tad slower. Most likely introduced via one of the changed dependencies.
DISCLAIMER:
This commit was authored entirely by a human without the assistance of LLMs.
Fixes #4689