hubstep 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hubstep/transport/http_json.rb +9 -3
- data/lib/hubstep/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84256d93f0060bb666824eece04c2c6b4244f62e
|
4
|
+
data.tar.gz: f766e8489277b2c52f7f0eb4df658ac1a1e0cbce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2df4cf9913b6fb3657938135f6a315f7934dca95a4aab095c873d787074ee52e169e55fe553105b8846228a2268692fee434ca327a37223a190411c348ecbf
|
7
|
+
data.tar.gz: d24c795ba27266c2a3012ce428d7615becd772e1d0ee7ef159d13f051332f0f18cbc0d2cd1a0c55c265d33f0cbcf4441d45ccccf821bfb79603bba8192aa7c47
|
@@ -50,8 +50,9 @@ module HubStep
|
|
50
50
|
# for example)
|
51
51
|
@mutex = Mutex.new
|
52
52
|
|
53
|
-
@
|
54
|
-
@
|
53
|
+
@http = Net::HTTP.new(host, port)
|
54
|
+
@http.use_ssl = encryption == ENCRYPTION_TLS
|
55
|
+
@http.keep_alive_timeout = 5
|
55
56
|
end
|
56
57
|
|
57
58
|
def report(report)
|
@@ -60,8 +61,13 @@ module HubStep
|
|
60
61
|
req = request report
|
61
62
|
|
62
63
|
@mutex.synchronize do
|
64
|
+
# Typically, keep-alive for Net:HTTP is handled inside a start block,
|
65
|
+
# but that's awkward with our threading model. By starting it manually,
|
66
|
+
# once, the TCP connection should remain open for multiple report calls.
|
67
|
+
@http.start unless @http.started?
|
68
|
+
|
63
69
|
begin
|
64
|
-
res = @
|
70
|
+
res = @http.request(req)
|
65
71
|
rescue => e
|
66
72
|
res = e
|
67
73
|
ensure
|
data/lib/hubstep/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubstep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lightstep
|