# Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. All pooled connections were in use and max pool size was reached.

**Code:** `pool timeout` · **Category:** SQL · **Seen on:** SQL

The application’s connection pool was exhausted — all connections busy or leaked.

## Meaning

Connections not disposed/closed, long-running queries, or more concurrent requests than Max Pool Size (default 100 in ADO.NET).

## Common causes

- Connections not disposed (missing using/close)
- Long queries holding connections
- Traffic spikes beyond pool size

## Quick fix

1. Always dispose connections (using/await using)
2. Find slow queries and blocking
3. Tune Max Pool Size with DB capacity in mind

## Detailed fix by platform

### .NET

1. `await using var conn = new SqlConnection(cs); await conn.OpenAsync();`

## How to diagnose

1. **Pool** — In-use vs max?
2. **Leaks** — Connections closed?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/sql/timeout-expired-connection-pool)
