bunny 0.10.7 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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: f535e615daf310f4a1e45b748799a0be9c7eb22d
|
4
|
+
data.tar.gz: d12db49e5f7805b56b3d3a28dc0c42a5b64c49b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a391ead25e9969d804a58452e3141606099c51b151b9985e8e2a3b3f116fda829aae2a340564d300b7d5533588fbaf0773a4d4444c5bda628bf1fafcf94384
|
7
|
+
data.tar.gz: 035be3322b48d97b81a7655637fc63c51cae129fca10a32a159e2c35d21c3c174203d6ea4975c646318dee09a94a747b169379569b16d626cd69d2cd04e5ee7e
|
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: 0.10.
|
4
|
+
version: 0.10.8
|
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-
|
15
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|