Skip to content

checklocks: guard gonet connection state - #14299

Closed
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-gonet-deadlines
Closed

checklocks: guard gonet connection state#14299
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-gonet-deadlines

Conversation

@tamird

@tamird tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Guard deadline timers and cancellation channels with the deadline mutex, and check the caller-held contract on setDeadline. Guard the TCP read buffer with readMu while preserving the readMu-before-deadline-mutex lock order.

Construct deadline state as a fresh value so initialization is visible to checklocks. Timer callbacks retain their captured cancellation channel, preserving deadline reset behavior without copying a used mutex.

Assisted-by: Codex

Guard deadline timers and cancellation channels with the deadline mutex,
and check the caller-held contract on setDeadline. Guard the TCP read
buffer with readMu while preserving the readMu-before-deadline-mutex
lock order.

Construct deadline state as a fresh value so initialization is visible
to checklocks. Timer callbacks retain their captured cancellation
channel, preserving deadline reset behavior without copying a used
mutex.

Assisted-by: Codex
@tamird

tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

r? @nybidari Could you review deadline timer/channel ownership and TCP read-buffer lock order?

Focused local Bazel checks passed. Upstream checks have not reported yet.

cc @konstantin-s-bogom

Assisted-by: Codex

@tamird

tamird commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of consolidated #14338. The expanded replacement commits are prepared locally; the replacement branch has not been pushed yet.

Assisted-by: Codex

@tamird tamird closed this Aug 23, 2026
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.

1 participant