cloudflare / cloudflare/workerd

🐛 Bug Report — WebSocket Client Connection Hangs

Open
#5,305 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

# WebSocket Client Connection Hangs in Cloudflare Workers

## Summary

WebSocket client connections hang indefinitely in Cloudflare Workers when connecting to certain endpoints (Kusama Asset Hub), while others work fine (Polkadot Asset Hub), despite using identical code and both endpoints being publicly accessible.

**Important**: This code has been working fine for years, but suddenly started hanging around October 6th, 2025. No changes were made to our code - this appears to be a Workers runtime regression.

## Reproduction

```bash
git clone https://github.com/preschian/test-workers-assethub-kusama
cd test-workers-assethub-kusama
bun install
bun run dev
```

Then test:
- `curl http://localhost:8787/polkadot` ✅ Works fine
- `curl http://localhost:8787/kusama` ❌ Hangs indefinitely

## Expected vs Actual

- **Expected**: Connection succeeds or throws clear error
- **Actual**: Hangs indefinitely with no error, no timeout, no response

## Question

Why does one WebSocket endpoint work while structurally identical ones hang? Both Polkadot and Kusama use the same technology (Substrate framework).

---

**Repository**: https://github.com/preschian/test-workers-assethub-kusama

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.