activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1033105 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala
Date Tue, 09 Nov 2010 17:15:42 GMT
Author: chirino
Date: Tue Nov  9 17:15:41 2010
New Revision: 1033105

URL: http://svn.apache.org/viewvc?rev=1033105&view=rev
Log:
Fixes missing deadlines on sending keep alives.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala?rev=1033105&r1=1033104&r2=1033105&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/protocol/HeartBeatMonitor.scala
Tue Nov  9 17:15:41 2010
@@ -39,7 +39,7 @@ class HeartBeatMonitor() {
 
   def schedual_check_writes(session:Int):Unit = {
     val last_write_counter = transport.getProtocolCodec.getWriteCounter()
-    transport.getDispatchQueue.after(write_interval, TimeUnit.MILLISECONDS) {
+    transport.getDispatchQueue.after(write_interval/2, TimeUnit.MILLISECONDS) {
       if( this.session == session ) {
         if( last_write_counter==transport.getProtocolCodec.getWriteCounter ) {
           on_keep_alive()



Mime
View raw message