HoneyryderChuck
82b0a4bf28
fix: https resolver should close when no more outstanding connections are around
2022-01-16 22:54:56 +02:00
HoneyryderChuck
06b162b6ea
applying a resolver manager to hold the different family type resolvers for the pool. This allows to have multiple resolvers per type, i.e. IPv6 and IPv4
2022-01-16 22:54:56 +02:00
HoneyryderChuck
71920157f4
fix: ensuring that the https resolver is using the pool it's being created in
2022-01-16 22:54:56 +02:00
HoneyryderChuck
6d33b5e59f
adding support for tempfile sigs, other improvements
2022-01-16 22:54:56 +02:00
HoneyryderChuck
9bd73e5a22
removing uncaching of resolved names (not used anywhere)
2022-01-16 22:54:54 +02:00
HoneyryderChuck
921d1f6371
removing resolver_ios cache from pool (did not have accurate values, not really useful since selector avoid doubler registries already)
2022-01-16 22:53:36 +02:00
HoneyryderChuck
a8830681df
changing resolver structure to rely on inheritance, which helps with typing
2022-01-16 22:53:36 +02:00
HoneyryderChuck
bfb51cf213
isolate debug log tests
2022-01-16 03:29:46 +02:00
HoneyryderChuck
c1402f7995
Merge branch 'improve-coverage' into 'master'
...
improvements and fixes for env proxy
See merge request honeyryderchuck/httpx!191
2022-01-16 01:17:09 +00:00
HoneyryderChuck
b739cc42e6
native resolver: resetting start_timeout after closing
2022-01-16 02:29:48 +02:00
HoneyryderChuck
770fdefc9d
added extra test for logging errors
2022-01-16 02:29:48 +02:00
HoneyryderChuck
cef4d2018b
emptying buffers on native resolver cloose
2022-01-16 02:29:48 +02:00
HoneyryderChuck
91a106db54
log test improvements: test with higher level, test tty and non-tty
2022-01-16 02:29:38 +02:00
HoneyryderChuck
3a166a97e3
bring hidden files to coverage
2022-01-15 01:38:14 +02:00
HoneyryderChuck
cc63fae2b5
fixed deletion of timmeouts, so that CNAME resolve doesn't leave timeouts behind
2022-01-15 01:38:14 +02:00
HoneyryderChuck
6369d9af72
fix CI script and assertion helper for headers
2022-01-15 01:38:14 +02:00
HoneyryderChuck
59ac7d8bca
fix: DEFAULT_OPTIONS option_class not set right for env proxy
...
When proxy plugin loads by default, Session is redefined, but the
default options still referred the original Options class. this broke
further plugins on top. Given this is a frozen variable, corners were
cut.
2022-01-15 01:38:14 +02:00
HoneyryderChuck
15a4fb83ba
options: also freeze inner unfrozen vars; fixed message of resolve
...
timeout to include host
2022-01-15 01:38:14 +02:00
HoneyryderChuck
f5fcc24aa6
env proxy: added test for connnection reuse
2022-01-15 01:38:14 +02:00
HoneyryderChuck
120c895e25
typo
2022-01-15 01:38:14 +02:00
HoneyryderChuck
b9911025ba
fixed linting
2022-01-14 19:07:38 +02:00
HoneyryderChuck
f738fdb306
Merge branch 'bouk1-master-patch-93614' into 'master'
...
Support passing options in Faraday Adapter
See merge request honeyryderchuck/httpx!192
2022-01-14 16:41:02 +00:00
Bouke van der Bijl
6e52640bd5
Support passing options in Faraday Adapter
...
The options are passed on to the created Session
2022-01-14 15:48:37 +00:00
HoneyryderChuck
0149317761
Merge branch 'test-mime-type-detectors' into 'master'
...
added tests for all supported mime type detectors
See merge request honeyryderchuck/httpx!189
2022-01-12 22:41:57 +00:00
HoneyryderChuck
6ce9d16da4
fix backtrace set in regression test
2022-01-12 19:04:57 +02:00
HoneyryderChuck
c3d20c6107
assertion helper: explicit string there to chase very rare CI failure
2022-01-12 15:50:44 +02:00
HoneyryderChuck
779171106b
refactoring CI test suite
...
* run linting first (finish fast if code is unaligned), only on ruby 3.1
* run standalone and regression tests only on CRuby
* do not enable rbs if in jit mode (we should not slow down jits)
2022-01-12 15:50:44 +02:00
HoneyryderChuck
317ed07dba
added tests for all supported mime type detectors
2022-01-12 15:50:44 +02:00
HoneyryderChuck
904772bed4
Merge branch 'fixup_warning' into 'master'
...
Fixup `mismatched indentations` ruby warning
See merge request honeyryderchuck/httpx!190
2022-01-12 13:34:06 +00:00
ojab
60e04412bd
Fixup mismatched indentations
ruby warning
2022-01-12 13:10:55 +00:00
HoneyryderChuck
f05dad7785
Merge branch 'fix-filemagic'
2022-01-12 10:54:51 +02:00
HoneyryderChuck
4cec75c33a
bumped version to 0.18.7
v0.18.7
2022-01-12 10:54:08 +02:00
HoneyryderChuck
a03a66eb63
fix filemagic: rewind file after mime type detection
2022-01-12 10:52:32 +02:00
HoneyryderChuck
f99abc38e2
Merge branch 'fix-filemagic'
2022-01-12 10:11:50 +02:00
HoneyryderChuck
561b7da590
bumped version to 0.18.6
v0.18.6
2022-01-12 10:10:32 +02:00
HoneyryderChuck
e7f11604f5
added missing constant to multipart filemagic integration
2022-01-12 10:07:44 +02:00
HoneyryderChuck
7a75620e16
Merge branch 'fix-regression-timeout' into 'master'
...
fix env proxy tests
See merge request honeyryderchuck/httpx!188
2022-01-12 00:01:27 +00:00
HoneyryderChuck
b700a4f994
bootstrapping standalone tests, test which need to run in full-isolation mode (own process), where proxy intgration via env var is tested
2022-01-12 01:43:08 +02:00
HoneyryderChuck
22d18cecdd
fixing env proxy again: options class must be looked up, as the default one was somehow cached
2022-01-08 17:48:52 +02:00
HoneyryderChuck
d286bf5cc2
improving the env proxy test
2022-01-08 17:47:58 +02:00
HoneyryderChuck
607288e494
Merge branch 'issue-164' into 'master'
...
HTTP/2 proxy
Closes #164
See merge request honeyryderchuck/httpx!183
2022-01-08 13:37:03 +00:00
HoneyryderChuck
764ec71a4f
native resolver: do not leave timeouts for alreaady resolved hosts around, affects subsequent
2022-01-08 15:22:32 +02:00
HoneyryderChuck
c47c2e8a93
updated grpc versioning in Gemfile
2022-01-08 15:22:32 +02:00
HoneyryderChuck
55464c16c3
removing faraday tests relying on multipart middleware, as it's been removed from core
2022-01-08 15:09:11 +02:00
HoneyryderChuck
5c019c440f
added test for testing the env var proxy defs
2022-01-08 15:09:11 +02:00
HoneyryderChuck
7da23ac89c
enable connection coalescing for proxied connections
2022-01-08 15:09:11 +02:00
HoneyryderChuck
566421b3c1
enable links on docker allowing to test the env http proxy set up
2022-01-07 12:26:26 +02:00
HoneyryderChuck
fde8ea3276
fix: do not apply timeout errors on inactive conns
...
when selector emits a timeout error, the full list of connections in the
pool is traversed. This is in itself not very performant, but the
problem is that the accounting is also done with connection which
weren't selected, such as the inactive connections. So we skip this for
them for now.
2022-01-07 12:26:26 +02:00
HoneyryderChuck
9aeaf437ef
fix: proxy plugin #next_proxy returns a proxy options hash instead
...
the #next_proxy function was relying on the existence of a proxy object.
However, in the case of default proxy plugin, this is not the case, and
this is only created later.
2022-01-07 12:26:26 +02:00
HoneyryderChuck
48be2bd13a
fix: proxy plugin loaad on http(s)_proxy envvar is working
...
the grep call was applied on an hash, instead of the keys, and was
therefore not picking up the proxy plugin when it should.
2022-01-07 12:26:26 +02:00