diff --git a/templates/tunnel.jspx b/templates/tunnel.jspx index de936a2..ceb42c8 100644 --- a/templates/tunnel.jspx +++ b/templates/tunnel.jspx @@ -218,6 +218,8 @@ byte[] data = new byte[bytesRead]; System.arraycopy(buf.array(), 0, data, 0, bytesRead); out.write(b64en(data)); + out.flush(); + ((java.nio.Buffer)buf).clear(); bytesRead = socketChannel.read(buf); } response.setHeader("X-STATUS", "OK");