2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-08-27 17:16:42 +00:00
Files
confluent/confluent_client/bin
Markus Hilger 95d6c96363 Relay console keystrokes from a single ordered consumer
nodeconsole spawned a task per input byte from the stdin reader callback
and kept no reference to it.  Two of those tasks overlap as soon as one
parks in relay_keypresses waiting on the VNC connection, so keystrokes
can reach the node out of order and the escape sequence state (buffer,
inputcontext, modkeys) is mutated by more than one task at a time.  With
the first keystroke relaying slowly, typing abcdef arrives as bcdefa.

Those tasks were also unreferenced, which asyncio documents as
collectable while still pending, so a keypress could be dropped.

Queue the bytes in the reader callback and process them from one
long-lived task instead.  Keep a reference to the watch_input task as
well, since collecting that one takes the whole input handler with it.
2026-08-10 23:17:57 +02:00
..
2025-03-24 16:28:36 -04:00
2026-08-10 05:32:00 +02:00
2021-06-08 09:12:33 -04:00
2020-02-19 14:36:10 -05:00
2026-08-10 05:32:00 +02:00
2025-03-12 12:51:42 -04:00
2021-09-13 14:09:07 -04:00
2025-05-20 10:39:57 -04:00
2024-05-29 12:23:05 -04:00
2025-05-20 10:39:57 -04:00
2026-06-04 08:04:39 -04:00
2021-03-19 11:49:46 +02:00
2025-05-30 15:48:32 -04:00