diff options
| author | comex <comexk@gmail.com> | 2023-07-01 17:28:43 -0700 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-08-15 20:59:57 -0400 |
| commit | f117a873f802a87bff3c1488d7299e73134f6728 (patch) | |
| tree | 63a837fd55b77a8bb3c0b766c31a0d8ab0642d67 /src/core/internal_network/network.h | |
| parent | ec3d07e68373f29e098acb014d8c27d48a5151ec (diff) | |
Improve behavior when sending to closed connection
- On Unix, this would previously kill the Yuzu process with SIGPIPE.
Send MSG_NOSIGNAL to opt out of this.
- Add support for the proper error code in this situation, EPIPE.
- Windows has nonstandard behavior in this situation; translate it to
the standard behavior. Kind of pointless, but isn't it nice to be
correct?
Diffstat (limited to 'src/core/internal_network/network.h')
| -rw-r--r-- | src/core/internal_network/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/internal_network/network.h b/src/core/internal_network/network.h index badcb83698..c7e20ae348 100644 --- a/src/core/internal_network/network.h +++ b/src/core/internal_network/network.h @@ -33,10 +33,12 @@ enum class Errno { BADF, INVAL, MFILE, + PIPE, NOTCONN, AGAIN, CONNREFUSED, CONNRESET, + CONNABORTED, HOSTUNREACH, NETDOWN, NETUNREACH, |
