bunny 1.0.0.rc1 → 1.0.0.rc2
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/ChangeLog.md +9 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/bunny/concurrent/continuation_queue.rb +1 -1
- data/lib/bunny/socket.rb +1 -1
- data/lib/bunny/transport.rb +2 -2
- data/lib/bunny/version.rb +1 -1
- data/spec/stress/connection_open_close_spec.rb +2 -2
- 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: 7a93cb605a6fdd64b33d36cf15c2348e3a63d1f4
|
4
|
+
data.tar.gz: fb0cf9a5bbfa5d87a01a3e88ac5b4e194912cb6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dddb5e6345033db760b2b12be7c5bd61831d5a68d64b6b471c22557beae60d2a48aec300becea2509bfe66b5acf25ce606e7f8ed6a37c9be279ffb365da326c
|
7
|
+
data.tar.gz: eaf13dac3eb2d00be80afd360890dc85633054ff2acdb899fb0166958e4ca0a2ec5dd09fa1bc9d71f8e6e1d464773398e5d4d3673283eb081cb5e89baa157f9c
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
## Changes between Bunny 1.0.0.
|
1
|
+
## Changes between Bunny 1.0.0.rc1 and 1.0.0.rc2
|
2
|
+
|
3
|
+
### Ruby 1.8.7 Compatibility Fixes
|
4
|
+
|
5
|
+
Ruby 1.8.7 compatibility fixes around timeouts.
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## Changes between Bunny 1.0.0.pre6 and 1.0.0.rc1
|
2
10
|
|
3
11
|
### amq-protocol Update
|
4
12
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/lib/bunny/socket.rb
CHANGED
@@ -14,7 +14,7 @@ module Bunny
|
|
14
14
|
READ_RETRY_EXCEPTION_CLASSES << IO::WaitReadable if IO.const_defined?(:WaitReadable)
|
15
15
|
|
16
16
|
def self.open(host, port, options = {})
|
17
|
-
Timeout.timeout(options[:socket_timeout]) do
|
17
|
+
Timeout.timeout(options[:socket_timeout], ClientTimeout) do
|
18
18
|
sock = new(host, port)
|
19
19
|
if Socket.constants.include?('TCP_NODELAY') || Socket.constants.include?(:TCP_NODELAY)
|
20
20
|
sock.setsockopt(::Socket::IPPROTO_TCP, ::Socket::TCP_NODELAY, true)
|
data/lib/bunny/transport.rb
CHANGED
@@ -250,12 +250,12 @@ module Bunny
|
|
250
250
|
|
251
251
|
def initialize_socket
|
252
252
|
begin
|
253
|
-
@socket = Bunny::Timeout.timeout(@connect_timeout,
|
253
|
+
@socket = Bunny::Timeout.timeout(@connect_timeout, ClientTimeout) do
|
254
254
|
Bunny::Socket.open(@host, @port,
|
255
255
|
:keepalive => @opts[:keepalive],
|
256
256
|
:socket_timeout => @connect_timeout)
|
257
257
|
end
|
258
|
-
rescue StandardError,
|
258
|
+
rescue StandardError, ClientTimeout => e
|
259
259
|
@status = :not_connected
|
260
260
|
raise Bunny::TCPConnectionFailed.new(e, self.hostname, self.port)
|
261
261
|
end
|
data/lib/bunny/version.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
unless
|
3
|
+
unless defined?(JRUBY_VERSION) && !ENV["FORCE_JRUBY_RUN"]
|
4
4
|
describe Bunny::Session do
|
5
5
|
# creating thousands of connections means creating
|
6
6
|
# twice as many threads and this won't fly with the JVM
|
7
7
|
# in CI containers. MK.
|
8
|
-
n = if
|
8
|
+
n = if defined?(JRUBY_VERSION)
|
9
9
|
250
|
10
10
|
else
|
11
11
|
2500
|
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.0.0.
|
4
|
+
version: 1.0.0.rc2
|
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: 2013-10-
|
15
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|