From f7712c6442566b7f898aa5be6ec8f3d7dc6771b8 Mon Sep 17 00:00:00 2001 From: Ryosuke Yamazaki Date: Tue, 13 Oct 2015 08:11:21 +0200 Subject: [PATCH] fix Bug #48346 --- src/com/mysql/jdbc/CompressedInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/mysql/jdbc/CompressedInputStream.java b/src/com/mysql/jdbc/CompressedInputStream.java index 6156c8b..47b64d3 100644 --- a/src/com/mysql/jdbc/CompressedInputStream.java +++ b/src/com/mysql/jdbc/CompressedInputStream.java @@ -206,7 +206,7 @@ private void getNextPacketFromServer() throws IOException { * if an I/O error occors. */ private void getNextPacketIfRequired(int numBytes) throws IOException { - if ((this.buffer == null) || ((this.pos + numBytes) > this.buffer.length)) { + while ((this.buffer == null) || ((this.pos + numBytes) > this.buffer.length)) { getNextPacketFromServer(); } }