The default timeout is no timeout, it'll wait indefinitely. See what other language bindings are doing and select a reasonable timeout.