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")
|
verify_spans(transaction, response, verb: "GET")
|
||||||
crumb = Sentry.get_current_scope.breadcrumbs.peek
|
crumb = Sentry.get_current_scope.breadcrumbs.peek
|
||||||
assert crumb.category == "httpx"
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -244,10 +244,14 @@ module HTTPX
|
|||||||
when :no_domain_found
|
when :no_domain_found
|
||||||
# Indicates no such domain was found.
|
# Indicates no such domain was found.
|
||||||
hostname, connection = @queries.first
|
hostname, connection = @queries.first
|
||||||
reset_hostname(hostname)
|
reset_hostname(hostname, reset_candidates: false)
|
||||||
|
|
||||||
@connections.delete(connection)
|
unless @queries.value?(connection)
|
||||||
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known (#{hostname})")
|
@connections.delete(connection)
|
||||||
|
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known")
|
||||||
|
end
|
||||||
|
|
||||||
|
resolve
|
||||||
when :message_truncated
|
when :message_truncated
|
||||||
# TODO: what to do if it's already tcp??
|
# TODO: what to do if it's already tcp??
|
||||||
return if @socket_type == :tcp
|
return if @socket_type == :tcp
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module HTTPX
|
module HTTPX
|
||||||
VERSION = "0.23.0"
|
VERSION = "0.23.1"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user