Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Fixed: UPF leaks PfcpXact if PFCP Session Report Response is not processed #45

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

shugo-h
Copy link
Contributor

@shugo-h shugo-h commented Dec 1, 2021

  • Activate timerResponse of local PfcpXact
  • Remove unused code from PfcpXactRemoteCreate()

This PR is regarding with Issue#289.

…essed

- Activate timerResponse of local PfcpXact
- Remove unused code from `PfcpXactRemoteCreate()`
@@ -444,6 +442,10 @@ Status PfcpXactUpdateRx(PfcpXact *xact, uint8_t type) {
"local " : "remote", xact->step, type,
GetIP(&xact->gnode->sock->remoteAddr),
GetPort(&xact->gnode->sock->remoteAddr));

Copy link
Contributor

Choose a reason for hiding this comment

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

You moved TimerStop into PFCP_XACT_FINAL_STAGE of case PFCP_LOCAL_ORIGINATOR.
In this case,
If the pfcp xact belongs PFCP_REMOTE_ORIGINATOR, I suppose its timer won't be stopped correctly.

If my assumption is wrong, please let me know.

Tks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for late reply.

xact->timerResponse exists only when xact->origin is PFCP_LOCAL_ORIGINATOR but does not exist when PFCP_REMOTE_ORIGINATOR.

TimerStop() should be moved here, because otherwise xact->timerResponse will be stopped right after it is started.

Thanks,

@ianchen0119
Copy link
Contributor

Hi @shugo-h
I leave a comment on your modification.
Please help to check on this when you feel free.

Thank you!

@free5gc-org free5gc-org merged commit 526d74d into free5gc:main Dec 10, 2021
@shugo-h shugo-h deleted the feature/pfcp-xact-leak branch December 10, 2021 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants