commit | 24c1d50b2ec83f4cf0c44350b358953c44b037fd | [log] [tgz] |
---|---|---|
author | Hunter Freyer <hjfreyer@google.com> | Mon Mar 24 16:21:18 2025 -0700 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 24 16:21:18 2025 -0700 |
tree | 87f2c3c694d50e1e0fb8698901bcb8be5304c0a2 | |
parent | c53b0a219eccc444727e83faa56006d7ea27c172 [diff] |
[fuchsia_async] Document socket PEER_CLOSED behavior. Adds comments to emphasize the fact that `Socket::read*` functions return `Ok(0)` when their peer has closed. This is very counterintuitive from a Fuchsia standpoint, but is the behavior that the relevant Rust traits specify. Hopefully the comments will save some poor soul from the fate that befell me today. Change-Id: I4833326c66e26fcb6f00794559f87a1afbdaf6a8 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1235466 Reviewed-by: Adam Perry <adamperry@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Hunter Freyer <hjfreyer@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.