Skip to content

Provide a flexible filter style input stream that limits read amounts#2118

Merged
cshannon merged 1 commit into
apache:mainfrom
tabish121:frame-size-limiter-stream
Jun 15, 2026
Merged

Provide a flexible filter style input stream that limits read amounts#2118
cshannon merged 1 commit into
apache:mainfrom
tabish121:frame-size-limiter-stream

Conversation

@tabish121

Copy link
Copy Markdown
Contributor

This commit supplies a utility type that acts as a filter input stream style stream wrapper than can be configured with an available bytes window which decreases as bytes are read from the stream. This allows a transport or other utility to limit what can be read based on a fixed amount such as a max frame size option.

This commit supplies a utility type that acts as a filter input stream
style stream wrapper than can be configured with an available bytes
window which decreases as bytes are read from the stream. This allows
a transport or other utility to limit what can be read based on a fixed
amount such as a max frame size option.

@cshannon cshannon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice job with the unit tests!

@mattrpav mattrpav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice add!

@cshannon cshannon merged commit 81ab887 into apache:main Jun 15, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.3.0 Jun 15, 2026
cshannon added a commit that referenced this pull request Jun 15, 2026
…#2118) (#2121)

This commit supplies a utility type that acts as a filter input stream
style stream wrapper than can be configured with an available bytes
window which decreases as bytes are read from the stream. This allows
a transport or other utility to limit what can be read based on a fixed
amount such as a max frame size option.

(cherry picked from commit 81ab887)

Co-authored-by: Timothy Bish <tabish121@gmail.com>
cshannon added a commit that referenced this pull request Jun 15, 2026
…#2118) (#2120)

This commit supplies a utility type that acts as a filter input stream
style stream wrapper than can be configured with an available bytes
window which decreases as bytes are read from the stream. This allows
a transport or other utility to limit what can be read based on a fixed
amount such as a max frame size option.

(cherry picked from commit 81ab887)

Co-authored-by: Timothy Bish <tabish121@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants