Reduce buffer size by half.

This commit is contained in:
md_5 2012-12-24 08:36:00 +11:00
parent 3114e1e802
commit 51ed8beffa
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class InitialHandler implements Runnable
out.write(new PacketFCEncryptionResponse().getPacket());
in = new PacketInputStream(new CipherInputStream(socket.getInputStream(), EncryptionUtil.getCipher(false, shared)));
out = new CipherOutputStream(new BufferedOutputStream(socket.getOutputStream()), EncryptionUtil.getCipher(true, shared));
out = new CipherOutputStream(new BufferedOutputStream(socket.getOutputStream(), 4096), EncryptionUtil.getCipher(true, shared));
List<byte[]> customPackets = new ArrayList<>();
byte[] custom;
while (Util.getId((custom = in.readPacket())) != 0xCD)

View File

@ -66,7 +66,7 @@ public class ServerConnection extends GenericConnection
out.write(new PacketFAPluginMessage("REGISTER", channel.getBytes()).getPacket());
}
out = new BufferedOutputStream(out);
out = new BufferedOutputStream(out, 4096);
return new ServerConnection(name, socket, in, out, login);
} catch (KickException ex)