Skip to content

Commit

Permalink
0002252: Re add a buffer flush at the end of a push and at the end of…
Browse files Browse the repository at this point in the history
… a file push.
  • Loading branch information
chenson42 committed Apr 3, 2015
1 parent 56f960e commit 1820f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -73,6 +73,8 @@ public void handle(HttpServletRequest req, HttpServletResponse res) throws IOExc

}
}

res.flushBuffer();

}

Expand Down
Expand Up @@ -53,6 +53,7 @@ public PushUriHandler(IParameterService parameterService, IDataLoaderService dat
this.dataLoaderService = dataLoaderService;
this.statisticManager = statisticManager;
this.nodeService = nodeService;
log.info("Patched version of PushUriHandler with buffer flush is deployed");
}

public void handle(HttpServletRequest req, HttpServletResponse res) throws IOException,
Expand All @@ -65,6 +66,7 @@ public void handle(HttpServletRequest req, HttpServletResponse res) throws IOExc

push(nodeId, inputStream, outputStream);

res.flushBuffer();
log.debug("Push completed for {}", nodeId);

}
Expand Down

0 comments on commit 1820f0a

Please sign in to comment.