Mellanox / libxlio

Other
32 stars 18 forks source link

issue: 3855390 Fixing adding TCP timer twice warning #130

Closed AlexanderGrissik closed 5 months ago

AlexanderGrissik commented 5 months ago

Description

In heavy CPS scenarios a socket may go to TIME-WAIT state and be reused before first TCP timer registration is performed by internal-thread.

What
  1. Setting timer_registered=true while posting the event prevents the second attemp to try and post the event again.
  2. Adding sanity check in add_new_timer that verifies that the socket is not already in the timer map.

Change type

What kind of change does this PR introduce?

Check list

galnoam commented 5 months ago

@AlexanderGrissik, should be merged in this version?