stomper 2.0.4 → 2.0.5

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.
@@ -1,5 +1,12 @@
1
1
  # Changes
2
2
 
3
+ ## 2.0.5 - 2011-03-08
4
+
5
+ * fixed issue with reusing connections after heartbeating extensions were
6
+ included
7
+
8
+ * three releases in one day... pretty awesome.
9
+
3
10
  ## 2.0.4 - 2011-03-08
4
11
 
5
12
  * minor issue where extraneous on\_connection\_died events were triggered.
@@ -429,6 +429,7 @@ class Stomper::Connection
429
429
  end
430
430
  else
431
431
  trigger_event(:on_connection_died, self)
432
+ nil
432
433
  end
433
434
  end
434
435
 
@@ -77,7 +77,7 @@ module Stomper::Extensions::Heartbeat
77
77
  def client_alive?
78
78
  # Consider some benchmarking to determine if this is faster than
79
79
  # re-writing the method after its first invocation.
80
- heartbeat_client_limit == 0 ||
80
+ @connecting || heartbeat_client_limit == 0 ||
81
81
  duration_since_transmitted <= heartbeat_client_limit
82
82
  end
83
83
 
@@ -88,7 +88,7 @@ module Stomper::Extensions::Heartbeat
88
88
  # @see #heartbeat_broker_limit
89
89
  # @see #client_alive?
90
90
  def broker_alive?
91
- heartbeat_broker_limit == 0 ||
91
+ @connecting || heartbeat_broker_limit == 0 ||
92
92
  duration_since_received <= heartbeat_broker_limit
93
93
  end
94
94
  end
@@ -3,5 +3,5 @@
3
3
  # Primary namespace of the stomper gem.
4
4
  module Stomper
5
5
  # The current version of the stomper gem.
6
- VERSION = '2.0.4'
6
+ VERSION = '2.0.5'
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stomper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.4
5
+ version: 2.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ian D. Eccles