- Fixed an issue where under some circumstances an attempt to connect to a socket could become stuck for a long time or possibly forever. A timeout is now applied to all connection attempts made by functions in the
Network.Waitmodule to ensure that the checks terminate in a reasonable amount of time. Contributed by @thomasjm in #20. - Added a new
recoveringWithStatusfunction which provides theRetryStatusto the action.
- Functions in the
Network.Wait.PostgreSQLmodule are now overloaded to accept different types of connection information. In addition to the previously supportedConnectInfotype, the function now also accept connection strings in the form ofByteStringvalues.
- Add
Network.Wait.Redismodule with functions to wait for Redis servers to become ready to accept connections. This module and its dependency onhedisare not enabled by default. Thenetwork-wait:redisflag must be enabled for this package's Redis support. - Generalise the
recoveringWithfunction to allow it to return the result of a computation. - The functions for TCP/Sockets now return the
Socketif they are successful. - The functions for PostgreSQL now return the
Connectionif they are successful.
- Compatibility with GHC 8.2 and Stack LTS 11
- Add
Network.Wait.PostgreSQLmodule with functions to wait for PostgreSQL servers to become ready to accept connections. This module and its dependency onpostgresql-simpleare not enabled by default. Thenetwork-wait:postgresflag must be enabled for this package's PostgreSQL support.
- First release