You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/06 16:02:46 UTC
ignite git commit: IGNITE-3477 - Byte order in SSL decoded buffer
Repository: ignite
Updated Branches:
refs/heads/ignite-3477-master cf06bad24 -> 6204d4650
IGNITE-3477 - Byte order in SSL decoded buffer
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6204d465
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6204d465
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6204d465
Branch: refs/heads/ignite-3477-master
Commit: 6204d46506508256930ad704d6d0599900403a5b
Parents: cf06bad
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Thu Apr 6 19:02:58 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Thu Apr 6 19:02:58 2017 +0300
----------------------------------------------------------------------
.../apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/6204d465/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
index 091e307..0c50b50 100755
--- a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
+++ b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
@@ -3394,10 +3394,10 @@ public class TcpCommunicationSpi extends IgniteSpiAdapter implements Communicati
assert sslHnd != null;
buf = ByteBuffer.allocate(1000);
+ buf.order(ByteOrder.nativeOrder());
ByteBuffer decode = ByteBuffer.allocate(2 * buf.capacity());
-
- buf.order(ByteOrder.nativeOrder());
+ decode.order(ByteOrder.nativeOrder());
for (int i = 0; i < RecoveryLastReceivedMessage.MESSAGE_FULL_SIZE; ) {
int read = ch.read(buf);