-
Notifications
You must be signed in to change notification settings - Fork 775
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
[18002] Internal refactor on port handling #3440
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MiguelCompany
force-pushed
the
bugfix/use-lowest-possible-port
branch
from
March 12, 2024 16:11
41213c0
to
6e69211
Compare
MiguelCompany
added
needs-review
PR that is ready to be reviewed
and removed
needs rebase
labels
Mar 12, 2024
@richiprosima Please test this |
MiguelCompany
changed the title
Internal refactor on port handling
[18002] Internal refactor on port handling
Mar 13, 2024
MiguelCompany
force-pushed
the
bugfix/use-lowest-possible-port
branch
from
March 13, 2024 07:22
6e69211
to
f8f77bc
Compare
MiguelCompany
force-pushed
the
bugfix/use-lowest-possible-port
branch
from
April 3, 2024 13:04
f8f77bc
to
f4a3b32
Compare
EduPonz
suggested changes
Apr 4, 2024
EduPonz
previously approved these changes
Apr 4, 2024
@richiprosima please test this |
|
EduPonz
added
to-do
and removed
needs-review
PR that is ready to be reviewed
ci-pending
PR which CI is running
labels
Apr 10, 2024
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
MiguelCompany
added
needs-review
PR that is ready to be reviewed
and removed
to-do
labels
Apr 10, 2024
I rebased this, and fixed that test in 25db48b |
MiguelCompany
force-pushed
the
bugfix/use-lowest-possible-port
branch
from
April 11, 2024 09:18
9dc7030
to
a6547c5
Compare
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
MiguelCompany
force-pushed
the
bugfix/use-lowest-possible-port
branch
from
April 11, 2024 09:21
a6547c5
to
2222c34
Compare
EduPonz
approved these changes
Apr 17, 2024
EduPonz
added
ready-to-merge
Ready to be merged. CI and changes have been reviewed and approved.
and removed
needs-review
PR that is ready to be reviewed
ci-pending
PR which CI is running
labels
Apr 17, 2024
@Mergifyio backport 2.13.x 2.10.x 2.6.x |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Apr 17, 2024
* Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48) # Conflicts: # src/cpp/rtps/network/NetworkFactory.h # src/cpp/rtps/participant/RTPSParticipantImpl.cpp
mergify bot
pushed a commit
that referenced
this pull request
Apr 17, 2024
* Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48) # Conflicts: # src/cpp/rtps/network/NetworkFactory.h # src/cpp/rtps/participant/RTPSParticipantImpl.cpp
mergify bot
pushed a commit
that referenced
this pull request
Apr 17, 2024
* Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48) # Conflicts: # include/fastdds/rtps/network/NetworkFactory.h # src/cpp/rtps/participant/RTPSParticipantImpl.cpp # src/cpp/rtps/participant/RTPSParticipantImpl.h # test/blackbox/common/BlackboxTestsTransportSHM.cpp
This was referenced Apr 17, 2024
MiguelCompany
added a commit
that referenced
this pull request
May 14, 2024
* Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48)
MiguelCompany
added a commit
that referenced
this pull request
May 15, 2024
* Internal refactor on port handling (#3440) * Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48) # Conflicts: # src/cpp/rtps/network/NetworkFactory.h # src/cpp/rtps/participant/RTPSParticipantImpl.cpp * Fix conflicts. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
MiguelCompany
added a commit
that referenced
this pull request
May 20, 2024
* Refs #18002. Avoid mutation of multicast ports. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Move security initalization up. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Prepare for refactor of locators setup. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor metatraffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor initial peers related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor user traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor output traffic related code. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Safe metatraffic unicast port on a new attribute. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. User unicast port calculated on participant instead of NetworkFactory. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Update metatraffic_unicast_port_ inside applyLocatorAdaptRule. Signed-off-by: Miguel Company <[email protected]> * Apply suggestion Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Always create unicast receiver resources first. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve warning message. Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Refactor createReceiverResources Signed-off-by: Miguel Company <[email protected]> * Refs #18002. Improve SHM.SamePortUnicastMulticast blackbox test Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: Miguel Company <[email protected]> (cherry picked from commit ea5af48) Co-authored-by: Miguel Company <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR refactors the constructor of RTPSParticipantImpl, and changes the calculation of the ports used when set to 0 on the input locators.
@Mergifyio backport 2.13.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist