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

Do not monitor writable events for ws server #2646

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

Kailai-Wang
Copy link
Collaborator

Context

As topic, otherwise we are trapped in an endless loop of writable readiness, which causes 100% cpu.

So IMO we shouldn't monitor the writable event as there's no case that server proactively writes something after the handshake (and even if there is we don't want to handle it)

This PR adds the deregister call too.

This PR might fix the multi-worker CI failure - or at least a remedy for it.

@Kailai-Wang Kailai-Wang requested review from kziemianek, felixfaisal and a team April 9, 2024 23:01
@Kailai-Wang Kailai-Wang self-assigned this Apr 9, 2024
Copy link
Member

@felixfaisal felixfaisal left a comment

Choose a reason for hiding this comment

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

Thanks @Kailai-Wang , It looks good to me.

@Kailai-Wang Kailai-Wang merged commit 4a9dd4b into dev Apr 10, 2024
25 of 26 checks passed
@Kailai-Wang Kailai-Wang deleted the do-not-monitor-writable branch April 10, 2024 06:01
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

3 participants