# Reset receive timeout only on reads from websocket connection, not writes · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3dc100adfbdb87137d2aeebdee2149f8cb5f2bde)

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

Visibility: public

Requested revision: 3dc100adfbdb87137d2aeebdee2149f8cb5f2bde

Requested commit: 3dc100adfbdb87137d2aeebdee2149f8cb5f2bde

Commit: 3dc100adfbdb87137d2aeebdee2149f8cb5f2bde

Tree: 7f0242b78cfdddf871f5850efc404b4e461a3d6d

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Reset receive timeout only on reads from websocket connection, not writes

Also, increase the receive timeout to 30 seconds. We'll still respond immediately
to explicit disconnection, but when there are temporary network blips that
delay pings, we think we should err on the side of keeping the connection
alive. This is in response to a false positive 'host disconnected' state
that we observed when pairing today, while the host (Keith) still clearly
had a working internet connection, because we were screen sharing.

Co-Authored-By: Keith Simmons <keith@zed.dev>

```

## Parents

- [508c4df79b33a2fe91c1226b7eeeeb930b396f1a](https://git.cafe/gitcafe/zed/commit/508c4df79b33a2fe91c1226b7eeeeb930b396f1a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3dc100adfbdb87137d2aeebdee2149f8cb5f2bde?format=markdown)
