stomper 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/lib/stomper/connection.rb +1 -0
- data/lib/stomper/extensions/heartbeat.rb +2 -2
- data/lib/stomper/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/lib/stomper/connection.rb
CHANGED
@@ -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
|
data/lib/stomper/version.rb
CHANGED