This is an automated email from the ASF dual-hosted git repository.
dengliming 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 b5c18d0279 [ISSUE-6523] Add break after successful long polling to
avoid unnecessary retries (#6901)
b5c18d0279 is described below
commit b5c18d02799f2ecc0f5bfa822ff0e03a9fe3bfd8
Author: yali <[email protected]>
AuthorDate: Fri Aug 14 10:26:16 2026 +0800
[ISSUE-6523] Add break after successful long polling to avoid unnecessary
retries (#6901)
Co-authored-by: zxving <zxving@localhost>
---
.../main/java/org/apache/shenyu/sync/data/http/HttpSyncDataService.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/HttpSyncDataService.java
b/shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/HttpSyncDataService.java
index b2d46461f0..ec1e36cd50 100644
---
a/shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/HttpSyncDataService.java
+++
b/shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/HttpSyncDataService.java
@@ -281,6 +281,7 @@ public class HttpSyncDataService implements SyncDataService
{
try {
//do long polling.
doLongPolling(server);
+ break;
} catch (Exception e) {
// print warnning LOG.
if (time < retryTimes) {