Connection pool: Fix race conditions in limit enforcement
authorrinpatch <rinpatch@sdf.org>
Wed, 6 May 2020 20:14:24 +0000 (23:14 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 15 Jul 2020 12:17:27 +0000 (15:17 +0300)
commitec9d0d146b4ec6752f8f2896ace9bb5585469773
tree5acc16c45001a945635f623071cfb30887f0050c
parentd08b1576990ca33ac4178fb757ec03a777c55b5b
Connection pool: Fix race conditions in limit enforcement

Fixes race conditions in limit enforcement by putting worker processes
in a DynamicSupervisor
lib/pleroma/application.ex
lib/pleroma/gun/connection_pool.ex
lib/pleroma/gun/connection_pool/worker.ex
lib/pleroma/gun/connection_pool/worker_supervisor.ex [new file with mode: 0644]