mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-16 00:00:56 -04:00
Compare commits
No commits in common. "1765ddf0f8fdfd658579518f09b72706e80c96f7" and "9582e17370c5a0cbdc197de4676582ba9ad72b62" have entirely different histories.
1765ddf0f8
...
9582e17370
@ -1,5 +0,0 @@
|
|||||||
# 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", method: "GET", url: uri.to_s }
|
assert crumb.data == { error: "name or service not known (unexisting)", method: "GET", url: uri.to_s }
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -244,14 +244,10 @@ 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_candidates: false)
|
reset_hostname(hostname)
|
||||||
|
|
||||||
unless @queries.value?(connection)
|
@connections.delete(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
|
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.1"
|
VERSION = "0.23.0"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user