MeiliES icon indicating copy to clipboard operation
MeiliES copied to clipboard

WARN - set_keepalive error; Invalid argument (os error 22)

Open WhiskeyTuesday opened this issue 6 years ago • 1 comments
trafficstars

Whenever I use the CLI I get the warning WARN - set_keepalive error; Invalid argument (os error 22)

I'm only testing out the program right now so this is on a laptop running Ubuntu 18.04.3 LTS, kernal 5.0.0-25-generic.

WhiskeyTuesday avatar Sep 07 '19 02:09 WhiskeyTuesday

The keepalive socket parameter is a feature that allows the OS to automatically send "pings" in the socket to keep the socket open. You can have more information on this setting in the Tokio documentation.

You get this warning because setting this parameter is probably not available on your Ubuntu version. It works on mac os but not on CentOS for example.

https://github.com/meilisearch/MeiliES/blob/843728a81f192483e4e23f8a4838855875626920/meilies-client/src/lib.rs#L29-L31

Kerollmops avatar Sep 07 '19 08:09 Kerollmops