From 22a02f099f05bf19a1a6e02879b8111d01d4f358 Mon Sep 17 00:00:00 2001 From: olamedia Date: Fri, 28 Sep 2012 19:15:45 +0600 Subject: network buffer 10m --- src/ru/olamedia/olacraft/network/GameClient.java | 2 +- src/ru/olamedia/olacraft/network/GameServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ru/olamedia/olacraft/network/GameClient.java b/src/ru/olamedia/olacraft/network/GameClient.java index 669d954..acd50fd 100644 --- a/src/ru/olamedia/olacraft/network/GameClient.java +++ b/src/ru/olamedia/olacraft/network/GameClient.java @@ -32,7 +32,7 @@ public class GameClient extends ConnectionStateListener implements IPacketListen private WorldProvider worldProvider; private GameScene scene; - private Client client = new Client(70 * 1024 * 1024, 70 * 1024 * 1024); + private Client client = new Client(10 * 1024 * 1024, 10 * 1024 * 1024); private String hostname = "127.0.0.1"; @Override diff --git a/src/ru/olamedia/olacraft/network/GameServer.java b/src/ru/olamedia/olacraft/network/GameServer.java index 67dffc5..3d3832d 100644 --- a/src/ru/olamedia/olacraft/network/GameServer.java +++ b/src/ru/olamedia/olacraft/network/GameServer.java @@ -33,7 +33,7 @@ public class GameServer { private WorldProvider worldProvider; private ExecutorService threadPool = Executors.newFixedThreadPool(1); - public static Server server = new Server(70 * 1024 * 1024, 1024 * 1024) { + public static Server server = new Server(10 * 1024 * 1024, 1024 * 1024) { @Override protected PlayerConnection newConnection() { // By providing our own connection implementation, we can store per -- cgit v1.2.3