activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1159802 - /activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Date Fri, 19 Aug 2011 22:17:28 GMT
Author: chirino
Date: Fri Aug 19 22:17:28 2011
New Revision: 1159802

URL: http://svn.apache.org/viewvc?rev=1159802&view=rev
Log:
Hex encode session ids to get them more compact.

Modified:
    activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala?rev=1159802&r1=1159801&r2=1159802&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Fri Aug 19 22:17:28 2011
@@ -774,7 +774,7 @@ class StompProtocolHandler extends Proto
 
       connected_headers += SERVER->encode_header("apache-apollo/"+Broker.version)
 
-      session_id = encode_header(this.host.config.id + "-"+this.host.session_counter.incrementAndGet)
+      session_id = encode_header("%s-%x".format(this.host.config.id, this.host.session_counter.incrementAndGet))
       connected_headers += SESSION->session_id
 
       val outbound_heart_beat_header = ascii("%d,%d".format(outbound_heartbeat,inbound_heartbeat))



Mime
View raw message