Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-18 | Don't enable Pleroma.HTTP.Middleware.FollowRedirects unless Gun is used | href | |
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-24 | added wrapper Pleroma.HTTP for Tzdata.HTTPClient | Maksim Pechnikov | |
2020-03-12 | clean up | 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-03 | Merge branch 'develop' into gun | Mark Felder | |
2020-03-03 | Update Copyrights | Mark Felder | |
2020-03-03 | remove try block from pool request | Alexander Strizhakov | |
2020-03-03 | poolboy timeout fix | 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-02-18 | adding gun adapter | Alexander Strizhakov | |
2019-07-12 | Merge the default options with custom ones in ReverseProxy and | rinpatch | |
Pleroma.HTTP | |||
2019-05-30 | Use Pleroma.Config everywhere | Egor Kislitsyn | |
2019-03-08 | http: actually pass the options list to the Connection factory | William Pitcock | |
2019-03-08 | http: safely catch erlang exits and elixir errors from hackney (ref #672) | William Pitcock | |
2019-03-04 | Fix supported TLS versions as TLS 1.3 support seems buggy. | KokaKiwi | |
2019-01-15 | http: add support for query parameters, use Jason for JSON encoding instead ↵ | William Pitcock | |
of Poison like everywhere else | |||
2019-01-01 | Merge remote-tracking branch 'origin/develop' into pool-usage | lain | |
2019-01-01 | Remove default pool, it's used automatically anyway. | lain | |
2018-12-31 | update copyright years to 2019 | William Pitcock | |
2018-12-29 | Salmon# fixed publish an activity to remote accounts | Maksim Pechnikov | |
2018-12-23 | add license boilerplate to pleroma core | William Pitcock | |
2018-12-04 | remove httpoison_mock | Maksim Pechnikov | |
2018-12-04 | formatting the code | Maksim Pechnikov | |
2018-12-04 | update test | Maksim Pechnikov | |
2018-12-04 | init tesla and updated the http requests in Pleroma.Web.Websub | Maksim Pechnikov | |
2018-10-26 | http: fix mediaproxy | William Pitcock | |
2018-10-26 | http: enable keepalive / connection pooling (closes #336) | William Pitcock | |
2018-08-24 | http: fix TLS server name indication | William Pitcock | |
by default, hackney only sent TLS server name indication if TLS was locked to TLS 1.2. since there are many instances out there not speaking TLS 1.2, it is not acceptable to lock SNI to TLS 1.2. closes #261 | |||
2018-03-30 | Format the code. | lain | |
2018-01-29 | use nil instead of empty string | Jeff Becker | |
2017-12-30 | make httppoison use configurable http proxy | Jeff Becker | |