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

decentraland / social-service-ea / 24449911581 / 1
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: fix/oom-subscriber-leak-and-heap-limit
DEFAULT BRANCH: main
Ran 15 Apr 2026 10:43AM UTC
Files 384
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Apr 2026 10:33AM UTC coverage: 91.099% (-0.04%) from 91.14%
24449911581.1

Pull #407

github

kevinszuchet
fix: prevent OOM crashes from subscriber leak and duplicate subscriptions

Three critical fixes for the heap exhaustion crash (510 MB after ~62h):

1. Fix cleanup bug in ws-handler: the three cleanup steps (transport.close,
   detachUser, emitter.clear) were in a single try/catch. If transport.close()
   threw (uWS throws on closed sockets), detachUser and emitter.clear were
   skipped, permanently leaking the subscriber's emitter and generators.
   Each step is now an independent function with its own error handling.

2. Guard against duplicate subscriptions: clients can call the same stream
   RPC multiple times on one connection. Each call created another async
   generator with a 1000-item value queue, doubling memory per connection.
   Crash logs confirmed this for communityMemberConnectivityUpdate.
   Added per-(address, event) deduplication in handleSubscriptionUpdates.

3. Set explicit V8 heap limit (768 MB for 1024 MB prod containers) via
   NODE_OPTIONS env var in Dockerfile, overridable at deploy time.
Pull Request #407: fix: prevent OOM crashes from subscriber leak and duplicate subscriptions

2369 of 2754 branches covered (86.02%)

Branch coverage included in aggregate %.

10906 of 11818 relevant lines covered (92.28%)

35.9 hits per line

Source Files on job 24449911581.1
  • Tree
  • List 384
  • Changed 148
  • Source Changed 3
  • Coverage Changed 148
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24449911581
  • c96313c5 on github
  • Prev Job for on fix/oom-subscriber-leak-and-heap-limit (#23593170934.1)
  • Next Job for on fix/oom-subscriber-leak-and-heap-limit (#24455772176.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc