* machinarium: add advice tcp usr timeout fn
The value of tcp user timeout should be computed from keepalive values.
This patch adds advice function to machinarium for formulae of
keepalive + interval + probes - 0.5
Signed-off-by: rkhapov <r.khapov@ya.ru>
* sources/config_reader.c: use advice tcp usr timeout
Now, default value of keepalive_usr_timeout will lead to
adviced value of tcp usr timeout, computed with values of keepalive.
Signed-off-by: rkhapov <r.khapov@ya.ru>
* test_advice_keepalive_usr_timeout.c: fix milliseconds
According to `man 7 tcp`, delay and interval values are presented
seconds.
But tcp user timeout are presented in milliseconds.
So formula fixed.
Signed-off-by: rkhapov <r.khapov@ya.ru>
---------
Signed-off-by: rkhapov <r.khapov@ya.ru>
Co-authored-by: rkhapov <r.khapov@ya.ru>
* all infinite loops to for(;;)
* error in word
* change kebab case in test folders in snake case
* now for test ip6 use ip6-localhost for ip4 use ip4-localhost
* malloc restyle for easier finding allocation of structures
* lint
* Add zlib and zstd to cmake
* Add zpq_stream to machinarium
--
zpq_stream is used for streaming compression/decompression of Postgres protocol
* Add zpq_stream-related functions to machinarium
* Add compression set/free/read/write logic to machinarium
* Add startup packet compression var to kiwi
* Add compression_ack backend message support for kiwi
* Add compression setup logic for main odyssey project
* apply fmt
* fix format #2
Co-authored-by: root <root@ubuntu-build-machine.ru-central1.internal>