Gave the client and server realistic buffer sizes
This commit is contained in:
parent
abe06ca827
commit
257dd8c31f
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user