edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
209 stars 26 forks source link

Set keep-alive on TCP sockets #330

Closed mmastrac closed 1 week ago

mmastrac commented 2 weeks ago

Migrations and other long-running operations may leave a TCP connection active but without any traffic.

To prevent the operating systems on either end from closing the connections (or any other system that monitors for activity on TCP streams to determine when they should be closed), we can set the keep-alive flag on the client.

TODO: