Skip to content

fix(guest-init): avoid TSI port-forward recv/send deadlock (#446) - #460

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
fix/446-port-forward-tsi-poll-deadlock
Sep 17, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
fix/446-port-forward-tsi-poll-deadlock

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

Test plan

  • cargo check -p a3s-box-guest-init
  • Scale fixture from the issue: OPEN, wait OPEN_ACK, then separate DATA write receives HTTP response
  • POST /v1/scale/web reaches ready_replicas >= 1 on default TSI
  • Two-request keep-alive through the same relayed connection

Made with Cursor

ZhiXiao-Lin and others added 2 commits September 17, 2026 07:29
Wait with poll(POLLIN) and non-blocking read on the guest target reader,
and write FRAME_DATA outside the stream-map mutex so OPEN then DATA
relays complete under libkrun TSI.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 320dbe9 into main Sep 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant