forked from logstash-plugins/logstash-input-beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import of commit 339913c by Ry Biesemeyer <yaauie@users.noreply.githu…
…b.com> acks: send sequence-0 ack for 0-window batches (logstash-plugins#479) * acks: send sequence-0 ack for 0-window batches Ensures that at least one ACK is sent in reply to each window, including those with 0-length, by emitting an empty batch when we receive a 0-window frame and sending a sequence-0 ACK in reply when we process an empty batch. This enables upstream users of the protocol to (ab)use a 0-length window frame and an _ensured_ in-protocol response to validate that we are alive. Note: 0-sequence ACKs are already used as application-level keep-alives between when the `ConnectionHandler` receives bytes and when `BeatsHandler` finishes processing a batch, and therefore should already be handled gracefully by any existing clients.
- Loading branch information
1 parent
daf456a
commit 76bb18a
Showing
4 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters