activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1049385 - /activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java
Date Wed, 15 Dec 2010 02:11:38 GMT
Author: chirino
Date: Wed Dec 15 02:11:37 2010
New Revision: 1049385

URL: http://svn.apache.org/viewvc?rev=1049385&view=rev
Log:
Ok this really fixes SSL for ruby clients now.

Modified:
    activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java

Modified: activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java?rev=1049385&r1=1049384&r2=1049385&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java
(original)
+++ activemq/activemq-apollo/trunk/apollo-tcp/src/main/java/org/apache/activemq/apollo/transport/tcp/SslTransport.java
Wed Dec 15 02:11:37 2010
@@ -80,7 +80,6 @@ public class SslTransport extends TcpTra
             }
             return rc.toArray(new X509Certificate[rc.size()]);
         } catch (SSLPeerUnverifiedException e) {
-            e.printStackTrace();
             return null;
         }
     }
@@ -190,7 +189,7 @@ public class SslTransport extends TcpTra
                 // lets drain the overflow buffer before trying to suck down anymore
                 // network bytes.
                 int size = Math.min(plain.remaining(), readOverflowBuffer.remaining());
-                plain.put(readOverflowBuffer.array(), 0, size);
+                plain.put(readOverflowBuffer.array(), readOverflowBuffer.position(), size);
                 readOverflowBuffer.position(readOverflowBuffer.position()+size);
                 if( !readOverflowBuffer.hasRemaining() ) {
                     readOverflowBuffer = null;



Mime
View raw message