bunny 1.5.0.pre1 → 1.5.0.pre2
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/lib/bunny/exceptions.rb +1 -1
- data/lib/bunny/session.rb +5 -9
- data/lib/bunny/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: 1c15c502df9001bb1ec063fa41f0e61c881ac80f
|
4
|
+
data.tar.gz: 57080f28afb4b25b20a197b2c18138c5babeb01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea8be6aa2319d3bf853620071b38057cf0f3d200de098fac7147b165324c25b777ad91f700babad93ab1b9ab07456baf0287f1ad463b7cf7efcb89feb0b43d3
|
7
|
+
data.tar.gz: 21357ebd7d9781b2fcbdeacd5b31854a905a4f6bcdb07917d9519cd020d4a97b51a598df8b48bbaf7a4f283ed7f7cdeabcac011f6286905c5f0476f0345a7d9a
|
data/lib/bunny/exceptions.rb
CHANGED
data/lib/bunny/session.rb
CHANGED
@@ -285,7 +285,7 @@ module Bunny
|
|
285
285
|
@logger.warn "Retrying connection on next host in line: #{@transport.host}:#{@transport.port}"
|
286
286
|
|
287
287
|
return self.start
|
288
|
-
rescue
|
288
|
+
rescue
|
289
289
|
@status_mutex.synchronize { @status = :not_connected }
|
290
290
|
raise
|
291
291
|
end
|
@@ -961,13 +961,11 @@ module Bunny
|
|
961
961
|
fr
|
962
962
|
# frame timeout means the broker has closed the TCP connection, which it
|
963
963
|
# does per 0.9.1 spec.
|
964
|
-
rescue
|
964
|
+
rescue
|
965
965
|
nil
|
966
966
|
end
|
967
967
|
if frame.nil?
|
968
|
-
|
969
|
-
@logger.error "RabbitMQ closed TCP connection before AMQP 0.9.1 connection was finalized. Most likely this means authentication failure."
|
970
|
-
raise Bunny::PossibleAuthenticationFailureError.new(self.user, self.vhost, self.password.size)
|
968
|
+
raise TCPConnectionFailed.new('An empty frame was received while opening the connection. In RabbitMQ <= 3.1 this could mean an authentication issue.')
|
971
969
|
end
|
972
970
|
|
973
971
|
response = frame.decode_payload
|
@@ -1011,13 +1009,11 @@ module Bunny
|
|
1011
1009
|
fr
|
1012
1010
|
# frame timeout means the broker has closed the TCP connection, which it
|
1013
1011
|
# does per 0.9.1 spec.
|
1014
|
-
rescue
|
1012
|
+
rescue
|
1015
1013
|
nil
|
1016
1014
|
end
|
1017
1015
|
if frame2.nil?
|
1018
|
-
|
1019
|
-
@logger.warn "RabbitMQ closed TCP connection before AMQP 0.9.1 connection was finalized. Most likely this means authentication failure."
|
1020
|
-
raise Bunny::PossibleAuthenticationFailureError.new(self.user, self.vhost, self.password.size)
|
1016
|
+
raise TCPConnectionFailed.new('An empty frame was received while opening the connection. In RabbitMQ <= 3.1 this could mean an authentication issue.')
|
1021
1017
|
end
|
1022
1018
|
connection_open_ok = frame2.decode_payload
|
1023
1019
|
|
data/lib/bunny/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.
|
4
|
+
version: 1.5.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Duncan
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-09-
|
15
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|