]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
rtt server: fix for dropped data when target has no space
authorfanoush <fanoush@gmail.com>
Mon, 2 Sep 2024 11:49:19 +0000 (13:49 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 22 Dec 2024 09:43:37 +0000 (09:43 +0000)
commitcc02bd752c13e1810b0b56593e6c5edcd179f484
tree38be2e71b3b01465ae3ce4cbaea5f0981ee4085b
parentcb3b8afe47ef791b2671f1af9415bd28dedffb6d
rtt server: fix for dropped data when target has no space

rtt_write_channel may write less data than requested,
default device buffer size for channel 0 is 16 bytes,
so currently anything larger than this is dropped.

This fix implements per connection buffer and uses the
connection->input_pending flag to retry writes.

Change-Id: I00c845fccb0248550ad0f0fd9cda7bac7976b92b
Signed-off-by: fanoush <fanoush@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8360
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/rtt_server.c