-
Notifications
You must be signed in to change notification settings - Fork 791
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
[20179] TCP unique client announced local port #4216
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
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x |
✅ Backports have been created
|
jepemi
force-pushed
the
bugfix/tcp_client_announced_local_port
branch
from
January 12, 2024 08:53
c237048
to
a8971e4
Compare
jepemi
changed the title
[2017] TCP unique client announced local port
[20179] TCP unique client announced local port
Jan 15, 2024
@richiprosima please test this |
MiguelCompany
requested changes
Jan 16, 2024
jepemi
force-pushed
the
bugfix/tcp_client_announced_local_port
branch
from
January 16, 2024 13:38
a8971e4
to
8151eb5
Compare
14 tasks
MiguelCompany
approved these changes
Jan 16, 2024
@richiprosima Please test this |
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
jepemi
force-pushed
the
bugfix/tcp_client_announced_local_port
branch
from
January 18, 2024 09:55
a505edf
to
a283e19
Compare
@richiprosima Please test this |
@richiprosima Please test mac |
@richiprosima please test mac 🥲 |
JesusPoderoso
added
ready-to-merge
Ready to be merged. CI and changes have been reviewed and approved.
and removed
ci-pending
PR which CI is running
labels
Jan 24, 2024
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h
This was referenced Jan 24, 2024
mergify bot
pushed a commit
that referenced
this pull request
Jan 24, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/unittest/transport/TCPv6Tests.cpp
EduPonz
pushed a commit
that referenced
this pull request
Jan 25, 2024
* TCP unique client announced local port (#4216) * Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h * Refs #20179: Solve conflicts Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> Co-authored-by: Jesús Pérez <78275223+jepemi@users.noreply.github.com> Co-authored-by: Jesus Perez <jesusperez@eprosima.com>
MiguelCompany
pushed a commit
that referenced
this pull request
Jan 30, 2024
* TCP unique client announced local port (#4216) * Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp * Refs #20179: Solve conflicts Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> Co-authored-by: Jesús Pérez <78275223+jepemi@users.noreply.github.com> Co-authored-by: Jesus Perez <jesusperez@eprosima.com>
EduPonz
pushed a commit
that referenced
this pull request
Feb 1, 2024
* TCP unique client announced local port (#4216) * Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h * Refs #20179: Solve conflicts Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> Co-authored-by: Jesús Pérez <78275223+jepemi@users.noreply.github.com> Co-authored-by: Jesus Perez <jesusperez@eprosima.com>
jepemi
added a commit
that referenced
this pull request
Feb 23, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/unittest/transport/TCPv6Tests.cpp
jepemi
added a commit
that referenced
this pull request
Mar 7, 2024
* Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/unittest/transport/TCPv6Tests.cpp
EduPonz
pushed a commit
that referenced
this pull request
Mar 18, 2024
* TCP unique client announced local port (#4216) * Refs #20179: Guarantee unique announced client local port Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Regression tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Prevent from join() deadlock (ReceiverResource mtx taken) Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Fix windows release tests Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Apply sugestions Signed-off-by: Jesus Perez <jesusperez@eprosima.com> * Refs #20179: Uncrustify Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> (cherry picked from commit b43f3a0) # Conflicts: # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/unittest/transport/TCPv6Tests.cpp * Refs #20179: Solve conflicts Signed-off-by: Jesus Perez <jesusperez@eprosima.com> --------- Signed-off-by: Jesus Perez <jesusperez@eprosima.com> Co-authored-by: Jesús Pérez <78275223+jepemi@users.noreply.github.com> Co-authored-by: Jesus Perez <jesusperez@eprosima.com>
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
TCP clients used to communicate its PID as its locator port. When multiple clients are running within the same process this led to the overwriting of elements in the server's channel resources map. This PR guarantees that each client has a unique local port.
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist