From https://git.pleroma.social/pleroma/elixir-libraries/concurrent_limiter with patches
8c1caa0f10
This fixes the issue by trapping exits for the duration of the fun, then turning exit trapping off and killing the process if there is an exit message in the mailbox. The real-world case where this fixes things is Pleroma MediaProxy. Without exit trapping, the process would get killed if the connection was closed client-side and a counter would be left incremented. I am not sure if trapping exits is the optimal solution, but I don't see any other option. |
||
---|---|---|
lib | ||
test | ||
.credo.exs | ||
.formatter.exs | ||
.gitignore | ||
.gitlab-ci.yml | ||
CHANGELOG.md | ||
LICENSE | ||
mix.exs | ||
mix.lock | ||
README.md |
Concurrent Limiter
See the docs at hexdocs.pm/concurrent_limiter or in lib/concurrent_limiter.ex
.