mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-15 00:00:55 -04:00
Compare commits
6 Commits
9582e17370
...
1765ddf0f8
Author | SHA1 | Date | |
---|---|---|---|
|
1765ddf0f8 | ||
|
5ad314607d | ||
|
b154d97438 | ||
|
07624e529f | ||
|
a772ab42d0 | ||
|
b13b0f86eb |
5
doc/release_notes/0_23_1.md
Normal file
5
doc/release_notes/0_23_1.md
Normal file
@ -0,0 +1,5 @@
|
||||
# 0.23.1
|
||||
|
||||
## Bugfixes
|
||||
|
||||
* fixed regression causing dns candidate names not being tried after first one fails.
|
@ -100,7 +100,7 @@ if RUBY_VERSION >= "2.4.0"
|
||||
verify_spans(transaction, response, verb: "GET")
|
||||
crumb = Sentry.get_current_scope.breadcrumbs.peek
|
||||
assert crumb.category == "httpx"
|
||||
assert crumb.data == { error: "name or service not known (unexisting)", method: "GET", url: uri.to_s }
|
||||
assert crumb.data == { error: "name or service not known", method: "GET", url: uri.to_s }
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -244,10 +244,14 @@ module HTTPX
|
||||
when :no_domain_found
|
||||
# Indicates no such domain was found.
|
||||
hostname, connection = @queries.first
|
||||
reset_hostname(hostname)
|
||||
reset_hostname(hostname, reset_candidates: false)
|
||||
|
||||
unless @queries.value?(connection)
|
||||
@connections.delete(connection)
|
||||
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known (#{hostname})")
|
||||
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known")
|
||||
end
|
||||
|
||||
resolve
|
||||
when :message_truncated
|
||||
# TODO: what to do if it's already tcp??
|
||||
return if @socket_type == :tcp
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module HTTPX
|
||||
VERSION = "0.23.0"
|
||||
VERSION = "0.23.1"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user