diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-02-28 22:25:14 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-02-29 09:48:11 +0100 |
commit | 4c2d923b121329b5366d0053d6b2336ae71bed60 (patch) | |
tree | 087321647ebd660bf0ddf0bc80f5367bf53ec2fb /tcp_splice.h | |
parent | f0e2a6b8c984f7633f38d4ab2e46666c6d969962 (diff) | |
download | passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar.gz passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar.bz2 passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar.lz passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar.xz passt-4c2d923b121329b5366d0053d6b2336ae71bed60.tar.zst passt-4c2d923b121329b5366d0053d6b2336ae71bed60.zip |
tcp_splice: Improve error reporting on connect path
This makes a number of changes to improve error reporting while
connecting a new spliced socket:
* We use flow_err() and similar functions so all messages include info
on which specific flow was affected
* We use strerror() to interpret raw error values
* We now report errors on connection (at "trace" level, since this would
allow spamming the logs)
* We also look up and report some details on EPOLLERR events, which can
include connection errors, since we use a non-blocking connect(). Again
we use "trace" level since this can spam the logs.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.h')
0 files changed, 0 insertions, 0 deletions