danielealbano / cachegrand

cachegrand - a modern data ingestion, processing and serving platform built for today's hardware
BSD 3-Clause "New" or "Revised" License
975 stars 34 forks source link

Honor socket keepalive settings #180

Closed danielealbano closed 2 years ago

danielealbano commented 2 years ago

This PR implements 3 new network io functions to set the keepalive idel, interval and count and update the mechanism used to enable / disable the keepalive to:

The PR closes #84

codecov[bot] commented 2 years ago

Codecov Report

Merging #180 (9a8e924) into main (6d895df) will decrease coverage by 0.19%. The diff coverage is 44.44%.

@@            Coverage Diff             @@
##             main     #180      +/-   ##
==========================================
- Coverage   79.08%   78.89%   -0.19%     
==========================================
  Files         105      105              
  Lines        6749     6765      +16     
==========================================
  Hits         5337     5337              
- Misses       1412     1428      +16     
Impacted Files Coverage Δ
src/network/channel/network_channel.c 92.54% <ø> (-0.11%) :arrow_down:
src/worker/network/worker_network_iouring_op.c 63.86% <9.09%> (-3.89%) :arrow_down:
src/network/io/network_io_common.c 94.30% <100.00%> (+0.22%) :arrow_up:
src/slab_allocator.c 94.87% <0.00%> (-2.56%) :arrow_down:
src/network/network.c 78.52% <0.00%> (-1.48%) :arrow_down:
src/spinlock.c 96.15% <0.00%> (+7.69%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.