aboutgitcodebugslistschat
path: root/test/tcp
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-01-27 19:39:53 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-01-27 12:40:29 +0100
commite3f70c05bad90368a1a89bf31a9015125232b9ae (patch)
tree2c0f465980c1450702a02e5b1108ef453164962e /test/tcp
parentcce94e92fb3d2a90730c125f2bad32c9ed51da3f (diff)
downloadpasst-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar.gz
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar.bz2
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar.lz
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar.xz
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.tar.zst
passt-e3f70c05bad90368a1a89bf31a9015125232b9ae.zip
tcp_splice: Force TCP RST on abnormal close conditions
When we need to prematurely close a spliced connection, we use: conn_flag(conn, CLOSING); This does destroy the flow, but does so in the same way as a clean close from both ends. That's not what we want in error conditions, or when one side of the flow has signalled an abnormal exit with an EPOLLHUP event. Replace all places where we close the connection - except for the happy path close - with calls to a new tcp_splice_rst() function, which forces the sockets to emit a TCP RST on each side. Link: https://bugs.passt.top/show_bug.cgi?id=193 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp')
0 files changed, 0 insertions, 0 deletions