blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
658 stars 144 forks source link

keepalive: allow setting of probe interval & probe count #310

Closed fulara closed 2 years ago

fulara commented 2 years ago

Currently the library only allows setting of the keepalive idle time I think that is driven by the fact the socket2 only exposes this code easily - that is without the all feature flag.

Well, it's kinda odd that they do only that, so I have raised a PR there: https://github.com/rust-lang/socket2/pull/294 but I am not sure if that will be merged and when.

In the meantime we can easily add the support of that into this crate, just by using more roo API.

blackbeam commented 2 years ago

Thanks. I'll merge it as it is. Windows support may be added as a separate PR.