HoneyryderChuck
201591e9fe
added test for the socks5 non-happy path
2020-12-02 01:30:38 +00:00
HoneyryderChuck
b83d52a284
deprecating HTTPX.plugins officially
2020-12-02 01:30:38 +00:00
HoneyryderChuck
c67ae0582d
added test for host unreachable when connecting to the nameservers
2020-12-02 01:30:38 +00:00
HoneyryderChuck
282dff83cb
reworking resolver error tests, making resolver resilient to wrong record types from user
2020-12-02 01:30:38 +00:00
HoneyryderChuck
7a5eaa3795
using the same strategy when exiting early from unexpected dns errors
...
there was a :resolve_error already in place for this. this extends the
same strategy for https and native resolvers, thereby fixing potential
bugs.
2020-12-02 01:30:38 +00:00
HoneyryderChuck
c98d568e07
fixed some bugs from the https resolver while improving coverage
...
* it now fails hard if the dns server is a domain and it's not
resolvable;
* it properly handles retries for other record types (p.ex. when A query
fails, and AAAA follows);
2020-12-02 01:30:38 +00:00
HoneyryderChuck
37999cc39e
improved testing of body transcoder
2020-12-02 01:30:38 +00:00
HoneyryderChuck
3bf3223c60
fixing another loop error when proxy needs to be resolved, by resolving
...
fails
While adding yet another test, an edge case was found where a proxy had
to be resolved, but when the resolving failed, the process wasn't
recovering from it.
2020-11-30 12:16:36 +00:00
HoneyryderChuck
6734bedfb0
this check isn't necessary anymore (I already know what cause the issue this guard was here for)
2020-11-27 13:48:05 +00:00
HoneyryderChuck
035eda1f95
fixed another loop caused by certain connection goaway frames from
...
server not being processed
While introducing yet another test to catch frame processing errors, in
this case with the SETTINGS_TIMEOUT error, another loop was found. It
was caused by two reasons:
* connection was signaling it was "closing" on such an error, which is
not really true (server already closed the stream, so no need to
close it again); it should be marked as closed instead.
* write buffer was still full (with the handshake in this case), so the
connection was still trying to write;
2020-11-27 13:47:36 +00:00
HoneyryderChuck
e6c9bb4714
fix: http/1.1 recover from connection exhausted
...
While adding the test, the code to recover from an exhausted HTTP/1.1
connection proved not to be reliable, as it wasn't taking inflight
requests nor update-once keep-alive max requests counters into
account.
This has been fixed by implementing our own test dummy using
webrick.
2020-11-26 20:11:30 +00:00
HoneyryderChuck
34dc7df495
ensurinng that the push promise test sends requests sequentially
2020-11-26 17:20:13 +00:00
HoneyryderChuck
7f9e68ba3b
fixed: session hangs when HTTP/2 receives a 421
...
While adding a test, a bug was found, where an HTTP/2 connection
receiving a 421 response wasn't redirecting the request well to an
HTTP/1.1 one. This has been fixed by changing the way a new connection
is instantiated.
2020-11-26 17:13:02 +00:00
HoneyryderChuck
322aa06f22
added a test for when an http/2 connection exhausts and a second connection has to be established
2020-11-26 17:12:09 +00:00
HoneyryderChuck
264278a7ce
Merge branch 'issue-103' into 'master'
...
RSS Feed
See merge request honeyryderchuck/httpx!103
2020-11-26 10:17:45 +00:00
HoneyryderChuck
18f3b773ed
adding rss feed links in the page
2020-11-26 10:10:35 +00:00
HoneyryderChuck
4d27d2d17e
adding jekyll-feed
2020-11-26 10:10:17 +00:00
HoneyryderChuck
8f022c43ea
bumped to 0.10.0
v0.10.0
2020-11-25 17:57:32 +00:00
HoneyryderChuck
3e3003a313
Merge branch 'issue-10-2' into 'master'
...
Streaming responses
Closes #10
See merge request honeyryderchuck/httpx!102
2020-11-25 13:37:16 +00:00
HoneyryderChuck
7a5353ea90
fixed signing of the stream session request
2020-11-25 11:54:51 +00:00
HoneyryderChuck
67459a4f86
adding streaming requests to the readme
2020-11-24 17:21:49 +00:00
HoneyryderChuck
350a030473
sleep skews a bit under load, increasing it for reliability
2020-11-24 17:21:29 +00:00
HoneyryderChuck
3688e56640
ensuring that the yielded chunks are strings
2020-11-24 17:21:01 +00:00
HoneyryderChuck
cb3e57e10d
fixing log_exception signature
2020-11-24 16:38:46 +00:00
HoneyryderChuck
1e21c33da0
fixinng the signatures for the last rbs upstream
2020-11-24 00:42:54 +00:00
HoneyryderChuck
6cc24b63f5
forcing request fo fail with exception when there's an error (since we're supporting only 1 stream request at a time, this should be straightforward)
2020-11-24 00:42:54 +00:00
HoneyryderChuck
742d877c76
added #each_line method to stream response
2020-11-24 00:42:52 +00:00
HoneyryderChuck
3ca0b44e29
implementing the stream response
2020-11-24 00:42:38 +00:00
HoneyryderChuck
1b29e062a0
added streaming plugin tests
2020-11-22 22:32:38 +00:00
HoneyryderChuck
a650e622ca
do not close the connection pool, if there's nothing to close
2020-11-22 22:32:38 +00:00
HoneyryderChuck
7e26c86dc1
really closing a response (won't buffer stuff anymore after being closed)
2020-11-22 15:55:44 +00:00
HoneyryderChuck
047875864b
closing the response when not carrying it forward
2020-11-22 15:55:44 +00:00
HoneyryderChuck
fecdd120f8
fixing h2c by not calling the #to_s from response, which now touches the pool in such conditions; we want to flush the buffer, so that's what we do
2020-11-22 15:55:43 +00:00
HoneyryderChuck
fa2fd818fe
added explicit response closing in tests
2020-11-22 15:55:43 +00:00
HoneyryderChuck
b5a971b03b
unnecessary var
2020-11-19 09:44:55 +00:00
HoneyryderChuck
c8663e52ee
do not show IDN message for normal ascii hostnames
2020-11-19 09:44:43 +00:00
HoneyryderChuck
777ab21050
making WRITE/READ more accurate by emitting them at the socket (UDP/TCP) level
2020-11-19 09:44:29 +00:00
HoneyryderChuck
24088decf3
fixing rubocop for remaining ruby versions
2020-11-07 16:55:23 +00:00
HoneyryderChuck
930025a067
newline
2020-11-07 16:43:56 +00:00
HoneyryderChuck
dc3f5ec01e
missing rubocop-performance for 2.3
2020-11-07 16:38:44 +00:00
HoneyryderChuck
3029a39249
disabled rescue alignment for 2.2
2020-11-07 16:25:46 +00:00
HoneyryderChuck
b0983daf2b
wrong 0.81 rubocop version
2020-11-07 16:24:25 +00:00
HoneyryderChuck
ea4ac5bfb9
fix constant usage
2020-11-07 16:17:46 +00:00
HoneyryderChuck
2d078de0a4
non-ascii: force utf8 encoding for all
2020-11-07 16:12:04 +00:00
HoneyryderChuck
81033abd2b
fixing match for proper rubocop version per ruby
2020-11-07 16:11:44 +00:00
HoneyryderChuck
bb1f448bb2
Merge branch 'urlescaping' into 'master'
...
Support for IDN domain names
See merge request honeyryderchuck/httpx!101
2020-11-07 16:04:53 +00:00
HoneyryderChuck
9a17e9451b
do not install brotli in jruby mode
2020-11-07 15:46:08 +00:00
HoneyryderChuck
b47b9de745
for unescaping of non ascii domain to binary (JRuby converts to UTF-8)
2020-11-07 15:46:08 +00:00
HoneyryderChuck
8f495f37d2
avoid using URI.escape directly
2020-11-07 15:36:21 +00:00
HoneyryderChuck
86f1db5bf0
disabling IDN support for ruby < 2.3
2020-11-07 15:36:21 +00:00