Skip to content

[ISSUE-6523] Add break after successful long polling to avoid unnecessary retries - #6901

Open
YALI58 wants to merge 1 commit into
apache:masterfrom
YALI58:fix/issue-6523-http-long-polling-break
Open

[ISSUE-6523] Add break after successful long polling to avoid unnecessary retries#6901
YALI58 wants to merge 1 commit into
apache:masterfrom
YALI58:fix/issue-6523-http-long-polling-break

Conversation

@YALI58

@YALI58 YALI58 commented Aug 8, 2026

Copy link
Copy Markdown

Bug Description

HttpLongPollingTask.run() retries failed long-poll requests with a for (time = 1; time <= retryTimes; time++) loop, but it does not leave that retry loop after a successful doLongPolling(server) call. A single outer loop can therefore perform 10 successful long-poll requests back-to-back instead of one.

Fix

Added break after doLongPolling(server) succeeds so the retry loop exits on success and only continues on failure.

Closes #6523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] HTTP sync long polling repeats successful polls ten times per loop

1 participant