From 7169087d6dabe4efe8f58d17f3f07abce36615ba Mon Sep 17 00:00:00 2001 From: Suwon Chae Date: Thu, 5 Oct 2017 00:05:31 +0900 Subject: [PATCH] svn: Fix slowing down commit issue The buffer was not used when reading the svn committed files. That was the reason for slowing down commit. See: Yona Github issue #301 --- app/utils/PlayServletRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/PlayServletRequest.java b/app/utils/PlayServletRequest.java index ce4a51a72..dd7b7d028 100644 --- a/app/utils/PlayServletRequest.java +++ b/app/utils/PlayServletRequest.java @@ -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() {