Skip to content

Commit

Permalink
Merge pull request #40 from XinRoom/patch-1
Browse files Browse the repository at this point in the history
jsp(x) speed bug fix
  • Loading branch information
L-codes committed May 27, 2021
2 parents e5d47fa + 15d11eb commit 33fc1c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/tunnel.jsp
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
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 33fc1c6

Please sign in to comment.