This is an automated email from the ASF dual-hosted git repository.
Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new ea4f177067 fix:P2C LoadBalancer responseTrigger calculates wrong
(#6428)
ea4f177067 is described below
commit ea4f1770676522e0f36ffd14b3c35ae9af0c212f
Author: hengyuss <[email protected]>
AuthorDate: Thu Jul 23 10:48:21 2026 +0800
fix:P2C LoadBalancer responseTrigger calculates wrong (#6428)
Co-authored-by: Liming Deng <[email protected]>
Co-authored-by: aias00 <[email protected]>
---
.../src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-divide/src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java
b/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-divide/src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java
index 5505c8fdbb..b4947b9c16 100644
---
a/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-divide/src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java
+++
b/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-divide/src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java
@@ -173,8 +173,8 @@ public class DividePlugin extends AbstractShenyuPlugin {
private void responseTrigger(final Upstream upstream) {
long now = System.currentTimeMillis();
upstream.getInflight().decrementAndGet();
- upstream.setResponseStamp(now);
long stamp = upstream.getResponseStamp();
+ upstream.setResponseStamp(now);
long td = now - stamp;
if (td < 0) {
td = 0;