Skip to content
Permalink
Browse files
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.
  • Loading branch information
Timothy A. Bish committed Nov 5, 2010
1 parent 9f8547b commit d131419ee8345d72999e7c2cc75deda3ac0927a3
Showing 1 changed file with 7 additions and 1 deletion.
@@ -187,13 +187,19 @@ protected virtual Object CreateCommand(StompFrame frame)

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"))
{

0 comments on commit d131419

Please sign in to comment.