Sergey Suprunenko
02dc651828
Handle 303 redirects
5 years ago
rinpatch
b001b8891a
Merge the default options with custom ones in ReverseProxy and
...
Pleroma.HTTP
5 years ago
Egor Kislitsyn
99f70c7e20
Use Pleroma.Config everywhere
5 years ago
jeff
9f3bcf0efe
Respect proxy settings federation
5 years ago
William Pitcock
c972d0bb14
http: bump connection timeout to 10 seconds
5 years ago
William Pitcock
290f5b2cfe
config: make sending the user agent configurable, disable sending the user agent in tests
5 years ago
William Pitcock
d3b8cd342f
http: request builder: send user-agent when making requests
5 years ago
William Pitcock
1f78d23eed
http: connection: unify adapter configuration and defaults
6 years ago
William Pitcock
ba48bd901c
http: connection: relax the timeouts a little
6 years ago
William Pitcock
19afd9f81f
http: rework connection timeouts to match hackney docs, enforce 1 second max TCP connection timeout
6 years ago
William Pitcock
773f532b14
http: actually pass the options list to the Connection factory
6 years ago
William Pitcock
50ba4ba2c9
http: connection: merge hackney option lists instead of concatenating them
...
this ensures the right pools are used
6 years ago
William Pitcock
2a83c0ba93
http: safely catch erlang exits and elixir errors from hackney (ref #672 )
6 years ago
KokaKiwi
b57913b13a
Fix supported TLS versions as TLS 1.3 support seems buggy.
6 years ago
href
4aff4efa8d
Use multiple hackney pools
...
* federation (ap, salmon)
* media (rich media, media proxy)
* upload (uploader proxy)
Each "part" will stop fighting others ones -- a huge federation outbound
could before make the media proxy fail to checkout a connection in time.
splitted media and uploaded media for the good reason than an upload
pool will have all connections to the same host (the uploader upstream).
it also has a longer default retention period for connections.
6 years ago
William Pitcock
2d3241753f
http: add support for query parameters, use Jason for JSON encoding instead of Poison like everywhere else
6 years ago
lain
096a927805
Merge remote-tracking branch 'origin/develop' into pool-usage
6 years ago
lain
d4799e0dc2
Remove default pool, it's used automatically anyway.
6 years ago
William Pitcock
980b5288ed
update copyright years to 2019
6 years ago
Maksim Pechnikov
523848d1fd
Salmon# fixed publish an activity to remote accounts
6 years ago
William Pitcock
2791ce9a1f
add license boilerplate to pleroma core
6 years ago
Maksim Pechnikov
074fa790ba
fix compile warnings
6 years ago
Hakaba Hitoyo
96ba95df2e
remove follow_redirect options
6 years ago
Hakaba Hitoyo
27792b2d77
remove pool and timeout options which duplicate with the default
6 years ago
Maksim Pechnikov
50e72f6c48
remove httpoison_mock
6 years ago
Maksim Pechnikov
dd8aee332c
formatting the code
6 years ago
Maksim Pechnikov
a9e4a97586
update test
6 years ago
Maksim Pechnikov
ec34de0c1f
WebSub fix test
6 years ago
Maksim Pechnikov
3ce16e5a56
init tesla and updated the http requests in Pleroma.Web.Websub
6 years ago
William Pitcock
c302c619b9
http: fix mediaproxy
6 years ago
William Pitcock
7338368ad9
http: enable keepalive / connection pooling ( closes #336 )
6 years ago
William Pitcock
290798b821
http: fix TLS server name indication
...
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
6 years ago
lain
4afbef39f4
Format the code.
7 years ago
Jeff Becker
066fe1a697
use nil instead of empty string
7 years ago
Jeff Becker
5ddd15d794
make httppoison use configurable http proxy
7 years ago