yawast 0.5.0 → 0.5.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3c39baea3f5636d87b91a2e72b17c4f14f5ebf0
4
- data.tar.gz: ca742f97ad361f90e26629c3a2bfdf653336cd9f
3
+ metadata.gz: 5bb360a70bc6929243c309cc30d5e1223e5ba86d
4
+ data.tar.gz: 0fc678e9891332a6d6b65cae26a28a6c3fa81086
5
5
  SHA512:
6
- metadata.gz: 5223d8c0209e070e54b12aa20eec9544a118023b3821f6bc4fbdfbfaa91d6506c111229156dd0583e06d039807f12f233bf7321fba4a33cf8f59e9eac7299340
7
- data.tar.gz: 73f5e1db92b004c1e4e752231aef0cd0aefd8f33c360197a525a8bc43c913f0ff36729ec5ce82c683a676a674c898375914911ee1cf5df33fb888f3ab3a68ade
6
+ metadata.gz: 006853f4449868fe0a73f45a3293b513452ad7084b6bc9f868e77d914a99a562c9e1e2af22238b409b71550667b4d4d0d466df0a10e65a0f8001fb0d8932d95e
7
+ data.tar.gz: ce8e540b04dcfbefbbf05da3fe2ccca22df9a5f93bfa140a0c53cdc94e481baae7e803521eb891ce1372aae977172fc96f74803e736d96a9e7866024856476a5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.1 - In Development
2
+
3
+ * [#106](https://github.com/adamcaudill/yawast/issues/106) - Bug: SWEET32: Incorrect Request Count
4
+
1
5
  ## 0.5.0 - 2017-04-05
2
6
 
3
7
  * [#35](https://github.com/adamcaudill/yawast/issues/35) - Add check for SameSite cookie attribute
@@ -50,6 +50,7 @@ module Yawast
50
50
 
51
51
  #if we are here, that means that HEAD failed, but GET didn't, so we'll use GET from now on.
52
52
  use_head = false
53
+ Yawast::Utilities.puts_error 'Error: HEAD request failed; using GET requests for SWEET32 check...'
53
54
  end
54
55
  end
55
56
 
@@ -72,9 +73,13 @@ module Yawast
72
73
  end
73
74
  end
74
75
 
76
+ #reset the req object
77
+ req = Yawast::Shared::Http.get_http(uri)
78
+ req.use_ssl = uri.scheme == 'https'
79
+ req.keep_alive_timeout = 600
80
+
75
81
  req.start do |http|
76
82
  #cache the number of hits
77
- hits = http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits]
78
83
  10000.times do |i|
79
84
  if use_head
80
85
  http.head(uri.path, headers)
@@ -83,7 +88,7 @@ module Yawast
83
88
  end
84
89
 
85
90
  # hack to detect transparent disconnects
86
- if http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits] != hits
91
+ if http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits] != 0
87
92
  raise 'TLS Reconnected'
88
93
  end
89
94
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yawast
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1.beta1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yawast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Caudill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ssllabs
@@ -225,9 +225,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - ">="
228
+ - - ">"
229
229
  - !ruby/object:Gem::Version
230
- version: '0'
230
+ version: 1.3.1
231
231
  requirements: []
232
232
  rubyforge_project: yawast
233
233
  rubygems_version: 2.4.8