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