]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vsock/test: Add test for an unexpectedly lingering close()
authorMichal Luczaj <mhal@rbox.co>
Wed, 21 May 2025 23:18:25 +0000 (01:18 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 May 2025 09:05:22 +0000 (11:05 +0200)
commit393d070135ad01f954ca8289c3ee134950e2d0c8
tree188c3a612cd623369d2a216197912cda4c7a8555
parent8b07b7e5c253981ccbab2f2506e07f5ef1082181
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: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250522-vsock-linger-v6-5-2ad00b0e447e@rbox.co
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/vsock_test.c