Commit 393d0701 authored by Michal Luczaj's avatar Michal Luczaj Committed by Paolo Abeni
Browse files

vsock/test: Add test for an unexpectedly lingering close()



There was an issue with SO_LINGER: instead of blocking until all queued
messages for the socket have been successfully sent (or the linger timeout
has been reached), close() would block until packets were handled by the
peer.

Add a test to alert on close() lingering when it should not.

Signed-off-by: default avatarMichal Luczaj <mhal@rbox.co>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250522-vsock-linger-v6-5-2ad00b0e447e@rbox.co


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 8b07b7e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment