MINOR: rawsock: set connection error codes when returning from recv/send/splice
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Nov 2024 16:57:43 +0000 (17:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 18:04:38 +0000 (19:04 +0100)
commit3b36ac57262683fe2cb9156c291e3b26094e7e8c
treeccc54d1813b77ec19f7338cb43f102ae3cbfb03c
parent6200536920ed893a89c416e1347a4545f82153e9
MINOR: rawsock: set connection error codes when returning from recv/send/splice

For a long time the errno values returned by recv/send/splice() were not
translated to connection error codes. There are not that many eligible
and having them would help a lot when debugging some complex issues where
logs disagree with network traces. Let's add them now.

(cherry picked from commit 822d82caf4165f0f6da681737c7e3db17d01f599)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/raw_sock.c