akkoma
4 years agoMerge branch 'fix/mix-tasks' into 'develop'
lain [Sun, 26 Jul 2020 11:47:18 +0000 (11:47 +0000)]
Merge branch 'fix/mix-tasks' into 'develop'

Fix/mix tasks

Closes #1972 and #1970

See merge request pleroma/pleroma!2795

4 years agoEnsure Oban is available during mix tasks.
Mark Felder [Fri, 24 Jul 2020 17:06:56 +0000 (12:06 -0500)]
Ensure Oban is available during mix tasks.
Fixes: mix pleroma.user rm username
4 years agoFix mix tasks that make HTTP calls by starting the Gun connection pool
Mark Felder [Fri, 24 Jul 2020 17:05:42 +0000 (12:05 -0500)]
Fix mix tasks that make HTTP calls by starting the Gun connection pool

4 years agoMerge branch 'unblock-domain-via-query' into 'develop'
feld [Thu, 23 Jul 2020 20:06:11 +0000 (20:06 +0000)]
Merge branch 'unblock-domain-via-query' into 'develop'

Allow unblocking a domain via query params

Closes #1971

See merge request pleroma/pleroma!2783

4 years agoSupport blocking via query parameters as well and document the change.
Mark Felder [Thu, 23 Jul 2020 17:59:40 +0000 (12:59 -0500)]
Support blocking via query parameters as well and document the change.

4 years agoMerge branch 'feature/add-mrf-related-policies' into 'develop'
feld [Thu, 23 Jul 2020 17:23:18 +0000 (17:23 +0000)]
Merge branch 'feature/add-mrf-related-policies' into 'develop'

Add MRF related policies field to description.exs

See merge request pleroma/pleroma!2790

4 years agoMerge branch '1976-status-view-fixes' into 'develop'
Haelwenn [Thu, 23 Jul 2020 16:58:36 +0000 (16:58 +0000)]
Merge branch '1976-status-view-fixes' into 'develop'

StatusView: Handle badly formatted emoji reactions.

Closes #1976

See merge request pleroma/pleroma!2788

4 years agoMerge branch '1973-chats-fix-with-restrict-unauthenticated' into 'develop'
lain [Thu, 23 Jul 2020 12:52:02 +0000 (12:52 +0000)]
Merge branch '1973-chats-fix-with-restrict-unauthenticated' into 'develop'

[#1973] Fixed accounts rendering in GET /api/v1/pleroma/chats with truish :restrict_unauthenticated setting

Closes #1973

See merge request pleroma/pleroma!2791

4 years ago[#2791] AccountView: renamed `:force` option to `:skip_visibility_check`.
Ivan Tashkinov [Thu, 23 Jul 2020 12:08:30 +0000 (15:08 +0300)]
[#2791] AccountView: renamed `:force` option to `:skip_visibility_check`.

4 years agoMerge branch 'bugfix/mrf-reject-logging' into 'develop'
lain [Thu, 23 Jul 2020 11:08:29 +0000 (11:08 +0000)]
Merge branch 'bugfix/mrf-reject-logging' into 'develop'

Fix #783: Make MRF reject log as info level instead of error

Closes #783

See merge request pleroma/pleroma!2758

4 years agoMerge branch 'issue/1878' into 'develop'
lain [Thu, 23 Jul 2020 10:56:33 +0000 (10:56 +0000)]
Merge branch 'issue/1878' into 'develop'

[#1878] fix reset confirmation email in admin section

See merge request pleroma/pleroma!2751

4 years agoMerge branch 'linkify' into 'develop'
lain [Thu, 23 Jul 2020 10:28:52 +0000 (10:28 +0000)]
Merge branch 'linkify' into 'develop'

Fix Linkify

See merge request pleroma/pleroma!2792

4 years agoUpdate linkify migration tests to use config from ConfigDB
Alex Gleason [Wed, 22 Jul 2020 21:01:55 +0000 (16:01 -0500)]
Update linkify migration tests to use config from ConfigDB

4 years agoMigration to fix malformed Pleroma.Formatter config
Alex Gleason [Wed, 22 Jul 2020 19:18:09 +0000 (14:18 -0500)]
Migration to fix malformed Pleroma.Formatter config

4 years agoRefactor require_migration/1 into a test helper function
Alex Gleason [Wed, 22 Jul 2020 18:45:15 +0000 (13:45 -0500)]
Refactor require_migration/1 into a test helper function

4 years agoAdd AutolinkerToLinkify migration test
Alex Gleason [Wed, 22 Jul 2020 18:10:10 +0000 (13:10 -0500)]
Add AutolinkerToLinkify migration test

4 years agoFix linkify ConfigDB migration
Alex Gleason [Wed, 22 Jul 2020 16:27:52 +0000 (11:27 -0500)]
Fix linkify ConfigDB migration

4 years ago[#1973] Fixed accounts rendering in GET /api/v1/pleroma/chats with truish :restrict_u...
Ivan Tashkinov [Wed, 22 Jul 2020 16:06:00 +0000 (19:06 +0300)]
[#1973] Fixed accounts rendering in GET /api/v1/pleroma/chats with truish :restrict_unauthenticated.
Made `Pleroma.Web.MastodonAPI.AccountView.render("show.json", _)` demand :for or :force option in order to prevent incorrect rendering of empty map instead of expected user representation with truish :restrict_unauthenticated setting.

4 years agoAdd related_policy field
Angelina Filippova [Wed, 22 Jul 2020 15:15:30 +0000 (18:15 +0300)]
Add related_policy field

4 years agoMerge branch 'fix/pleroma-api-emoji-packs' into 'develop'
lain [Wed, 22 Jul 2020 15:09:32 +0000 (15:09 +0000)]
Merge branch 'fix/pleroma-api-emoji-packs' into 'develop'

Fix /api/pleroma/emoji/packs index endpoint.

See merge request pleroma/pleroma!2777

4 years agoStatusView: Handle badly formatted emoji reactions.
Lain Soykaf [Wed, 22 Jul 2020 12:44:06 +0000 (14:44 +0200)]
StatusView: Handle badly formatted emoji reactions.

4 years agoMerge branch 'bugfix/limiter_git_url' into 'develop'
lain [Wed, 22 Jul 2020 11:22:34 +0000 (11:22 +0000)]
Merge branch 'bugfix/limiter_git_url' into 'develop'

mix.exs: Append .git to git repo URLs

Closes #1980

See merge request pleroma/pleroma!2787

4 years agomix.exs: Append .git to git repo URLs
Haelwenn (lanodan) Monnier [Wed, 22 Jul 2020 10:00:07 +0000 (12:00 +0200)]
mix.exs: Append .git to git repo URLs

Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/1980
4 years agoDocument the emoji packs API fix
Mark Felder [Tue, 21 Jul 2020 22:29:11 +0000 (17:29 -0500)]
Document the emoji packs API fix

4 years agoTest that Emoji Packs can be listed when instance is not public
Mark Felder [Tue, 21 Jul 2020 22:27:13 +0000 (17:27 -0500)]
Test that Emoji Packs can be listed when instance is not public

4 years agoSkip the correct plug
Mark Felder [Tue, 21 Jul 2020 22:26:59 +0000 (17:26 -0500)]
Skip the correct plug

4 years agoRevert "Merge branch 'revert-2b5d9eb1' into 'develop'"
lain [Tue, 21 Jul 2020 22:18:17 +0000 (22:18 +0000)]
Revert "Merge branch 'revert-2b5d9eb1' into 'develop'"

This reverts merge request !2784

4 years agoMerge branch 'revert-2b5d9eb1' into 'develop'
lain [Tue, 21 Jul 2020 22:18:02 +0000 (22:18 +0000)]
Merge branch 'revert-2b5d9eb1' into 'develop'

Revert "Merge branch 'linkify' into 'develop'"

See merge request pleroma/pleroma!2784

4 years agoRevert "Merge branch 'linkify' into 'develop'"
lain [Tue, 21 Jul 2020 22:17:34 +0000 (22:17 +0000)]
Revert "Merge branch 'linkify' into 'develop'"

This reverts merge request !2677

4 years agoMerge branch 'develop' into fix/pleroma-api-emoji-packs
Mark Felder [Tue, 21 Jul 2020 21:25:45 +0000 (16:25 -0500)]
Merge branch 'develop' into fix/pleroma-api-emoji-packs

4 years agoMerge branch 'linkify' into 'develop'
lain [Tue, 21 Jul 2020 19:35:43 +0000 (19:35 +0000)]
Merge branch 'linkify' into 'develop'

AutoLinker --> Linkify, update to latest version

See merge request pleroma/pleroma!2677

4 years agoMerge branch 'gopher-fix' into 'develop'
lain [Tue, 21 Jul 2020 19:31:03 +0000 (19:31 +0000)]
Merge branch 'gopher-fix' into 'develop'

Gopher: using atom keys in search params

See merge request pleroma/pleroma!2775

4 years agoAllow unblocking a domain via query params
Egor Kislitsyn [Tue, 21 Jul 2020 12:06:46 +0000 (16:06 +0400)]
Allow unblocking a domain via query params

4 years agocopy tmp file if test depends on it
Alexander Strizhakov [Tue, 21 Jul 2020 07:31:58 +0000 (10:31 +0300)]
copy tmp file if test depends on it

4 years agoPleroma.Formatter can have partial updates
Alex Gleason [Mon, 20 Jul 2020 18:45:05 +0000 (13:45 -0500)]
Pleroma.Formatter can have partial updates

4 years agoUpdate linkify to latest release
Alex Gleason [Mon, 20 Jul 2020 14:29:03 +0000 (09:29 -0500)]
Update linkify to latest release

4 years agoMerge branch 'patch-1' into 'develop'
Haelwenn [Mon, 20 Jul 2020 13:52:56 +0000 (13:52 +0000)]
Merge branch 'patch-1' into 'develop'

fix markdown rendering withing <details>; typo parent**s**_visible

See merge request pleroma/pleroma!2781

4 years agofix markdown rendering withing <details>; typo parent**s**_visible
Dym Sohin [Mon, 20 Jul 2020 11:41:43 +0000 (11:41 +0000)]
fix markdown rendering withing <details>; typo parent**s**_visible

4 years agoTest angry face in formatter D:< #1968
Alex Gleason [Sat, 18 Jul 2020 20:10:48 +0000 (15:10 -0500)]
Test angry face in formatter D:< #1968

4 years agoMerge branch 'fix/followredirects-hackney' into 'develop'
feld [Sat, 18 Jul 2020 16:49:30 +0000 (16:49 +0000)]
Merge branch 'fix/followredirects-hackney' into 'develop'

Don't enable Pleroma.HTTP.Middleware.FollowRedirects unless Gun is used

Closes #1966 and #1961

See merge request pleroma/pleroma!2778

4 years agoDon't enable Pleroma.HTTP.Middleware.FollowRedirects unless Gun is used
href [Sat, 18 Jul 2020 11:17:38 +0000 (13:17 +0200)]
Don't enable Pleroma.HTTP.Middleware.FollowRedirects unless Gun is used

4 years agoFix /api/pleroma/emoji/packs index endpoint.
KokaKiwi [Sat, 18 Jul 2020 10:55:04 +0000 (12:55 +0200)]
Fix /api/pleroma/emoji/packs index endpoint.

4 years agoMerge branch 'fix-1958' into 'develop'
Haelwenn [Fri, 17 Jul 2020 18:54:30 +0000 (18:54 +0000)]
Merge branch 'fix-1958' into 'develop'

OpenAPI: Add :id to follower/following endpoints, fixes #1958

Closes #1958

See merge request pleroma/pleroma!2772

4 years agoOpenAPI: Add :id to follower/following endpoints, fixes #1958
Alex Gleason [Fri, 17 Jul 2020 02:39:10 +0000 (21:39 -0500)]
OpenAPI: Add :id to follower/following endpoints, fixes #1958

4 years agoMerge branch 'feature/expose-post-formats' into 'develop'
Haelwenn [Fri, 17 Jul 2020 16:52:59 +0000 (16:52 +0000)]
Merge branch 'feature/expose-post-formats' into 'develop'

Expose the post formats in /api/v1/instance

See merge request pleroma/pleroma!2776

4 years agoExpose the post formats in /api/v1/instance
Mark Felder [Fri, 17 Jul 2020 15:45:41 +0000 (10:45 -0500)]
Expose the post formats in /api/v1/instance

4 years agousing atom keys in search params
Alexander Strizhakov [Fri, 17 Jul 2020 15:06:05 +0000 (18:06 +0300)]
using atom keys in search params

4 years agoMerge branch 'feature/totp-input-improvements' into 'develop'
feld [Fri, 17 Jul 2020 14:36:38 +0000 (14:36 +0000)]
Merge branch 'feature/totp-input-improvements' into 'develop'

Improve TOTP token and recovery input fields in OAuth login

See merge request pleroma/pleroma!2769

4 years agoTOTP length is configurable, so we can't hardcode this here.
Mark Felder [Fri, 17 Jul 2020 13:19:49 +0000 (08:19 -0500)]
TOTP length is configurable, so we can't hardcode this here.

4 years agoMerge branch 'chore/issue-template-remove-tasks' into 'develop'
rinpatch [Fri, 17 Jul 2020 08:05:16 +0000 (08:05 +0000)]
Merge branch 'chore/issue-template-remove-tasks' into 'develop'

Bug issue template: remove choice in "Installation type"

See merge request pleroma/pleroma!2774

4 years agoBug issue template: remove choice in "Installation type"
rinpatch [Fri, 17 Jul 2020 08:03:47 +0000 (11:03 +0300)]
Bug issue template: remove choice in "Installation type"

It made gitlab display "1 of 2 tasks completed" when one is chosen,
which is totally not what this was used for.

4 years agoMigrate :auto_linker --> Pleroma.Formatter in ConfigDB
Alex Gleason [Thu, 16 Jul 2020 21:35:03 +0000 (16:35 -0500)]
Migrate :auto_linker --> Pleroma.Formatter in ConfigDB

4 years agoFormatter: Test link with local mention
Alex Gleason [Tue, 2 Jun 2020 00:51:41 +0000 (19:51 -0500)]
Formatter: Test link with local mention

4 years agoUse updated Linkify from git
Alex Gleason [Thu, 16 Jul 2020 19:54:20 +0000 (14:54 -0500)]
Use updated Linkify from git

4 years agodescription.exs typofixes
Alex Gleason [Thu, 16 Jul 2020 19:52:48 +0000 (14:52 -0500)]
description.exs typofixes

4 years agoMerge remote-tracking branch 'upstream/develop' into linkify
Alex Gleason [Thu, 16 Jul 2020 19:51:36 +0000 (14:51 -0500)]
Merge remote-tracking branch 'upstream/develop' into linkify

4 years agoImprove TOTP token and recovery input fields in OAuth login
Mark Felder [Thu, 16 Jul 2020 18:11:03 +0000 (13:11 -0500)]
Improve TOTP token and recovery input fields in OAuth login

4 years agoMerge branch 'refactor/gun-pool-registry' into 'develop'
feld [Wed, 15 Jul 2020 23:10:52 +0000 (23:10 +0000)]
Merge branch 'refactor/gun-pool-registry' into 'develop'

Refactor gun pooling and simplify adapter option insertion

Closes #1834, #1700, and #1680

See merge request pleroma/pleroma!2479

4 years agoMerge branch 'develop' into refactor/gun-pool-registry
Mark Felder [Wed, 15 Jul 2020 18:34:27 +0000 (13:34 -0500)]
Merge branch 'develop' into refactor/gun-pool-registry

4 years agoMerge branch 'refactor/notification_settings' into 'develop'
feld [Wed, 15 Jul 2020 15:22:39 +0000 (15:22 +0000)]
Merge branch 'refactor/notification_settings' into 'develop'

Refactor notification settings

See merge request pleroma/pleroma!2602

4 years agoUpdate FE bundle
Mark Felder [Wed, 15 Jul 2020 14:38:56 +0000 (09:38 -0500)]
Update FE bundle

4 years agoMerge branch 'develop' into refactor/notification_settings
Mark Felder [Wed, 15 Jul 2020 14:30:23 +0000 (09:30 -0500)]
Merge branch 'develop' into refactor/notification_settings

4 years agoMerge branch 'features/mrf-reasons' into 'develop'
rinpatch [Wed, 15 Jul 2020 14:00:22 +0000 (14:00 +0000)]
Merge branch 'features/mrf-reasons' into 'develop'

Add rejection reason to our MRFs

See merge request pleroma/pleroma!2759

4 years agoMerge branch 'fix/oban-pruning' into 'develop'
rinpatch [Wed, 15 Jul 2020 13:52:01 +0000 (13:52 +0000)]
Merge branch 'fix/oban-pruning' into 'develop'

Bring back oban job pruning

Closes #1945

See merge request pleroma/pleroma!2768

4 years agoMerge branch 'issue/sign-authority' into 'develop'
feld [Wed, 15 Jul 2020 13:44:52 +0000 (13:44 +0000)]
Merge branch 'issue/sign-authority' into 'develop'

Include port in host for signatures

See merge request pleroma/pleroma!2766

4 years agoMastoAPI: fix & test giving MRF reject reasons
Haelwenn (lanodan) Monnier [Wed, 15 Jul 2020 13:25:33 +0000 (15:25 +0200)]
MastoAPI: fix & test giving MRF reject reasons

4 years agoBring back oban job pruning
rinpatch [Wed, 15 Jul 2020 13:20:17 +0000 (16:20 +0300)]
Bring back oban job pruning

Closes #1945

4 years agoConnectionPool.Worker: do not stop with an error when there is a timeout
rinpatch [Wed, 15 Jul 2020 12:58:08 +0000 (15:58 +0300)]
ConnectionPool.Worker: do not stop with an error when there is a timeout

This produced error log messages about GenServer termination
every time the connection was not open due to a timeout.

Instead we stop with `{:shutdown, <gun_error>}` since shutting down
when the connection can't be established is normal behavior.

4 years agoMerge branch 'develop' into issue/sign-authority
Maksim Pechnikov [Wed, 15 Jul 2020 12:49:46 +0000 (15:49 +0300)]
Merge branch 'develop' into issue/sign-authority

4 years agoSet a default timeout for Gun adapter timeout
href [Mon, 13 Jul 2020 08:44:36 +0000 (10:44 +0200)]
Set a default timeout for Gun adapter timeout

4 years agoDon't test tls_options in adapter helper test.
href [Wed, 8 Jul 2020 17:23:32 +0000 (19:23 +0200)]
Don't test tls_options in adapter helper test.

4 years agohost is now useless
href [Wed, 8 Jul 2020 14:02:57 +0000 (16:02 +0200)]
host is now useless

4 years agoSimplify TLS opts
href [Wed, 8 Jul 2020 13:12:09 +0000 (15:12 +0200)]
Simplify TLS opts

- `verify_fun` is not useful now
- use `customize_check_hostname` (OTP 20+ so OK)
- `partial_chain` is useless as of OTP 21.1 (wasn't there, but hackney/..
uses it)

4 years agoGo back to upstream Tesla
href [Wed, 8 Jul 2020 13:02:56 +0000 (15:02 +0200)]
Go back to upstream Tesla

4 years agoBump gun
href [Wed, 8 Jul 2020 12:59:10 +0000 (14:59 +0200)]
Bump gun

4 years agoparentheses...
href [Wed, 8 Jul 2020 11:58:38 +0000 (13:58 +0200)]
parentheses...

4 years agoFix race in enforcer/reclaimer start
href [Wed, 8 Jul 2020 11:22:42 +0000 (13:22 +0200)]
Fix race in enforcer/reclaimer start

4 years agoEnsure connections error get known by the caller
href [Wed, 8 Jul 2020 11:01:02 +0000 (13:01 +0200)]
Ensure connections error get known by the caller

4 years agoConnectionPool.Worker: Open gun conn in continue instead of init
href [Tue, 7 Jul 2020 16:56:17 +0000 (18:56 +0200)]
ConnectionPool.Worker: Open gun conn in continue instead of init

4 years agoconfig.exs: set gun retries to 0
rinpatch [Mon, 6 Jul 2020 09:13:02 +0000 (12:13 +0300)]
config.exs: set gun retries to 0

The new pooling code just removes the connection when it's down,
there is no need to reconnect a connection that is just sitting idle,
better just open a new one next time it's needed

4 years agoConnection Pool: fix LRFU implementation to not actually be LRU
rinpatch [Wed, 1 Jul 2020 22:53:27 +0000 (01:53 +0300)]
Connection Pool: fix LRFU implementation to not actually be LRU

The numbers of the native time unit were so small the CRF was always 1,
making it an LRU. This commit switches the time to miliseconds and changes
the time delta multiplier to the one yielding mostly highest hit rates according
to the paper

4 years agoRequest limiter setup: consider {:error, :existing} a success
rinpatch [Tue, 30 Jun 2020 15:35:15 +0000 (18:35 +0300)]
Request limiter setup: consider {:error, :existing} a success

When the application restarts (which happens after certain config
changes), the limiters are not destroyed, so `ConcurrentLimiter.new`
will produce {:error, :existing}

4 years agoFollowRedirects: Unconditionally release the connection if there is an error
rinpatch [Tue, 30 Jun 2020 12:58:53 +0000 (15:58 +0300)]
FollowRedirects: Unconditionally release the connection if there is an error

There is no need for streaming the body if there is no body

4 years agoconfig.exs: make gun the default again
rinpatch [Tue, 23 Jun 2020 12:52:57 +0000 (15:52 +0300)]
config.exs: make gun the default again

4 years agoGun adapter helper: fix wildcard cert issues on OTP 23
rinpatch [Tue, 23 Jun 2020 17:36:21 +0000 (20:36 +0300)]
Gun adapter helper: fix wildcard cert issues on OTP 23

See https://bugs.erlang.org/browse/ERL-1260 for more info.

The ssl match function is basically copied from mint, except
that `:string.lowercase/1` was replaced by `:string.casefold`.
It was a TODO in mint's code, so might as well do it since we don't need
to support OTP <20.

Closes #1834

4 years agoAdd documentation for new connection pool settings and remove some
rinpatch [Tue, 23 Jun 2020 12:38:45 +0000 (15:38 +0300)]
Add documentation for new connection pool settings and remove some

`:retry_timeout` and `:retry` got removed because reconnecting on failure is
something the new pool intentionally doesn't do.

`:max_overflow` had to go in favor of `:max_waiting`, I didn't reuse the key because
the settings are very different in their behaviour.

`:checkin_timeout` got removed in favor of `:connection_acquisition_wait`,
I didn't reuse the key because the settings are somewhat different.

I didn't do any migrations/deprecation warnings/changelog entries because
these settings were never in stable.

4 years agoUse erlang monotonic time for CRF calculation
rinpatch [Wed, 17 Jun 2020 09:54:13 +0000 (12:54 +0300)]
Use erlang monotonic time for CRF calculation

4 years agoAdapter Helper: Use built-in ip address type
rinpatch [Tue, 16 Jun 2020 13:20:28 +0000 (16:20 +0300)]
Adapter Helper: Use built-in ip address type

4 years agoConnection Pool: add tests
rinpatch [Sat, 6 Jun 2020 14:53:39 +0000 (17:53 +0300)]
Connection Pool: add tests

4 years agoRemove tests for old pool
rinpatch [Thu, 28 May 2020 11:06:18 +0000 (14:06 +0300)]
Remove tests for old pool

4 years agoHTTP: Implement max request limits
rinpatch [Sun, 17 May 2020 19:16:02 +0000 (22:16 +0300)]
HTTP: Implement max request limits

4 years agoUse a custom pool-aware FollowRedirects middleware
rinpatch [Sat, 16 May 2020 08:49:19 +0000 (11:49 +0300)]
Use a custom pool-aware FollowRedirects middleware

4 years agoConnection pool: fix connections being supervised by gun_sup
rinpatch [Fri, 8 May 2020 16:57:11 +0000 (19:57 +0300)]
Connection pool: fix connections being supervised by gun_sup

4 years agoConnection pool: Add client death tracking
rinpatch [Fri, 8 May 2020 15:18:59 +0000 (18:18 +0300)]
Connection pool: Add client death tracking

While running this in production I noticed a number of ghost
processes with all their clients dead before they released the connection,
so let's track them to log it and remove them from clients

4 years agoConnection pool: Fix a possible infinite recursion if the pool is exhausted
rinpatch [Thu, 7 May 2020 13:11:48 +0000 (16:11 +0300)]
Connection pool: Fix a possible infinite recursion if the pool is exhausted

4 years agoConnection pool: implement logging and telemetry events
rinpatch [Wed, 15 Jul 2020 12:26:25 +0000 (15:26 +0300)]
Connection pool: implement logging and telemetry events

4 years agoConnection Pool: register workers using :via
rinpatch [Wed, 15 Jul 2020 12:24:47 +0000 (15:24 +0300)]
Connection Pool: register workers using :via

4 years agoConnection pool: Fix race conditions in limit enforcement
rinpatch [Wed, 6 May 2020 20:14:24 +0000 (23:14 +0300)]
Connection pool: Fix race conditions in limit enforcement

Fixes race conditions in limit enforcement by putting worker processes
in a DynamicSupervisor

4 years agoConnection pool: check that there actually is a result
rinpatch [Wed, 6 May 2020 18:51:10 +0000 (21:51 +0300)]
Connection pool: check that there actually is a result

Sometimes connections died before being released to the pool, resulting
in MatchErrors

4 years agoConnection Pool: don't enforce pool limits if no new connection needs to be opened
rinpatch [Wed, 6 May 2020 18:41:34 +0000 (21:41 +0300)]
Connection Pool: don't enforce pool limits if no new connection needs to be opened