Skip to content

UCS/ASYNC: Filter stale missed fd events#11458

Open
gleon99 wants to merge 1 commit into
openucx:masterfrom
gleon99:codex/issue-11455-tcp-sockcm-async
Open

UCS/ASYNC: Filter stale missed fd events#11458
gleon99 wants to merge 1 commit into
openucx:masterfrom
gleon99:codex/issue-11455-tcp-sockcm-async

Conversation

@gleon99
Copy link
Copy Markdown
Contributor

@gleon99 gleon99 commented May 14, 2026

What?

A missed fd event can be queued while the async context is blocked. Recheck events against the current mask before invoking the callback prevents tcp_sockcm from receiving a stale EVWRITE after it already
dropped EVWRITE and entered disconnecting state.

Why?

Fixes #11455

iyastreb
iyastreb previously approved these changes May 18, 2026
Comment thread test/gtest/ucs/test_async.cc Outdated
@gleon99 gleon99 force-pushed the codex/issue-11455-tcp-sockcm-async branch from 91d5d1a to f25341a Compare May 22, 2026 08:28
@gleon99 gleon99 requested a review from iyastreb May 22, 2026 08:43
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.

tcp_sockcm: assertion !(cep->state & UCT_TCP_SOCKCM_EP_DISCONNECTING) in uct_tcp_sockcm_ep_send when missed-event queue replays EVWRITE after disconnect

2 participants