Skip to content

Commit 88b3844

Browse files
committed
Fix default value in ReactorNettyClientRequestFactory#setExchangeTimeout
Closes gh-32419
1 parent 80f3be6 commit 88b3844

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientRequestFactory.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -175,7 +175,7 @@ public void setReadTimeout(Duration readTimeout) {
175175

176176
/**
177177
* Set the timeout for the HTTP exchange in milliseconds.
178-
* <p>Default is 30 seconds.
178+
* <p>Default is 5 seconds.
179179
*/
180180
public void setExchangeTimeout(long exchangeTimeout) {
181181
Assert.isTrue(exchangeTimeout > 0, "Timeout must be a positive value");
@@ -184,7 +184,7 @@ public void setExchangeTimeout(long exchangeTimeout) {
184184

185185
/**
186186
* Set the timeout for the HTTP exchange.
187-
* <p>Default is 30 seconds.
187+
* <p>Default is 5 seconds.
188188
*/
189189
public void setExchangeTimeout(Duration exchangeTimeout) {
190190
Assert.notNull(exchangeTimeout, "ExchangeTimeout must not be null");

0 commit comments

Comments
 (0)