Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/mcl/net/MapiSocket.java @ 612:1d44b8a577ca
write to out, not to super when implementing FilterOutputStream
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Tue, 18 Jan 2022 13:12:55 +0100 (2022-01-18) |
parents | 6aa38e8c0f2d |
children | 65641a7cea31 |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/mcl/net/MapiSocket.java +++ b/src/main/java/org/monetdb/mcl/net/MapiSocket.java @@ -1268,13 +1268,13 @@ public class MapiSocket { /* cannot (yet throw new IOException("Server aborted the upload"); } handleChunking(); - super.write(b); + out.write(b); wrote(1); } @Override public void write(final byte[] b) throws IOException { - write(b, 0, b.length); + this.write(b, 0, b.length); } @Override @@ -1288,7 +1288,7 @@ public class MapiSocket { /* cannot (yet while (len > 0) { handleChunking(); int toWrite = Integer.min(len, chunkLeft); - super.write(b, off, toWrite); + out.write(b, off, toWrite); off += toWrite; len -= toWrite; wrote(toWrite);