---
name: "mongoc_client_pool_max_size"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_pool_max_size"
---

# mongoc\_client\_pool\_max\_size(3)

## SYNOPSIS

```
void
mongoc_client_pool_max_size (mongoc_client_pool_t *pool,
                             uint32_t max_pool_size);
```

This function sets the maximum number of pooled connections available from a *mongoc\_client\_pool\_t*.

## PARAMETERS

- •

  **pool**: A *mongoc\_client\_pool\_t*.

- •

  **max\_pool\_size**: The maximum number of connections which shall be available from the pool.

## THREAD SAFETY

This function is safe to call from multiple threads.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
