From d499e14b7829c462f4a4cd9ca0c3b45a52d06aba Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 24 Jan 2020 15:40:16 +0000 Subject: [PATCH] Update default value in ReactorResourceFactory We used ConnectionProvider#elastic only to customize the name. Now that Reactor Netty's TcpResources itself uses fixed 500 by default, we update to have the same value which would apply when global resources are not used. Closes gh-24424 --- .../http/client/reactive/ReactorResourceFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java index fdfd1a78d8..8e696504b4 100644 --- a/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java +++ b/spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ public class ReactorResourceFactory implements InitializingBean, DisposableBean @Nullable private Consumer globalResourcesConsumer; - private Supplier connectionProviderSupplier = () -> ConnectionProvider.elastic("webflux"); + private Supplier connectionProviderSupplier = () -> ConnectionProvider.fixed("webflux", 500); private Supplier loopResourcesSupplier = () -> LoopResources.create("webflux-http");