Skip to content

Commit

Permalink
jspx speed bug fix
Browse files Browse the repository at this point in the history
见jsp speed bug fix: #40
  • Loading branch information
XinRoom authored May 27, 2021
1 parent f52bfc0 commit 15d11eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/tunnel.jspx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 15d11eb

Please sign in to comment.