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

nestjs / nest / 5cae4f21-5aab-43bd-a448-55e9f7b1b729
91%
master: 90%

Build:
Build:
LAST BUILD BRANCH: fix/v11-middie-9.3.6
DEFAULT BRANCH: master
Ran 14 Sep 2026 07:33PM UTC
Jobs 1
Files 368
Run time 1min
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

14 Sep 2026 07:30PM UTC coverage: 90.665%. First build
5cae4f21-5aab-43bd-a448-55e9f7b1b729

Pull #17749

circleci

kamilmysliwiec
fix(microservices): harden the tcp transport against a hostile peer

Backport of the shutdown and memory-bound fixes from 12.x.

"ServerTCP#close" only called "net.Server#close", which stops the server
from accepting new connections but leaves established ones untouched. A
connection opened before the shutdown therefore survived it: the process
was kept alive by the dangling socket long after "app.close()" resolved,
and messages arriving on that connection were still dispatched to message
handlers. Accepted sockets are now tracked and destroyed when the server
closes.

Two further paths let a single peer grow the process heap without limit.
A peer could declare a packet length, send part of the payload and then
go silent, and nothing ever reaped the connection. On the sending side
the return value of "socket.write" was discarded, so a peer that issued
requests without reading the responses made the process queue every
response in memory.

An idle timer now drops a peer that stops sending mid-packet. It is
refreshed on every read, so a slow but progressing transfer is never
interrupted and a peer sitting idle between packets is left alone.
Reading is suspended while a peer's outgoing buffer is backed up, and
responses queued for a peer that reads nothing are capped. Both limits
are configurable on the server and the client through the new
"incompleteMessageTimeout" and "maxSendBufferSize" options, and either
can be turned off by setting it to 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #17749: fix(microservices): harden the TCP transport against a hostile peer (v11 backport)

2462 of 2998 branches covered (82.12%)

73 of 75 new or added lines in 6 files covered. (97.33%)

7964 of 8784 relevant lines covered (90.66%)

66.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.0
packages/microservices/helpers/json-socket.ts
Jobs
ID Job ID Ran Files Coverage
1 5cae4f21-5aab-43bd-a448-55e9f7b1b729.1 14 Sep 2026 07:33PM UTC 368
90.66
Source Files on build 5cae4f21-5aab-43bd-a448-55e9f7b1b729
  • Tree
  • List 368
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #5CAE4F21...
  • Pull Request #17749
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