Patch for making z-agent reconnect
Posted: 31 Dec 2012 03:55
Hi,
I got a bit tired of the z-agent not reconnecting after my Internet connection gets issues, so I added a reconnect option to the Unix version of z-agent.
Patch against the current version of the Z-Connector package is available here https://dl.dropbox.com/u/50524858/reconnect.patch in case someone else finds it useful.
Also, as the _sleep definition in common.h didn't seem to work on my Debian box, I redefined that to use sleep rather than usleep. This may or may not be supported on other Unixes of course.
I got a bit tired of the z-agent not reconnecting after my Internet connection gets issues, so I added a reconnect option to the Unix version of z-agent.
Patch against the current version of the Z-Connector package is available here https://dl.dropbox.com/u/50524858/reconnect.patch in case someone else finds it useful.
Also, as the _sleep definition in common.h didn't seem to work on my Debian box, I redefined that to use sleep rather than usleep. This may or may not be supported on other Unixes of course.