proxy it's slow :(
This commit is contained in:
parent
02cf57eafe
commit
b274f39f53
|
@ -44,6 +44,7 @@ public interface IoStream extends WriteStream {
|
|||
writeShort(packet.getPacket().length);
|
||||
write(packet.getPacket());
|
||||
writeInt(packet.getCrc());
|
||||
flush();
|
||||
}
|
||||
|
||||
default void sendPacket(byte[] plainPacket, Logger logger) throws IOException {
|
||||
|
@ -56,6 +57,7 @@ public interface IoStream extends WriteStream {
|
|||
// todo: verbose mode printHexBinary(plainPacket))
|
||||
logger.info(getLoggingPrefix() + "Sending packet " + BinaryProtocol.findCommand(plainPacket[0]) + " length=" + plainPacket.length);
|
||||
write(packet);
|
||||
flush();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,7 +65,6 @@ public class TcpIoStream extends AbstractIoStream {
|
|||
@Override
|
||||
public void write(byte[] bytes) throws IOException {
|
||||
output.write(bytes);
|
||||
flush();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue