This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 4bc79a94da9fa2f997d0d1c4088d671fbdc381d4 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Wed Apr 1 22:00:09 2020 +0700 JAMES-2997 ReactorUtils::toChunk should be done on an elastic scheduler --- .../src/main/java/org/apache/james/jmap/http/DownloadRoutes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java index 160bdde..ddabcf7 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/http/DownloadRoutes.java @@ -228,7 +228,8 @@ public class DownloadRoutes implements JMAPRoutes { .header(CONTENT_TYPE, blobContentType) .status(OK) .send(ReactorUtils.toChunks(stream, BUFFER_SIZE) - .map(Unpooled::wrappedBuffer)) + .map(Unpooled::wrappedBuffer) + .subscribeOn(Schedulers.elastic())) .then(); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org