New Upstream Snapshot - golang-airbrake-go
Ready changes
Summary
Merged new upstream version: 0.0~git20151005 (was: 0.0~git20150109).
Resulting package
Built on 2022-10-14T15:15 (took 5m19s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots golang-github-tobi-airbrake-go-dev
Lintian Result
Diff
diff --git a/airbrake.go b/airbrake.go
index ab02d51..d5d5434 100644
--- a/airbrake.go
+++ b/airbrake.go
@@ -2,9 +2,11 @@ package airbrake
import (
"bytes"
+ "crypto/tls"
"errors"
"io/ioutil"
"log"
+ "net"
"net/http"
"os"
"reflect"
@@ -12,6 +14,7 @@ import (
"runtime"
"sync"
"text/template"
+ "time"
)
var (
@@ -103,7 +106,23 @@ func post(params map[string]interface{}) error {
log.Printf("Airbrake payload for endpoint %s: %s", Endpoint, buffer)
}
- response, err := http.Post(Endpoint, "text/xml", buffer)
+ var httpClient = &http.Client{
+ Transport: &http.Transport{
+ Proxy: http.ProxyFromEnvironment,
+ Dial: (&net.Dialer{
+ Timeout: 30 * time.Second,
+ KeepAlive: 30 * time.Second,
+ }).Dial,
+ TLSHandshakeTimeout: 10 * time.Second,
+ TLSClientConfig: &tls.Config{
+ ClientSessionCache: tls.NewLRUClientSessionCache(1024),
+ },
+ MaxIdleConnsPerHost: 100,
+ ResponseHeaderTimeout: 10 * time.Second,
+ },
+ Timeout: 10 * time.Second,
+ }
+ response, err := httpClient.Post(Endpoint, "text/xml", buffer)
if err != nil {
log.Printf("Airbrake error: %s", err)
return err
diff --git a/debian/changelog b/debian/changelog
index d852a07..ae0de21 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-airbrake-go (0.0~git20151005-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Fri, 14 Oct 2022 15:11:43 -0000
+
golang-airbrake-go (0.0~git20150109-3) unstable; urgency=medium
[ Alexandre Viau ]
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files