activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1031870 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
Date Fri, 05 Nov 2010 22:54:55 GMT
Author: tabish
Date: Fri Nov  5 22:54:54 2010
New Revision: 1031870

URL: http://svn.apache.org/viewvc?rev=1031870&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-284

Use the right parser for the Version field.
Add some debug logs for use while testing 1.1 compat.

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs?rev=1031870&r1=1031869&r2=1031870&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
Fri Nov  5 22:54:54 2010
@@ -187,13 +187,19 @@ namespace Apache.NMS.Stomp.Protocol
 
         protected virtual Command ReadConnected(StompFrame frame)
         {
+            Tracer.Debug("CONNECTED command: " + frame.Command + " headers: ");
+            foreach(string key in frame.Properties.Keys)
+            {
+                Tracer.DebugFormat("   property[{0}] = {1}", key, frame.Properties[key]);
+            }
+
             string responseId = frame.RemoveProperty("response-id");
 
             this.remoteWireFormatInfo = new WireFormatInfo();
 
             if(frame.HasProperty("version"))
             {
-                remoteWireFormatInfo.Version = Int32.Parse(frame.RemoveProperty("version"));
+                remoteWireFormatInfo.Version = Single.Parse(frame.RemoveProperty("version"));
 
                 if(frame.HasProperty("session"))
                 {



Mime
View raw message