| Home | Libraries | People | FAQ | More

##### pool_params::connect_timeout

The timeout to use when connecting.

###### Synopsis

    std::chrono::steady_clock::duration connect_timeout {std::chrono::seconds(20)};

###### Description

Connections will be connected by the pool before being handed to the user (using `any_connection::async_connect`). If the operation takes longer than this timeout, the operation will be interrupted, considered as failed and retried later.

Set this timeout to zero to disable it.

This value must not be negative.