Reputation: 197
Spring Cloud Gateway provides a way to configure httpclient property like
spring:
application:
cloud:
gateway:
httpclient:
connect-timeout: 1000
response-timeout: 5s
pool:
maxIdleTime: 15s
I don't see any property for connection leasing strategy through which I can change it to lifo (default is fifo).
Thank you
Upvotes: 0
Views: 1588
Reputation: 2292
Reactor Netty provides system property reactor.netty.pool.leasingStrategy
that can be used for changing this setting. See more in the Reference Documentation.
Spring Gateway gives you also the possibility to change the HttpClient
via @Bean
.
Upvotes: 1