Skip to content

Capture RowStreamImpl endHandler in a synchronized block#1581

Merged
tsegismont merged 2 commits into
eclipse-vertx:masterfrom
tsegismont:rowstream-safety
Nov 21, 2025
Merged

Capture RowStreamImpl endHandler in a synchronized block#1581
tsegismont merged 2 commits into
eclipse-vertx:masterfrom
tsegismont:rowstream-safety

Conversation

@tsegismont
Copy link
Copy Markdown
Member

@tsegismont tsegismont commented Nov 21, 2025

Follows-up on #1577

Also invoke the handler out the synchronized block (safer to not hold a lock while invoking user code).

Follows-up on eclipse-vertx#1577

The endHandler was no longer captured safely after changes in the previous PR.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
It's safer not to hold a lock on the stream instance while invoking user code.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont added this to the 5.1.0 milestone Nov 21, 2025
@tsegismont tsegismont merged commit d1a5928 into eclipse-vertx:master Nov 21, 2025
18 checks passed
@tsegismont tsegismont deleted the rowstream-safety branch November 24, 2025 16:05
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.

1 participant