amqp-client 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/amqp/client/connection.rb +5 -0
- data/lib/amqp/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83f84f34aa2aacb3719e300483d4a874bc54892e12165b74f895a7503fd3c550
|
4
|
+
data.tar.gz: b53ba2a5bdbb1620f839f2cca8d66c1ee3db13549360b04e51d018208c1f7b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62aa1fddfbc285ab34e52b3f0421c2a017e157a1e4e6d7c887da78f55c56bb4717a4466bf0ad1ee08a03b485dd55910d38a1b6809d35e373eda1eb248e4cdd33
|
7
|
+
data.tar.gz: e60e191045e97a268faceb9e3a8112458aa920307e0bf29cdf0d24194c10b0c4254794ab335995019c7b3b41a2fafc383aaee1736584cd618684f6044d760f15
|
data/CHANGELOG.md
CHANGED
@@ -25,10 +25,15 @@ module AMQP
|
|
25
25
|
socket = Socket.tcp host, port, connect_timeout: 20, resolv_timeout: 5
|
26
26
|
enable_tcp_keepalive(socket)
|
27
27
|
if tls
|
28
|
+
cert_store = OpenSSL::X509::Store.new
|
29
|
+
cert_store.set_default_paths
|
28
30
|
context = OpenSSL::SSL::SSLContext.new
|
31
|
+
context.cert_store = cert_store
|
29
32
|
context.verify_mode = OpenSSL::SSL::VERIFY_PEER unless [false, "false", "none"].include? options[:verify_peer]
|
30
33
|
socket = OpenSSL::SSL::SSLSocket.new(socket, context)
|
31
34
|
socket.sync_close = true # closing the TLS socket also closes the TCP socket
|
35
|
+
socket.hostname = host # SNI host
|
36
|
+
socket.connect
|
32
37
|
end
|
33
38
|
channel_max, frame_max, heartbeat = establish(socket, user, password, vhost, **options)
|
34
39
|
Connection.new(socket, channel_max, frame_max, heartbeat, read_loop_thread: read_loop_thread)
|
data/lib/amqp/client/version.rb
CHANGED