Skip to content

Commit

Permalink
[misc] socket flushing correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Sep 7, 2022
1 parent 9a972b1 commit 1e5f510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -131,6 +131,7 @@ public void write(byte[] b, int off, int len) throws IOException {

out.write(header, 0, 7);
out.write(compressedBytes, 0, compressLen);
out.flush();
}
}
}
Expand Down
Expand Up @@ -832,8 +832,7 @@ protected void writeSocket(boolean commandEnd) throws IOException {
buf[3] = this.sequence.incrementAndGet();
checkMaxAllowedLength(pos - 4);
out.write(buf, 0, pos);
out.flush();

if (commandEnd) out.flush();
cmdLength += pos - 4;

if (logger.isTraceEnabled()) {
Expand Down

0 comments on commit 1e5f510

Please sign in to comment.