edgedb / edgedb-rust

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

Set keep-alive on TCP sockets #330

Closed mmastrac closed 5 months ago

mmastrac commented 5 months 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: