libmapper: Retry on wait timeouts

At times, early in the boot process, the async GetObject call used in
'mapper wait' can fail with an ETIMEDOUT, probably because the mapper
daemon is so busy introspecting new processes.  If this happens, retry
after a 5s wait. Also get a new connection to the bus and event loop
since when this wasn't done the retried method call would fail
immediately.

I first tried to put the ETIMEDOUT check in
async_wait_getobject_callback, but that caused hundreds of more retries
across all the mapper waits in use.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I7175e958fb633b2ecb7479a3307d6918ab29b9f7
1 file changed
tree: 70497e8213f420ff6777bc4371bf9784d9c36e87
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. .clang-format
  5. .gitignore
  6. bootstrap.sh
  7. configure.ac
  8. LICENSE
  9. MAINTAINERS
  10. Makefile.am
  11. README.md
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.