Find a file
rinpatch 8c1caa0f10 Fix counters not decrementing when the process is exited
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.
2020-09-05 00:02:54 +03:00
lib Fix counters not decrementing when the process is exited 2020-09-05 00:02:54 +03:00
test Fix tests & add ConcurrentLimiter.delete/1 2020-05-16 12:39:22 +02:00
.credo.exs Format and prepare for release 2020-05-16 12:22:30 +02:00
.formatter.exs Initial commit 2020-05-08 01:55:49 +02:00
.gitignore Initial commit 2020-05-08 01:55:49 +02:00
.gitlab-ci.yml Format and prepare for release 2020-05-16 12:22:30 +02:00
CHANGELOG.md Fix decrement after max_retries been reached + telemetry events 2020-07-07 16:32:28 +02:00
LICENSE Format and prepare for release 2020-05-16 12:22:30 +02:00
mix.exs Fix decrement after max_retries been reached + telemetry events 2020-07-07 16:32:28 +02:00
mix.lock Fix decrement after max_retries been reached + telemetry events 2020-07-07 16:32:28 +02:00
README.md Format and prepare for release 2020-05-16 12:22:30 +02:00

Concurrent Limiter

See the docs at hexdocs.pm/concurrent_limiter or in lib/concurrent_limiter.ex.