I'm not sure this is the right repository. The hang shows up after importing @adonisjs/transmit/services/main with the Redis transport, but it may belong in adonisjs/core (ace codegen / app lifecycle) instead.
What happens
node ace codegen prints:
[ success ] Codegen files generated
The process never exits (Ctrl+C to stop).
Reproduction
https://github.com/rrmesquita/adonis-transmit-codegen-hang/tree/repro/codegen-hang
git clone https://github.com/rrmesquita/adonis-transmit-codegen-hang.git
cd adonis-transmit-codegen-hang
git checkout repro/codegen-hang
cp .env.example .env # set APP_KEY
npm i
# Redis on 127.0.0.1:6379
node ace codegen
What this app does
config/transmit.ts: Redis transport + pingInterval: '30s'
start/routes.ts imports @adonisjs/transmit/services/main and calls registerRoutes()
Control
Comment out that import and registerRoutes(). Codegen still prints success, then exits 0.
Package + config/transmit.ts without importing the service does not hang.
While hung, the process has two established TCP connections to 127.0.0.1:6379.
Environment
|
|
| OS |
macOS 26.2 (Darwin 25.2.0, arm64) |
| Node |
v24.16.0 |
| npm |
12.0.2 |
@adonisjs/core |
7.5.0 |
@adonisjs/transmit |
3.0.1 |
@adonisjs/assembler |
8.5.0 |
@boringnode/transmit |
0.4.0 |
ioredis |
5.11.1 |
I'm not sure this is the right repository. The hang shows up after importing
@adonisjs/transmit/services/mainwith the Redis transport, but it may belong inadonisjs/core(ace codegen/ app lifecycle) instead.What happens
node ace codegenprints:The process never exits (
Ctrl+Cto stop).Reproduction
https://github.com/rrmesquita/adonis-transmit-codegen-hang/tree/repro/codegen-hang
What this app does
config/transmit.ts: Redis transport +pingInterval: '30s'start/routes.tsimports@adonisjs/transmit/services/mainand callsregisterRoutes()Control
Comment out that import and
registerRoutes(). Codegen still prints success, then exits 0.Package +
config/transmit.tswithout importing the service does not hang.While hung, the process has two established TCP connections to
127.0.0.1:6379.Environment
@adonisjs/core@adonisjs/transmit@adonisjs/assembler@boringnode/transmitioredis