gz-transport icon indicating copy to clipboard operation
gz-transport copied to clipboard

"Host unreachable" error message in service server when the client times out

Open peci1 opened this issue 3 years ago • 17 comments

Environment

  • OS Version: Ubuntu 18.04
  • Source or binary build? binary 9.1.0

Description

I get spurious errors when calling services:

error sending response: Host unreachable

The whole simulation runs on localhost, so it's weird it says host unreachable. Maybe the network card gets micro-resets and when ZMQ hits exactly the micro-reset, it fails sending? (dmesg doesn't show any micro-resets)

I think the service replier should try harder, with e.g. 3 attempts, around the lines

https://github.com/ignitionrobotics/ign-transport/blob/133dcf0379e1d6231e30dc6cb0bf1692fe13c4f1/src/NodeShared.cc#L787-L850

peci1 avatar May 10 '21 17:05 peci1