Skip to content

Commit 7c2b15d

Browse files
committed
Add connection-broken error code
1 parent bef9091 commit 7c2b15d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

proposals/sockets/wit-0.3.0-draft/types.wit

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ interface types {
7070
///
7171
/// POSIX equivalent: ECONNREFUSED
7272
connection-refused,
73-
73+
74+
/// A write failed because the connection was broken.
75+
///
76+
/// POSIX equivalent: EPIPE
77+
connection-broken,
78+
7479
/// The connection was reset.
7580
///
7681
/// POSIX equivalent: ECONNRESET
@@ -349,6 +354,7 @@ interface types {
349354
/// # Typical errors
350355
/// - `invalid-state`: The socket is not in the `connected` state. (ENOTCONN)
351356
/// - `invalid-state`: `send` has already been called on this socket.
357+
/// - `connection-broken`: The connection is not writable anymore. (EPIPE, ECONNABORTED on Windows)
352358
/// - `connection-reset`: The connection was reset. (ECONNRESET)
353359
/// - `remote-unreachable`: The remote address is not reachable. (EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN, ENONET)
354360
///

0 commit comments

Comments
 (0)