allow to control the check_connection (expire_time in connections.c) timeout

in both the client library and the perl bindings