Commit 562bc77
committed
GH-2907: Use
Fixes: #2907
Issue link: #2907
The current hard-coded `5 seconds` is not enough in real applications under heavy load
* Fix `CachingConnectionFactory` to use `getCloseTimeout()` for `publisherCallbackChannel.waitForConfirms()`
which is `30 seconds` by default, but can be modified via `CachingConnectionFactory.setCloseTimeout()`
**Auto-cherry-pick to `3.1.x`**CF.closeTimeout for confirms wait1 parent d910a8b commit 562bc77
File tree
2 files changed
+6
-7
lines changed- spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection
2 files changed
+6
-7
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
1091 | | - | |
1092 | 1090 | | |
1093 | 1091 | | |
1094 | 1092 | | |
| |||
1302 | 1300 | | |
1303 | 1301 | | |
1304 | 1302 | | |
1305 | | - | |
| 1303 | + | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | 1306 | | |
| |||
1426 | 1424 | | |
1427 | 1425 | | |
1428 | 1426 | | |
1429 | | - | |
| 1427 | + | |
1430 | 1428 | | |
1431 | 1429 | | |
1432 | | - | |
| 1430 | + | |
1433 | 1431 | | |
1434 | 1432 | | |
1435 | 1433 | | |
| |||
0 commit comments