• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

romshark / datapages / 37681311124

07 Oct 2026 08:18PM UTC coverage: 44.163% (-0.02%) from 44.182%
37681311124

push

github

romshark
fix: Don't panic when a stream's client is gone

A visitor who leaves a page while its stream subscribes
makes net/http log a panic with a stack trace.
Leaving a page early is normal, not a server fault. Yet every such
visit logs an error that reads like a crash that needs investigation.
The natscore broker makes this more common, because the stream waits
for a round trip to NATS before it sends its headers.

A writer that cannot flush still panics, since it breaks every stream.

9 of 13 new or added lines in 1 file covered. (69.23%)

24 existing lines in 3 files now uncovered.

16263 of 36825 relevant lines covered (44.16%)

583.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.5
/runtime/httpserve/core.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc