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

downstream: pr 6906 backport #6909

Merged
merged 10 commits into from
Feb 24, 2023
Merged

downstream: pr 6906 backport #6909

merged 10 commits into from
Feb 24, 2023

Conversation

leonardo-albertovich
Copy link
Collaborator

This is a backport of PR #6906.

input: additionally, changed the stream parameter type to make the
client code simpler.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
Removed a stored reference to the main event loop in favor of obtaining
the current event loop pointer from the TLS which is required to prevent
client sockets from being registered in the main thread when the plugin
instance is running in its own thread.

Additionally, a call to flb_input_downstream_set was added in order to
enable thread safety and move the downstream to the plugin instance
downstream list if needed in order to ensure that the downstream is
processed by the timeout callback runing in the plugins thread instead
of the main thread.

Signed-off-by: Leonardo Alminana <leonardo@calyptia.com>
@leonardo-albertovich leonardo-albertovich temporarily deployed to pr February 24, 2023 11:17 — with GitHub Actions Inactive
@leonardo-albertovich leonardo-albertovich temporarily deployed to pr February 24, 2023 11:17 — with GitHub Actions Inactive
@lecaros lecaros added this to the Fluent Bit 2.0.10 milestone Feb 24, 2023
@edsiper edsiper merged commit 80ab2d7 into 2.0 Feb 24, 2023
@edsiper edsiper deleted the leonardo-2.0-pr-6906-backport branch February 24, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants