commit | a8c7e8e3a8994770ceeea239b62ca3d7bf7aa641 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jan 23 18:17:55 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jan 23 19:01:37 2020 +0100 |
tree | 0c0029010649d1137c8659ad9616e43cab241721 | |
parent | 49139cb9149c36ab7e5e13c2e3048d6590e3bca3 [diff] |
MINOR: raw-sock: always check for CO_FL_SOCK_WR_SH before sending The test was added before splice() and send() to make sure we never accidently send after a shutdown, because upper layers do not all check and it's not their job to do it. In such a case we also set errno to EPIPE so that the error can be accurately reported, e.g., in health checks.