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

nats-io / nats-server
85%

Build:
DEFAULT BRANCH: main
Repo Added 06 May 2019 06:55PM UTC
Files 61
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • change_nightly_from_main_to_dev
  • fix_code_coverage
  • fix_flappers_update_cov_go
  • main

08 Dec 2025 11:02PM UTC coverage: 84.691% (-0.06%) from 84.751%
20052263983

push

github

web-flow
[FIXED] Websocket: limit buffer size during decompression of a frame (#7625)

When the server would decompress a compressed websocket frame, it would
not limit the resulting size of the uncompressed buffer. Once
uncompressed the maximum payload size would still be used to reject
messages that are too big, but the server would have already
uncompressed a possibly very big buffer (if the frame contained highly
compressed data).

This PR limits the number of bytes that are being decompressed using the
maximum payload size as a limit.

Credit goes to:
Pavel Kohout, Aisle Research (www.aisle.com) for reporting the issue and
providing a path.

The propose patched as been updated a bit (need to use atomic to use the
connection's max payload value) and some tweaks around the use of the
`io.LimitedReader`.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>

74061 of 87449 relevant lines covered (84.69%)

360453.84 hits per line

Relevant lines Covered
Build:
Build:
87449 RELEVANT LINES 74061 COVERED LINES
360453.84 HITS PER LINE
Source Files on main
  • Tree
  • List 61
  • Changed 21
  • Source Changed 3
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20052263983 main [FIXED] Websocket: limit buffer size during decompression of a frame (#7625) When the server would decompress a compressed websocket frame, it would not limit the resulting size of the uncompressed buffer. Once uncompressed the maximum payload si... push 09 Dec 2025 05:52AM UTC web-flow github
84.69
20017030728 main Add WebSocket-specific ping interval configuration option (#7614) Adds support to set a custom ping interval specifically for WebSocket connections, independent from the default NATS client ping interval: ``` websocket { port: 8080 ping_inte... push 08 Dec 2025 05:54AM UTC web-flow github
84.75
19999166715 main Add WebSocket-specific ping interval configuration option (#7614) Adds support to set a custom ping interval specifically for WebSocket connections, independent from the default NATS client ping interval: ``` websocket { port: 8080 ping_inte... push 07 Dec 2025 05:52AM UTC web-flow github
84.7
19983255624 main Add WebSocket-specific ping interval configuration option (#7614) Adds support to set a custom ping interval specifically for WebSocket connections, independent from the default NATS client ping interval: ``` websocket { port: 8080 ping_inte... push 06 Dec 2025 05:49AM UTC web-flow github
84.82
19952967615 main NRG: prevent peer remove of the last peer (#7610) Make sure that a Raft cluster cannot remove its last remaining peer. Attempting to remove the last peer will now return an error, preventing the cluster from entering an invalid state. Test TestN... push 05 Dec 2025 05:52AM UTC web-flow github
84.83
19918001262 main [FIXED] Enforce DiscardNewPerSubject as stream leader (#7607) Replicated streams using `DiscardNewPerSubject` and `MaxMsgsPerSubject` had a chance of desyncing given a set of conditions: - A server either needed to restart or be out-of-date such ... push 04 Dec 2025 05:52AM UTC web-flow github
84.73
19882693086 main Update Go version, dependencies (#7604) Signed-off-by: Neil Twigg <neil@nats.io> push 03 Dec 2025 05:52AM UTC web-flow github
84.73
19847516082 main [FIXED] MQTT: Account mapping was not used when sending JS requests (#7598) See new test `TestMQTTJSApiMapping` added in this PR. A leaf server has an account called "HUB" that does not have JetStream enabled but had mapping to convert `JS.API.>`... push 02 Dec 2025 05:53AM UTC web-flow github
85.11
19811732230 main [FIXED] Panic processing snapshot with nil node/assignment after stream delete (#7588) Signed-off-by: Maurice van Veen <github@mauricevanveen.com> push 01 Dec 2025 06:01AM UTC web-flow github
86.14
19793993918 main [FIXED] Panic processing snapshot with nil node/assignment after stream delete (#7588) Signed-off-by: Maurice van Veen <github@mauricevanveen.com> push 30 Nov 2025 05:53AM UTC web-flow github
85.12
See All Builds (5980)
  • Repo on GitHub
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

© 2025 Coveralls, Inc