UniversalRobots / Universal_Robots_Client_Library

A C++ library for accessing the UR interfaces that facilitate the use of UR robotic manipulators by external applications.
Apache License 2.0
117 stars 86 forks source link

Make tcp_server retry binding the socket #176

Closed fmauch closed 11 months ago

fmauch commented 11 months ago

It sometimes happens that binding the socket fails since it is already in use (e.g. when restarting the driver too fast). This commit should retry binding instead of simply throwing an exception

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage is 94.44% of modified lines.

:exclamation: Current head 8442d50 differs from pull request most recent head 38396ed. Consider uploading reports for the commit 38396ed to get more accurate results

Files Changed Coverage
include/ur_client_library/comm/tcp_server.h ø
src/comm/tcp_server.cpp 94.44%

:loudspeaker: Thoughts on this report? Let us know!.

fmauch commented 11 months ago

Holding for after #177 is merged.