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

mochi-mqtt / server
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: fix/mqtt-qos2-reject-packet-type
DEFAULT BRANCH: main
Repo Added 31 Jul 2023 12:22PM UTC
Token wwuZN5Hbfggtgv5vrR81VZ9SOo4ssZo2R regen
Build 319 Last
Files 30
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 maintainers/mochi-co/file-based-config
branch: maintainers/mochi-co/file-based-config
CHANGE BRANCH
x
Reset
Sync Branches
  • maintainers/mochi-co/file-based-config
  • #393
  • StoredClientByID-hook
  • badger_crashed_on_server_close
  • badgerdbv4
  • buffer_optimization
  • bugfix/fix-qos-1-delivery-after-server-restart
  • dario-messagexpiry
  • data_race
  • dependabot/go_modules/github.com/golang/glog-1.2.4
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • dependabot/go_modules/golang.org/x/net-0.23.0
  • dependabot/go_modules/golang.org/x/net-0.33.0
  • dependabot/go_modules/golang.org/x/net-0.36.0
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • dependabot/go_modules/google.golang.org/protobuf-1.33.0
  • documentation/add-live-broker
  • expose-stop-time
  • feat/tcp-address-from-listener
  • feature/add-logging-level-config
  • feature/basic-file-config
  • feature/change-to-slog
  • feature/update-server-defaults
  • file-based-config
  • fix-inherit-session
  • fix-readme-example
  • fix/acl/publishToClient
  • fix/mqtt-qos2-reject-packet-type
  • is-taken-over
  • issue_340
  • issue_346
  • issue_364
  • main
  • master
  • maxclients
  • mochi-co-patch-1
  • mochi-co/inline-subscriptions
  • omitempty
  • pebbledb
  • readme
  • readmejp
  • recommended-minimum-keepalive
  • reconnectkeepsubs
  • refs/tags/2.6.0
  • refs/tags/v.2.7.8
  • refs/tags/v2.3.0
  • refs/tags/v2.4.0
  • refs/tags/v2.4.1
  • refs/tags/v2.4.2
  • refs/tags/v2.4.3
  • refs/tags/v2.4.4
  • refs/tags/v2.4.5
  • refs/tags/v2.4.6
  • refs/tags/v2.6.0
  • refs/tags/v2.6.1
  • refs/tags/v2.6.2
  • refs/tags/v2.6.3
  • refs/tags/v2.6.4
  • refs/tags/v2.6.5
  • refs/tags/v2.6.6
  • refs/tags/v2.6.7
  • refs/tags/v2.7.8
  • refs/tags/v2.7.9
  • remove-vendor-folder
  • retain-message-expiry
  • revert-321-main
  • small-fixes-cleanups
  • update-imports
  • wait-for-all-clients-to-disconnect-before-continuing

21 Oct 2023 11:10AM UTC coverage: 98.767% (-0.1%) from 98.908%
6597314012

push

github

web-flow
Fix for unlimited maximum message expiry interval (#315)

* fix when no max msg expiry interval is set

* fix expiry handling of clearExpiredInflights

* Modify it to handle cases where the MaximumMessageExpiryInterval is set to 0 or math.MaxInt64 for no expiry, and optimize some of the code and test cases.

* Set MaximumMessageExpiryInterval to 0 or math.MaxInt64 for no expiration, and optimize some of the code and test cases.

* Addressing the issue of numeric overflow with expiration values.

* Only when server.Options.Capabilities.MaximumMessageExpiryInterval is set to math.MaxInt64 for no expiry.

* fix typo in README.md

* There is no need to verify whether 'maximumExpiry' is 'math.MaxInt64' within 'client.ClearInflight()

* Optimize the code to make it easier to understand.

* Differentiate the handling of 'expire' in MQTTv5 and MQTTv3; skip expiration checks if MaximumMessageExpiryInterval is set to 0; optimize code and test cases.

* When MaximumMessageExpiryInterval is set to 0, it should not affect the message's own expiration(for v5) evaluation.

* Adding client.ClearExpiredInflights() to clear expired messages, while client.ClearInflights() is used to clear all inflight messages.

---------

Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
Co-authored-by: werben <werben@aliyun.com>
Co-authored-by: werben <werben@qq.com>

26 of 26 new or added lines in 2 files covered. (100.0%)

5447 of 5515 relevant lines covered (98.77%)

64.62 hits per line

Relevant lines Covered
Build:
Build:
5515 RELEVANT LINES 5447 COVERED LINES
64.62 HITS PER LINE
Source Files on maintainers/mochi-co/file-based-config
  • Tree
  • List 27
  • Changed 6
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6597314012 maintainers/mochi-co/file-based-config Fix for unlimited maximum message expiry interval (#315) * fix when no max msg expiry interval is set * fix expiry handling of clearExpiredInflights * Modify it to handle cases where the MaximumMessageExpiryInterval is set to 0 or math.MaxI... push 21 Oct 2023 12:26PM UTC web-flow github
98.77
See All Builds (308)

Badge your Repo: server

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • 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