Handling flaky connections is tiresome.
So this package provides some useful tools for the standard errror handling cases.
Install Go 1, either from source or with a prepackaged binary.
Then run
go get github.com/nightlyone/reconnect
BSD
package documentation at go.pkgdoc.org
go get github.com/nightlyone/reconnect
Contributions are welcome. Please open an issue or send me a pull request for a dedicated branch. Make sure the git commit hooks show it works.
enable commit hooks via
cd .git ; rm -rf hooks; ln -s ../git-hooks hooks ; cd ..