Provided by: libmongoc-doc_2.2.0-1_all 

SYNOPSIS
void
mongoc_client_set_sockettimeoutms (mongoc_client_t *client, int32_t timeoutms);
Change the sockettimeoutms of the mongoc_client_t <>.
If client was obtained from a mongoc_client_pool_t <>, the socket timeout is restored to the previous
value when calling mongoc_client_pool_push() <>.
PARAMETERS
• client: A mongoc_client_t <>.
• timeoutms: The requested timeout value in milliseconds.
See also:
URI Connection Options <#connection-options>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.0 Nov 26, 2025 MONGOC_CLIENT_SET_SOCKETTIMEOUTMS(3)