-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filebeat][streaming] - Added more retry codes to websocket retry logic #42218
[filebeat][streaming] - Added more retry codes to websocket retry logic #42218
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
This pull request doesn't have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼 Just need a clarification.
In CloseMessageTooBig
case, is the message responsible for the error discarded or does the retry makes attempt to read same message with increased size limit?
@kcreddy, the gorilla websocket does not impose any limits on the frame size, these limits are only imposed by the websocket protocol so this can't be increased. Since the messages are streamed they are sent in individual frames. There is no such hard limit to the message size. |
Type of change
Proposed commit message
Some valid websocket retry codes were missing from the initial implementation, which could lead to retries not occurring in some scenarios, hence added some more codes to retry on. There is a table below that shows what codes are currently retryable and why.
Table Of Reasons
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs