You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/11/05 23:54:55 UTC
svn commit: r1031870 -
/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
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"))
{