Though using 1Kb buffer to read/write large file _may_ be an issue that results in such long processing time. tl; dr: you need to make sure that no operation in your request handler takes more than fraction of second to complete.