Micro-XRCE-DDS-Client
Micro-XRCE-DDS-Client copied to clipboard
Improved on uxr_close_tcp_platform() to avoid potentially losing bytes in flight.
This is similar to the third point mentioned in my new PR within the Agent repository.
This revolves around the fact that send() does not guarantee that the receiver will receive all data. By waiting for the other side (the agent in this case) to also close the connection, we can be sure that all data that should have been received, was received. This also solves another problem: under such a condition, calling close() on the socket() will result in the remote end sending a TCP RST in response to the FIN-ACK.
The error was "ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://github.com/eProsima/Micro-XRCE-DDS-Client.git"