Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stopping PFCP timers #83

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Fix stopping PFCP timers #83

merged 1 commit into from
Feb 22, 2021

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Feb 18, 2021

This is a "resurrection" of #7.

After we've reverted #7 and replaced it with #12, we first had the problem resurface in #44, which we mitigated to a degree by #49, but then we were hit by #80.

Fixes #80.

@@ -491,7 +491,7 @@ restart_response_timer (pfcp_msg_t * msg)
upf_debug ("Msg Seq No: %u, idx %u\n", msg->seq_no, id);

if (msg->timer != ~0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also drop the if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ivan4th ivan4th changed the title [testing] Fix stopping PFCP timers Fix stopping PFCP timers Feb 19, 2021
There was a corner case of timers "firing" after being stopped because
their "user handles" being already collected into the 'expires' vector
in pfcp_process(). This caused msg_pool corruption.
Copy link
Contributor

@sergeymatov sergeymatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sergeymatov sergeymatov merged commit e8e11f2 into master Feb 22, 2021
@sergeymatov sergeymatov deleted the fix/stopping-pfcp-timers-1 branch February 22, 2021 13:00
@ivan4th ivan4th added the fix label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Another crash due to PFCP response timers issue
3 participants