proxy it's slow :(

This commit is contained in:
rusefi 2020-07-23 22:19:20 -04:00
parent 02cf57eafe
commit b274f39f53
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}
/**

View File

@ -65,7 +65,6 @@ public class TcpIoStream extends AbstractIoStream {
@Override
public void write(byte[] bytes) throws IOException {
output.write(bytes);
flush();
}
@Override