Salman
Salman

Reputation: 197

Configure connection leasing strategy (fifo/lifo) for httpclient Spring Cloud Gateway

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

Answers (1)

Violeta Georgieva
Violeta Georgieva

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

Related Questions