Gave the client and server realistic buffer sizes

This commit is contained in:
senft-lap 2012-11-09 22:35:35 +01:00
parent abe06ca827
commit 257dd8c31f
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import common.Util;
public class BufferedNetworkStackClient {
protected static final long TIMEOUT = 5000;
protected static final int BUF_SIZE = 128;
protected static final int BUF_SIZE = 2048;
private DatagramChannel channel = null;
private ByteBuffer buf;

View File

@ -17,7 +17,6 @@ class BufferedNetworkStack {
private DatagramChannel channel;
private ByteBuffer buf;
protected static final int BUF_SIZE = 10;
protected static final int BUF_SIZE = 1024;
private Stack<String> stack;