From 91f83277e2abd8e1241f45b7d30129d8ee4865a9 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Tue, 27 Jul 2004 17:15:55 +0000
Subject: [PATCH] made incompatible with previous releases - the remaining
 commits before the next rev are NOT BACKWARDS COMPATIBLE do NOT update until
 the next release

---
 .../i2p/router/transport/tcp/RestrictiveTCPConnection.java    | 4 ++--
 .../java/src/net/i2p/router/transport/tcp/SocketCreator.java  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/router/java/src/net/i2p/router/transport/tcp/RestrictiveTCPConnection.java b/router/java/src/net/i2p/router/transport/tcp/RestrictiveTCPConnection.java
index 7678b3334a..ad482f5232 100644
--- a/router/java/src/net/i2p/router/transport/tcp/RestrictiveTCPConnection.java
+++ b/router/java/src/net/i2p/router/transport/tcp/RestrictiveTCPConnection.java
@@ -44,10 +44,10 @@ class RestrictiveTCPConnection extends TCPConnection {
     }
     
     /** passed in the handshake process for the connection, and only equivilant protocols will be accepted */
-    private final static long PROTO_ID = 12;
+    private final static long PROTO_ID = 13;
     
     /** read / write buffer size */
-    private final static int BUF_SIZE = 32*1024;
+    private final static int BUF_SIZE = 2*1024;
     
     private boolean validateVersion() throws DataFormatException, IOException {
         if (_log.shouldLog(Log.DEBUG)) _log.debug("Before validating version");
diff --git a/router/java/src/net/i2p/router/transport/tcp/SocketCreator.java b/router/java/src/net/i2p/router/transport/tcp/SocketCreator.java
index 787ce9b633..a9a8e0713f 100644
--- a/router/java/src/net/i2p/router/transport/tcp/SocketCreator.java
+++ b/router/java/src/net/i2p/router/transport/tcp/SocketCreator.java
@@ -30,8 +30,8 @@ class SocketCreator implements Runnable {
     
     public boolean couldEstablish() { return _established; }
     
-    /** the first byte sent and received must be 0x2A */
-    public final static int I2P_FLAG = 0x2A;
+    /** the first byte sent and received must be 0x42 */
+    public final static int I2P_FLAG = 0x42;
     /** sent if we arent trying to talk */
     private final static int NOT_I2P_FLAG = 0x2B;
     
-- 
GitLab