http 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/lib/http/timeout/null.rb +7 -5
- data/lib/http/timeout/per_operation.rb +0 -4
- data/lib/http/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6175e5c7921354af3518483759cfa8f17066be03
|
4
|
+
data.tar.gz: 6b58746ee974aaa0c3b05504ef315d20da2ed742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a2ee6cd6011bc1cf78c0cdcd4b6a6361485fd2236f384f7ad5db2de9925deee7e4a817d4e2bca57140fb45d22fd7eb5e3fb0cfa0022e89345eaaa62408ced56
|
7
|
+
data.tar.gz: 1f1c28bc91ec48cbd95df209ee6e205c0a08fbc245e409644d18bac9f7630fcad7fbbfefdc364778aaf437e8a3c081758de312019e003db6c2655f600efdd62d
|
data/CHANGES.md
CHANGED
data/lib/http/timeout/null.rb
CHANGED
@@ -20,27 +20,29 @@ module HTTP
|
|
20
20
|
|
21
21
|
# Starts a SSL connection on a socket
|
22
22
|
def connect_ssl
|
23
|
-
socket.connect
|
23
|
+
@socket.connect
|
24
24
|
end
|
25
25
|
|
26
26
|
# Configures the SSL connection and starts the connection
|
27
27
|
def start_tls(host, ssl_socket_class, ssl_context)
|
28
28
|
@socket = ssl_socket_class.new(socket, ssl_context)
|
29
|
-
socket.sync_close = true
|
29
|
+
@socket.sync_close = true if @socket.respond_to? :sync_close=
|
30
30
|
|
31
31
|
connect_ssl
|
32
32
|
|
33
|
-
|
33
|
+
return unless ssl_context.verify_mode == OpenSSL::SSL::VERIFY_PEER
|
34
|
+
|
35
|
+
@socket.post_connection_check(host)
|
34
36
|
end
|
35
37
|
|
36
38
|
# Read from the socket
|
37
39
|
def readpartial(size)
|
38
|
-
socket.readpartial(size)
|
40
|
+
@socket.readpartial(size)
|
39
41
|
end
|
40
42
|
|
41
43
|
# Write to the socket
|
42
44
|
def write(data)
|
43
|
-
socket << data
|
45
|
+
@socket << data
|
44
46
|
end
|
45
47
|
|
46
48
|
alias_method :<<, :write
|
data/lib/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-04-
|
13
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http_parser.rb
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.2.2
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: HTTP should be easy
|