fix: use NOTIFICATION (type 2) for draw_frame RPC
Validate and Test / validate-patches (push) Failing after 12s
Validate and Test / validate-patches (push) Failing after 12s
Viz was sending REQUEST (type 0) but never reading responses. Router response buffer filled up, blocking all subsequent RPCs. NOTIFICATION (type 2) expects no response — no buffer buildup.
This commit is contained in:
@@ -135,7 +135,7 @@ def main():
|
||||
params = render(active_notes)
|
||||
if params != last_sent_params:
|
||||
msg_id = (msg_id + 1) % 65535
|
||||
pending_bytes = packer.pack([0, msg_id, "draw_frame", params])
|
||||
pending_bytes = packer.pack([2, msg_id, "draw_frame", params])
|
||||
last_sent_params = params
|
||||
|
||||
# Try to send pending frame — no POLLOUT dependency
|
||||
@@ -155,7 +155,7 @@ def main():
|
||||
fps_sample_frames += 1
|
||||
if last_sent_params is not None and pending_bytes is None:
|
||||
msg_id = (msg_id + 1) % 65535
|
||||
refresh_bytes = packer.pack([0, msg_id, "draw_frame", last_sent_params])
|
||||
refresh_bytes = packer.pack([2, msg_id, "draw_frame", last_sent_params])
|
||||
router, ok = try_send(router, refresh_bytes)
|
||||
if ok:
|
||||
frames_sent += 1
|
||||
|
||||
Reference in New Issue
Block a user