# os.zig: add ETIMEDOUT error case to read function · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/75b699b2c624d62a4b6717f00bd0856b86c3f990)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 75b699b2c624d62a4b6717f00bd0856b86c3f990

Requested commit: 75b699b2c624d62a4b6717f00bd0856b86c3f990

Commit: 75b699b2c624d62a4b6717f00bd0856b86c3f990

Tree: 5272df9ae5ae091215b763a26e32dfa83369b6a6

Author: Jonathan Marler

Committer: Andrew Kelley

## Message

```
os.zig: add ETIMEDOUT error case to read function

According to documentation ETIMEDOUT (110) is a valid error code for the read function.  I just had my long-running  (been running for about 7 weeks) network program crash because it did not handle the ETIMEDOUT error code from "read".

```

## Parents

- [9b788b765c1557a414710872fa9c11fce1f8c504](https://git.cafe/gitcafe/zig/commit/9b788b765c1557a414710872fa9c11fce1f8c504?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/75b699b2c624d62a4b6717f00bd0856b86c3f990?format=markdown)
