-
Notifications
You must be signed in to change notification settings - Fork 774
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
[20508] TCP first message loss #4454
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
jepemi
force-pushed
the
bugfix/tcp_first_message_loss
branch
from
February 27, 2024 09:52
099a560
to
0491e44
Compare
MiguelCompany
requested changes
Feb 28, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a refactor in wait_logical_port_under_negotiation
(it was easier than adding suggestions)
MiguelCompany
added
to-do
needs-review
PR that is ready to be reviewed
and removed
needs-review
PR that is ready to be reviewed
to-do
labels
Feb 28, 2024
MiguelCompany
requested changes
Feb 28, 2024
MiguelCompany
added
to-do
and removed
needs-review
PR that is ready to be reviewed
labels
Feb 28, 2024
jepemi
force-pushed
the
bugfix/tcp_first_message_loss
branch
from
February 29, 2024 11:23
e71a88d
to
a84e916
Compare
7 tasks
11 tasks
jepemi
force-pushed
the
bugfix/tcp_first_message_loss
branch
from
March 1, 2024 15:39
b1b3264
to
0f9a863
Compare
MiguelCompany
previously approved these changes
Mar 5, 2024
MiguelCompany
added
ci-pending
PR which CI is running
and removed
needs-review
PR that is ready to be reviewed
labels
Mar 5, 2024
@richiprosima Please test this |
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
…ting purposes) Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
Signed-off-by: Jesus Perez <[email protected]>
EduPonz
force-pushed
the
bugfix/tcp_first_message_loss
branch
from
March 5, 2024 20:28
50a267e
to
b470d14
Compare
@richiprosima please test this |
EduPonz
approved these changes
Mar 6, 2024
@Mergifyio backport 2.13.x 2.12.x 2.10.x 2.6.x |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Mar 15, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 8103cf0) # Conflicts: # include/fastdds/rtps/transport/TCPTransportDescriptor.h # resources/xsd/fastRTPS_profiles.xsd # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/blackbox/common/BlackboxTestsTransportTCP.cpp # test/system/tools/xmlvalidation/XMLTesterExample_profile.xml # test/system/tools/xmlvalidation/all_profile.xml # test/unittest/transport/TCPv6Tests.cpp # test/unittest/xmlparser/XMLParserTests.cpp
13 tasks
mergify bot
pushed a commit
that referenced
this pull request
Mar 15, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 8103cf0) # Conflicts: # include/fastdds/rtps/transport/TCPTransportDescriptor.h # include/fastrtps/xmlparser/XMLParserCommon.h # resources/xsd/fastRTPS_profiles.xsd # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # src/cpp/rtps/xmlparser/XMLParser.cpp # src/cpp/rtps/xmlparser/XMLParserCommon.cpp # test/blackbox/common/BlackboxTestsTransportTCP.cpp # test/mock/rtps/TCPTransportDescriptor/fastrtps/transport/TCPTransportDescriptor.h # test/system/tools/xmlvalidation/XMLTesterExample_profile.xml # test/system/tools/xmlvalidation/all_profile.xml # test/unittest/transport/TCPv4Tests.cpp # test/unittest/transport/TCPv6Tests.cpp # test/unittest/transport/mock/MockTCPv4Transport.h # test/unittest/transport/mock/MockTCPv6Transport.h # test/unittest/xmlparser/XMLParserTests.cpp
13 tasks
mergify bot
pushed a commit
that referenced
this pull request
Mar 15, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 8103cf0) # Conflicts: # include/fastdds/rtps/transport/TCPTransportDescriptor.h # include/fastrtps/xmlparser/XMLParserCommon.h # resources/xsd/fastRTPS_profiles.xsd # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # src/cpp/rtps/xmlparser/XMLParser.cpp # src/cpp/rtps/xmlparser/XMLParserCommon.cpp # test/blackbox/common/BlackboxTestsTransportTCP.cpp # test/mock/rtps/TCPTransportDescriptor/fastrtps/transport/TCPTransportDescriptor.h # test/system/tools/xmlvalidation/XMLTesterExample_profile.xml # test/system/tools/xmlvalidation/all_profile.xml # test/unittest/transport/TCPv6Tests.cpp # test/unittest/xmlparser/XMLParserTests.cpp
13 tasks
mergify bot
pushed a commit
that referenced
this pull request
Mar 15, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 8103cf0) # Conflicts: # include/fastdds/rtps/transport/TCPTransportDescriptor.h # include/fastrtps/xmlparser/XMLParserCommon.h # resources/xsd/fastRTPS_profiles.xsd # src/cpp/rtps/transport/TCPChannelResource.cpp # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # src/cpp/rtps/xmlparser/XMLParser.cpp # src/cpp/rtps/xmlparser/XMLParserCommon.cpp # test/blackbox/api/dds-pim/PubSubReader.hpp # test/blackbox/api/dds-pim/PubSubWriter.hpp # test/blackbox/api/fastrtps_deprecated/PubSubReader.hpp # test/blackbox/api/fastrtps_deprecated/PubSubWriter.hpp # test/blackbox/common/BlackboxTestsTransportTCP.cpp # test/mock/rtps/TCPTransportDescriptor/fastrtps/transport/TCPTransportDescriptor.h # test/system/tools/xmlvalidation/XMLTesterExample_profile.xml # test/system/tools/xmlvalidation/all_profile.xml # test/unittest/transport/TCPv6Tests.cpp # test/unittest/transport/mock/MockTCPv4Transport.h # test/unittest/transport/mock/MockTCPv6Transport.h # test/unittest/xmlparser/XMLParserTests.cpp
13 tasks
JesusPoderoso
pushed a commit
that referenced
this pull request
Mar 19, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 8103cf0) # Conflicts: # include/fastdds/rtps/transport/TCPTransportDescriptor.h # resources/xsd/fastRTPS_profiles.xsd # src/cpp/rtps/transport/TCPTransportInterface.cpp # src/cpp/rtps/transport/TCPTransportInterface.h # test/blackbox/common/BlackboxTestsTransportTCP.cpp # test/system/tools/xmlvalidation/XMLTesterExample_profile.xml # test/system/tools/xmlvalidation/all_profile.xml # test/unittest/transport/TCPv6Tests.cpp # test/unittest/xmlparser/XMLParserTests.cpp
jepemi
added a commit
that referenced
this pull request
Mar 25, 2024
* Refs #20508: add remaining add_logical_port calls Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add unittests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add blackbox tests + functional fixes Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add cv + fix windows tests Signed-off-by: Jesus Perez <[email protected]> * Refs #20508. Use lock_guard where apropiate. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Proxy is_local_port_opened. Signed-off-by: Miguel Company <[email protected]> * Refs #20508. Refactor wait_logical_port_under_negotiation. Signed-off-by: Miguel Company <[email protected]> * Refs #20508: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix typo Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - firs message loss related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Apply suggestions - transport descriptor related Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Change timeout behavior Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Fix xml parser Signed-off-by: Jesus Perez <[email protected]> * Refs #20508: Undo fastcdr commit change Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
EduPonz
pushed a commit
that referenced
this pull request
Mar 28, 2024
* Refs #20508: add remaining add_logical_port calls * Refs #20508: Add unittests * Refs #20508: Add blackbox test + uncomment section (commented for testing purposes) * Refs #20508: Add blackbox tests + functional fixes * Refs #20508: Fix tests * Refs #20508: Add cv + fix windows tests * Refs #20508. Use lock_guard where apropiate. * Refs #20508. Proxy is_local_port_opened. * Refs #20508. Refactor wait_logical_port_under_negotiation. * Refs #20508: Apply suggestions * Refs #20508: Fix typo * Refs #20508: Add wait_for_logical_port_negotiation_ms to transport descriptor * Refs #20508: Apply suggestions - firs message loss related * Refs #20508: Apply suggestions - transport descriptor related * Refs #20508: Reuse unused transport descriptor tcp_negotiation_timeout * Refs #20508: Change timeout behavior * Refs #20508: Uncrustify * Refs #20508: Fix xml parser * Refs #20508: Undo fastcdr commit change --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Jesús Pérez <[email protected]> Co-authored-by: Miguel Company <[email protected]>
jepemi
added a commit
that referenced
this pull request
Apr 1, 2024
Signed-off-by: Jesus Perez <[email protected]>
MiguelCompany
pushed a commit
that referenced
this pull request
Apr 7, 2024
Signed-off-by: Jesus Perez <[email protected]>
jepemi
added a commit
that referenced
this pull request
Apr 8, 2024
Signed-off-by: Jesus Perez <[email protected]>
MiguelCompany
pushed a commit
that referenced
this pull request
Apr 10, 2024
* TCP first message loss (#4454) Signed-off-by: Jesus Perez <[email protected]> * Refs 20508: Fix xml parsing Signed-off-by: Jesus Perez <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Co-authored-by: Jesús Pérez <[email protected]> Co-authored-by: Jesus Perez <[email protected]>
jepemi
added a commit
that referenced
this pull request
Apr 23, 2024
Signed-off-by: Jesus Perez <[email protected]>
MiguelCompany
pushed a commit
that referenced
this pull request
Apr 24, 2024
Signed-off-by: Jesus Perez <[email protected]> Co-authored-by: Jesus Perez <[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
In the initial TCP logical port negotiation some logical port requests were missing. This would not prevent communication as those remaining requests would be sent on the first data sent to that logical port. However, that data would be discarded.
With this PR all discovered logical ports are requested on initialization and the first data would not need to be discarded.
@Mergifyio backport 2.13.x 2.12.x 2.10.x 2.6.x
Contributor Checklist
versions.md
file (if applicable).Related documentation PR: [20508] TCP first message loss Fast-DDS-docs#699
Reviewer Checklist