Fix default value in ReactorNettyClientRequestFactory#setExchangeTimeout
Closes gh-32419
This commit is contained in:
parent
80f3be6577
commit
88b3844d9b
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2023 the original author or authors.
|
* Copyright 2002-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -175,7 +175,7 @@ public class ReactorNettyClientRequestFactory implements ClientHttpRequestFactor
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the timeout for the HTTP exchange in milliseconds.
|
* Set the timeout for the HTTP exchange in milliseconds.
|
||||||
* <p>Default is 30 seconds.
|
* <p>Default is 5 seconds.
|
||||||
*/
|
*/
|
||||||
public void setExchangeTimeout(long exchangeTimeout) {
|
public void setExchangeTimeout(long exchangeTimeout) {
|
||||||
Assert.isTrue(exchangeTimeout > 0, "Timeout must be a positive value");
|
Assert.isTrue(exchangeTimeout > 0, "Timeout must be a positive value");
|
||||||
|
@ -184,7 +184,7 @@ public class ReactorNettyClientRequestFactory implements ClientHttpRequestFactor
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the timeout for the HTTP exchange.
|
* Set the timeout for the HTTP exchange.
|
||||||
* <p>Default is 30 seconds.
|
* <p>Default is 5 seconds.
|
||||||
*/
|
*/
|
||||||
public void setExchangeTimeout(Duration exchangeTimeout) {
|
public void setExchangeTimeout(Duration exchangeTimeout) {
|
||||||
Assert.notNull(exchangeTimeout, "ExchangeTimeout must not be null");
|
Assert.notNull(exchangeTimeout, "ExchangeTimeout must not be null");
|
||||||
|
|
Loading…
Reference in New Issue