# bunqueue v2.5.5

Fixes 1 bug. TCP client auth state corruption: TcpClient.doConnect() set connected = true before authenticate() completed.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-5-5/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Fixes 1 bug. TCP client auth state corruption: TcpClient.doConnect() set connected = true before authenticate() completed.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.5.5

```bash title="bun"
bun add bunqueue@2.5.5
```

```bash title="npm"
npm install bunqueue@2.5.5
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Bugfixes

- **TCP client auth state corruption**: `TcpClient.doConnect()` set `connected = true` before `authenticate()` completed. If authentication failed, the client remained in a corrupted state (`connected = true` with no valid session), causing subsequent operations to silently fail. Connection state is now set only after successful authentication, with proper cleanup on failure.

## Documentation

- SEO overhaul, keyword-rich titles, optimized descriptions, AI keywords, sitemap priorities

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.5.4](https://bunqueue.dev/blog/bunqueue-v2-5-4/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.5.5) · [Commits since v2.5.4](https://github.com/egeominotti/bunqueue/compare/v2.5.4...v2.5.5) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
