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

[smf] add timeouts for Diameter (Gx/Gy) messages #70

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

spencersevilla
Copy link
Collaborator

Currently if a Diameter message does not receive a response, the SMF state machine effectively deadlocks while waiting for a response. This PR fixes this by implementing two timers (one for Gx and another for Gy) that allow the code to successfully error-out and recover into a workable state. I do note that Diameter is usually run over a reliable transport protocol (TCP/SCTP) which makes drops somewhat uncommon, but they are still possible in various contexts (e.g. the PCRF deadlocks or crashes, MTU issues across the network, etc) and this is just best-practice in terms of defensive codewriting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant