Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-13 | changes after rebase | Alexander Strizhakov | |
2020-10-13 | changes after rebase | Alexander Strizhakov | |
2020-10-13 | other files consistency | Alexander Strizhakov | |
2020-10-12 | Add missing Copyright headers | Mark Felder | |
2020-10-01 | web push http_client fix | Alexander Strizhakov | |
2020-09-07 | passing adapter options directly without adapter key | Alexander Strizhakov | |
2020-09-07 | adapter options unification | Alexander Strizhakov | |
not needed options deletion | |||
2020-09-04 | temp hackney fix | Alexander Strizhakov | |
2020-09-03 | HTTP: radically simplify pool checkin/checkout | rinpatch | |
Use a custom tesla middleware instead of adapter helper function + custom redirect middleware. This will also fix "Client died before releasing the connection" messages when the request pool is overloaded. Since the checkout is now done after passing ConcurrentLimiter. This is technically less efficient, since the connection needs to be checked in/out every time the middleware is left or entered respectively. But I don't think the nanoseconds we might lose on redirects to the same host are worth the complexity. | |||
2020-09-02 | timeout option moved to gun adapter helper | Alexander Strizhakov | |
2020-09-02 | default pool for tz_data client | Alexander Strizhakov | |
2020-09-02 | don't overwrite passed pool option in http clients | Alexander Strizhakov | |
2020-09-02 | improvements and fixes for http requests | Alexander Strizhakov | |
- fix for gun worker termination in some circumstances - pool for http clients (ex_aws, tzdata) - default pool timeouts for gun - gun retries on gun_down messages - s3 upload timeout if streaming enabled | |||
2020-08-01 | Don't override user-agent header if it's been set | Roman Chvanikov | |
2020-07-18 | Don't enable Pleroma.HTTP.Middleware.FollowRedirects unless Gun is used | href | |
2020-07-15 | Set a default timeout for Gun adapter timeout | href | |
2020-07-15 | Simplify TLS opts | href | |
- `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) | |||
2020-07-15 | Ensure connections error get known by the caller | href | |
2020-07-15 | Request limiter setup: consider {:error, :existing} a success | rinpatch | |
When the application restarts (which happens after certain config changes), the limiters are not destroyed, so `ConcurrentLimiter.new` will produce {:error, :existing} | |||
2020-07-15 | Gun adapter helper: fix wildcard cert issues on OTP 23 | rinpatch | |
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 | |||
2020-07-15 | Adapter Helper: Use built-in ip address type | rinpatch | |
2020-07-15 | HTTP: Implement max request limits | rinpatch | |
2020-07-15 | Use a custom pool-aware FollowRedirects middleware | rinpatch | |
2020-07-15 | Refactor gun pooling and simplify adapter option insertion | rinpatch | |
This patch refactors gun pooling to use Elixir process registry and simplifies adapter option insertion. Having the pool use process registry instead of a GenServer has a number of advantages: - Simpler code: the initial implementation adds about half the lines of code it deletes - Concurrency: unlike a GenServer, ETS-based registry can handle multiple checkout/checkin requests at the same time - Precise and easy idle connection clousure: current proposal for closing idle connections in the GenServer-based pool needs to filter through all connections once a minute and compare their last active time with closing time. With Elixir process registry this can be done by just using `Process.send_after`/`Process.cancel_timer` in the worker process. - Lower memory footprint: In my tests `gun-memory-leak` branch uses about 290mb on peak load (250 connections) and 235mb on idle (5-10 connections). Registry-based pool uses 210mb on idle and 240mb on peak load | |||
2020-06-25 | added wrapper Pleroma.HTTP for ExAws.S3 | Maksim Pechnikov | |
2020-06-24 | added wrapper Pleroma.HTTP for Tzdata.HTTPClient | Maksim Pechnikov | |
2020-05-30 | hackney adapter helper: support tlsv1.3 and remove custom opts | rinpatch | |
- partitial_chain is no longer exported, but it seems to be the default anyway. - The bug that caused sni to not be sent automatically seems to be fixed - https://github.com/benoitc/hackney/issues/612 | |||
2020-03-13 | more clean up | Alexander Strizhakov | |
2020-03-12 | clean up | Alexander Strizhakov | |
2020-03-10 | add verify tls_opts only when we open connection | Alexander Strizhakov | |
for other requests tesla will add tls_opts | |||
2020-03-06 | little polishing | Alexander Strizhakov | |
2020-03-06 | little refactor | Alexander Strizhakov | |
2020-03-05 | removing try block in tesla request | Alexander Strizhakov | |
added mocks for tests which fail with Tesla.Mock.Error | |||
2020-03-04 | moving some logic to tesla adapter | Alexander Strizhakov | |
- checking original inside gun adapter - flushing streams on max_body error | |||
2020-03-03 | Update Copyrights for gun related files | Mark Felder | |
2020-03-03 | Merge branch 'develop' into gun | Mark Felder | |
2020-03-03 | Update Copyrights | Mark Felder | |
2020-03-03 | adapter renaming to adapter_helper | Alexander Strizhakov | |
2020-03-03 | retry and retry_timeout settings default change | Alexander Strizhakov | |
2020-03-03 | no try block in checkout connection | Alexander Strizhakov | |
2020-03-03 | remove try block from pool request | Alexander Strizhakov | |
2020-03-03 | proxy parsing errors | Alexander Strizhakov | |
2020-03-03 | poolboy timeout fix | Alexander Strizhakov | |
2020-03-03 | simplification of formatting host method | Alexander Strizhakov | |
case for format_proxy method | |||
2020-03-03 | removing unused method | Alexander Strizhakov | |
2020-03-03 | unnecessary with | Alexander Strizhakov | |
2020-03-03 | Apply suggestion to lib/pleroma/http/http.ex | Alexander Strizhakov | |
2020-03-03 | Apply suggestion to lib/pleroma/http/http.ex | Alexander Strizhakov | |
2020-03-03 | Apply suggestion to lib/pleroma/http/request_builder.ex | Alexander Strizhakov | |
2020-03-03 | Apply suggestion to lib/pleroma/http/adapter.ex | Alexander Strizhakov | |