-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
* Remove uses of at-async in favor of at-spawn. at-async tends to "poison" cooperating tasks to be sticky to the thread that is running them or the parent's task's thread. * cleanup * add docs for logtag
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ const DEBUG_LEVEL = Ref(0) | |
|
||
Base.@deprecate escape escapeuri | ||
|
||
using Base64, Sockets, Dates, URIs, LoggingExtras, MbedTLS | ||
using Base64, Sockets, Dates, URIs, LoggingExtras, MbedTLS, OpenSSL | ||
|
||
function access_threaded(f, v::Vector) | ||
tid = Threads.threadid() | ||
|
@@ -24,7 +24,7 @@ end | |
|
||
function open end | ||
|
||
const SOCKET_TYPE_TLS = Ref{Any}(MbedTLS.SSLContext) | ||
const SOCKET_TYPE_TLS = Ref{Any}(OpenSSL.SSLStream) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nickrobinson251
Collaborator
|
||
|
||
include("Conditions.jl") ;using .Conditions | ||
include("access_log.jl") | ||
|
@@ -158,6 +158,7 @@ Supported optional keyword arguments: | |
- `logerrors = false`, if `true`, `HTTP.StatusError`, `HTTP.TimeoutError`, `HTTP.IOError`, and `HTTP.ConnectError` will be | ||
logged via `@error` as they happen, regardless of whether the request is then retried or not. Useful for debugging or | ||
monitoring requests where there's worry of certain errors happening but ignored because of retries. | ||
- `logtag = nothing`, if provided, will be used as the tag for error logging. Useful for debugging or monitoring requests. | ||
- `observelayers = false`, if `true`, enables the `HTTP.observelayer` to wrap each client-side "layer" to track the amount of | ||
time spent in each layer as a request is processed. This can be useful for debugging performance issues. Note that when retries | ||
or redirects happen, the time spent in each layer is cumulative, as noted by the `[layer]_count`. The metrics are stored | ||
|
2 comments
on commit b64beb7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/83328
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v1.9.0 -m "<description of version>" b64beb797470ef6c96e75ef7c77d60f975fd32f1
git push origin v1.9.0
This is a breaking change because it changes the accepted type for the
sslconfig
keyword argument that many functions in the public API of HTTP.jl accept.Did you intend to change this? It seems unrelated to your other changes.