bunny-ext 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ = bunny-ext
2
+
3
+ Provides reliable socket timeouts for bunny.
4
+
5
+ We use it for beetle: https://github.com/xing/beetle
6
+
7
+ In the ideal world, this gem would not exist. But the author of bunny never responded to
8
+ our contact attempts.
@@ -27,6 +27,7 @@ module Qrack
27
27
  @socket.__send__(cmd, *args)
28
28
  end
29
29
  rescue Errno::EPIPE, Errno::EAGAIN, Qrack::ClientTimeout, IOError => e
30
+ close_socket
30
31
  raise Bunny::ServerDownError, e.message
31
32
  end
32
33
  end
@@ -76,6 +77,10 @@ module Qrack
76
77
  # http://http://cheezburger.com/Asset/View/4033311488
77
78
  ensure
78
79
  @channels = []
80
+
81
+ # Create channel 0
82
+ @channel = create_channel()
83
+
79
84
  close_socket
80
85
  end
81
86
 
@@ -1,5 +1,5 @@
1
1
  module Bunny
2
2
  module Ext
3
- VERSION = "0.6.5"
3
+ VERSION = "0.6.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny-ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 5
10
- version: 0.6.5
9
+ - 6
10
+ version: 0.6.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-10 00:00:00 +01:00
19
+ date: 2011-06-10 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
49
  - Gemfile
50
+ - README.rdoc
50
51
  - Rakefile
51
52
  - bunny-ext.gemspec
52
53
  - lib/bunny-ext.rb