Skip to content
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

upstream: remove an unnecessary event.data assignment #2309

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

fujimotos
Copy link
Member

When keepalive mode is enabled, flb_upstream_release() attempts to
overwrite event.data with a custom data. This assignment is unsafe,
since that field is used to hold internal metadata within mk_core.

Nor this assignment is required. In fact, anyone including
cb_upstream_conn_ka_dropped() does not rely on that bit of data.

This patch removes it, and fixes the memory crash issue on Windows.

Signed-off-by: Fujimoto Seiji [email protected]

When keepalive mode is enabled, flb_upstream_release() attempts to
overwrite event.data with a custom data. This assignment is unsafe,
since that field is used to hold internal metadata within mk_core.

Nor this assignment is required. In fact, anyone including
`cb_upstream_conn_ka_dropped()` does not rely on that bit of data.

This patch removes it, and fixes the memory crash issue on Windows.

Signed-off-by: Fujimoto Seiji <[email protected]>
@edsiper edsiper merged commit c3faa1b into fluent:master Jun 30, 2020
@edsiper
Copy link
Member

edsiper commented Jun 30, 2020

thanks

@fujimotos fujimotos deleted the sf/win32-ka branch July 3, 2020 07:36
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.

2 participants