golang-github-hashicorp-go-cleanhttp 0.5.2-1 source package in Ubuntu
Changelog
golang-github-hashicorp-go-cleanhttp (0.5.2-1) unstable; urgency=medium [ Debian Janitor (Jelmer Vernooij) ] * Apply multi-arch hints. + golang-github-hashicorp-go-cleanhttp-dev: Add Multi-Arch: foreign. [ Anthony Fok ] * New upstream version 0.5.2 * debian/control: - Change Section from devel to golang - Bump debhelper dependency to "Build-Depends: debhelper-compat (= 13)" - Bump Standards-Version to 4.5.1 (no change) - Add "Rules-Requires-Root: no" * Remove upstream "Fix tests against newer Go" patch which is in v0.5.2 * debian/gbp.conf: Set debian-branch to debian/sid for DEP-14 conformance -- Anthony Fok <email address hidden> Wed, 10 Feb 2021 00:53:25 -0700
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- golang
- Urgency:
- Medium Urgency
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-hashicorp-go-cleanhttp_0.5.2-1.dsc | 2.4 KiB | 5f01255c4b88eb005b0a1f2dcb9ef9670a83c56e9f0865338a481f5822558d07 |
golang-github-hashicorp-go-cleanhttp_0.5.2.orig.tar.gz | 7.9 KiB | 091d90c479401bc9047454c25f91a97a6707e6a279ce778e4881cf6b0191a47f |
golang-github-hashicorp-go-cleanhttp_0.5.2-1.debian.tar.xz | 7.9 KiB | 030da497cbd5093db69c62277eecbe375ec02a18b301121bae76e32325547eaf |
Available diffs
- diff from 0.5.1-1 to 0.5.2-1 (1.9 KiB)
No changes file available.
Binary packages built by this source
- golang-github-hashicorp-go-cleanhttp-dev: Functions for accessing "clean" Go http.Client values
The Go standard library contains a default http.Client called
http.DefaultClient. It is a common idiom in Go code to start with
http.DefaultClient and tweak it as necessary, and in fact, this is encouraged;
from the http package documentation:
.
The Client's Transport typically has internal state (cached TCP connections),
so Clients should be reused instead of created as needed. Clients are safe
for concurrent use by multiple goroutines.
.
Unfortunately, this is a shared value, and it is not uncommon for libraries to
assume that they are free to modify it at will. With enough dependencies, it
can be very easy to encounter strange problems and race conditions due to
manipulation of this shared value across libraries and goroutines (clients are
safe for concurrent use, but writing values to the client struct itself is not
protected).
.
Making things worse is the fact that a bare http.Client will use a default
http.Transport called http.DefaultTransport, which is another global value that
behaves the same way. So it is not simply enough to replace http.DefaultClient
with &http.Client{}.
.
This repository provides some simple functions to get a "clean" http.Client --
one that uses the same default values as the Go standard library, but returns a
client that does not share any state with other clients.
.
This package contains the source.