mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
This patch has been cherry-picked from the Firecracker tree. The reference commit is 2da612a9cdce85c91fb54ab22d950ec6ccc93b27. Fixed a bug introduced by a271d08f0b1ba0ee82761cd49244b6a8017bcede, whereby the flow control accouting would be off by a few bytes, for host-initiated connections. The connection ack message ("OK <port_num><CR>") was accounted for as data sent by the guest, so its length was substracted from the total amount of data the guest was allowed to send. This commit changes the way this ack message is sent, so that it bypasses flow control accouting. Signed-off-by: Dan Horobeanu <dhr@amazon.com> Signed-off-by: Gabriel Ionescu <gbi@amazon.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>