# Fixed Limits and Timeouts

This page lists the constants compiled into ToriiDB, such as timeouts, the compaction threshold, and the socket path, which cannot be configured.

## Fixed Settings

These are constants in the source, not configurable:

| Setting | Value | Source |
|---|---|---|
| Embedding model | `text-embedding-3-small` | `core/openai/client.go` |
| Embedding HTTP timeout | 30 s | `core/openai/client.go` |
| Background vector attach timeout | 35 s | `core/store/set.go` |
| Expiry sweep interval | 1 minute | `core/store/store.go` |
| Compaction threshold | log size >= max(snapshot size, 1 MiB) * 2 | `core/store/aof.go` |
| Socket path | `/tmp/toriidb-<uid>-<sha256(dir)[:8]>.sock` | `core/daemon/socket.go` |
| Socket probe timeout | 500 ms | `core/daemon/socket.go` |
| Server per-frame read / write deadline | 30 s / 30 s | `core/daemon/daemon.go` |
| Max frame size | 8 MiB | `core/daemon/protocol.go` |
| Client call timeout without ctx deadline | 10 s | `core/daemon/client.go` |
| Client idle pool | 8 connections, reused within 5 s | `core/daemon/client.go` |
| Client dial attempts | 3, backoff 5 ms then 10 ms | `core/daemon/client.go` |

## Related Pages

- [Connections](/socket-daemon-connections)
- [Files and Writes](/persistence)
- [Attaching Vectors](/vector-search)
