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

Offload multicast operations to the EventLoop if not called from with… #12584

Merged
merged 1 commit into from Jul 9, 2022

Conversation

normanmaurer
Copy link
Member

…in an EventLoop thread

Motivation:

LinuxSocket is not thread-safe and so we need to ensure we only access it from without the EventLoop thread.

Modifications:

Change EpollDatagramChannel to always dispatch to the EventLoop if not called from the EventLoop thread

Result:

No more threading issues

@normanmaurer normanmaurer added this to the 4.1.79.Final milestone Jul 8, 2022
@normanmaurer
Copy link
Member Author

Found this while working on #12583

…in an EventLoop thread

Motivation:

LinuxSocket is not thread-safe and so we need to ensure we only access it from without the EventLoop thread.

Modifications:

Change EpollDatagramChannel to always dispatch to the EventLoop if not called from the EventLoop thread

Result:

No more threading issues
@normanmaurer
Copy link
Member Author

Let me merge this so we can include it in the next release

@normanmaurer normanmaurer merged commit 15812da into 4.1 Jul 9, 2022
@normanmaurer normanmaurer deleted the eventloop_offload branch July 9, 2022 07:51
normanmaurer added a commit that referenced this pull request Jul 9, 2022
…in an EventLoop thread (#12584)

Motivation:

LinuxSocket is not thread-safe and so we need to ensure we only access it from without the EventLoop thread.

Modifications:

Change EpollDatagramChannel to always dispatch to the EventLoop if not called from the EventLoop thread

Result:

No more threading issues
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.

None yet

1 participant