Skip to content

Commit

Permalink
svn: Fix slowing down commit issue
Browse files Browse the repository at this point in the history
The buffer was not used when reading the svn committed files.
That was the reason for slowing down commit.

See: Yona Github issue #301
  • Loading branch information
doortts committed Oct 4, 2017
1 parent 15b7e21 commit 7169087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/PlayServletRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public ServletInputStream getInputStream() throws IOException {
// BodyParser.of annotation at SvnApp.service() method.
throw new IOException("Request entity is too large.");
}
in = new FileInputStream(file);
in = new BufferedInputStream(new FileInputStream(file));
}

return new ServletInputStream() {
Expand Down

0 comments on commit 7169087

Please sign in to comment.