boxlang-express 0.2.12

Released .

  • Bug fix: a burst of WebSocket clients that connect and then vanish mid-write could freeze the entire server, not just those connections — root-caused via live reproduction and a thread dump. app.ws()'s connect callback ran synchronously on Undertow's small, shared I/O thread pool (unlike HTTP requests, which already get their own virtual thread); a blocking send in that callback against a peer that vanished could hang the I/O thread forever, and enough simultaneous zombies pinned the whole pool. Fixed by dispatching onConnect onto its own virtual thread and bounding connection.send()'s blocking write with a hard 5s timeout. Also fixed a related Scheduler bug the same failure mode exposed: a hung job body left its overlap flag stuck true forever (silently skipping every future tick), and an uncaught exception from taskExecutor.submit() itself (not just from a job's callback) could silently cancel every future tick of that job — see Scheduler support for the new watchdog. Verified with three consecutive 20-connection burst-and-abandon attacks against a live server (zero stalls, continuous ticking throughout, vs. a permanent freeze before this fix) plus the full TestBox suite: 268/268.