# IMQ_CONNECTION_QUIT_TIMEOUT variable · @imqueue/core

Source: https://imqueue.org/api/core/latest/core.imq_connection_quit_timeout/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/core 3.3.2 — generated reference, not hand-written

Grace period (ms) for a graceful QUIT to complete before a channel is forcibly disconnected. A reader blocked on an infinite BRPOP/BLMOVE can never let QUIT through, so without this the socket would leak and keep the process alive.

**Signature:**

```typescript
IMQ_CONNECTION_QUIT_TIMEOUT: number
```

## Remarks

Defaults to 1000; override with the `IMQ_CONNECTION_QUIT_TIMEOUT` environment variable, which is read once when the module is loaded. Applies to the writer, watcher and subscription channels — the reader is disconnected immediately without attempting `QUIT`.

