-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
diameter: modify diameter_traffic:pick_peer/4 to be able to handle requests of type: #diameter_packet{} #8399
diameter: modify diameter_traffic:pick_peer/4 to be able to handle requests of type: #diameter_packet{} #8399
Conversation
CT Test Results 2 files 34 suites 14m 3s ⏱️ Results for commit 816a68b. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
This was based on maint. Was this because you wanted this to be a 26-patch? Or is ok OK to rebase on master? |
preferably 26-patch |
Will be released in 27.0 (merged to master) and eventually in 26.2.6 |
The unit tests passes a So, either the documentation is wrong, then a fix for that should be included in this PR as well, or the documentation is correct and passing a diameter_packet record is not permitted in the first place and no change would be needed. |
For master (27) that argument is now documented as 'any()'. |
That seems to be an effect of using the new documentation tool chain and not necessarily a conscious decision to accept any term as message. It seems the documentation even lost every description of what is acceptable as To me it actually looks like as if changing the documentation of the In any case, if indeed the intended type of the |
I looked at the 26 code and according to the diameter:call/4 spec, the third argument |
In case of requests in the format of #diameter_packet{}, pick_peer functionality is working incorrectly as the current implementation cannot find Destination-Host in the request. Added a clause to handle #diameter_packet.