activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r1375292 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp: Connection.cs Transport/Failover/FailoverTransport.cs
Date Mon, 20 Aug 2012 22:53:27 GMT
Author: jgomes
Date: Mon Aug 20 22:53:27 2012
New Revision: 1375292

URL: http://svn.apache.org/viewvc?rev=1375292&view=rev
Log:
Reimplement fix for zombie consumers to update the failover state tracker.
Fixes https://issues.apache.org/jira/browse/AMQNET-394

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Connection.cs
    activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Transport/Failover/FailoverTransport.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Connection.cs?rev=1375292&r1=1375291&r2=1375292&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Connection.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Connection.cs
Mon Aug 20 22:53:27 2012
@@ -682,10 +682,7 @@ namespace Apache.NMS.Stomp
                 }
             }
 
-            Tracer.ErrorFormat("No such consumer active: {0}.  Removing...", dispatch.ConsumerId);
-            RemoveInfo info  = new RemoveInfo();
-            info.ObjectId = dispatch.ConsumerId;
-            transport.Oneway(info);
+            Tracer.ErrorFormat("No such consumer active: {0}.", dispatch.ConsumerId);
         }
 
         protected void OnTransportException(ITransport sender, Exception exception)

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Transport/Failover/FailoverTransport.cs?rev=1375292&r1=1375291&r2=1375292&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/branches/1.5.x/src/main/csharp/Transport/Failover/FailoverTransport.cs
Mon Aug 20 22:53:27 2012
@@ -450,6 +450,7 @@ namespace Apache.NMS.Stomp.Transport.Fai
 
                     if(command.IsRemoveInfo)
                     {
+                        stateTracker.track(command);
                         // Simulate response to RemoveInfo command
                         Response response = new Response();
                         response.CorrelationId = command.CommandId;



Mime
View raw message