sapcc / mosquitto-exporter

Prometheus metrics exporter for the Mosquitto message broker
Apache License 2.0
128 stars 60 forks source link

Update module github.com/eclipse/paho.mqtt.golang to v1.5.0 #41

Open renovate[bot] opened 2 years ago

renovate[bot] commented 2 years ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/eclipse/paho.mqtt.golang v1.3.5 -> v1.5.0 age adoption passing confidence

Release Notes

eclipse/paho.mqtt.golang (github.com/eclipse/paho.mqtt.golang) ### [`v1.5.0`](https://togithub.com/eclipse/paho.mqtt.golang/releases/tag/v1.5.0) [Compare Source](https://togithub.com/eclipse/paho.mqtt.golang/compare/v1.4.3...v1.5.0) In the year since the release of v1.4.3 the majority of changes have been small incremental improvements/fixes. One notable change is that Go v1.20+ is now required (due to PR [#​646](https://togithub.com/eclipse/paho.mqtt.golang/issues/646)). ##### What's Changed - Wrap connection network errors by [@​adriansmares](https://togithub.com/adriansmares) in [https://github.com/eclipse/paho.mqtt.golang/pull/646](https://togithub.com/eclipse/paho.mqtt.golang/pull/646) - Clarify use of token.WaitTimeout by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/659](https://togithub.com/eclipse/paho.mqtt.golang/pull/659) - fix ([#​661](https://togithub.com/eclipse/paho.mqtt.golang/issues/661)): Add NewClientOptionsReader for mocking purposes. by [@​avmunm](https://togithub.com/avmunm) in [https://github.com/eclipse/paho.mqtt.golang/pull/662](https://togithub.com/eclipse/paho.mqtt.golang/pull/662) - fix: fix keep-alive timeouts on small intervals by [@​lefinal](https://togithub.com/lefinal) in [https://github.com/eclipse/paho.mqtt.golang/pull/667](https://togithub.com/eclipse/paho.mqtt.golang/pull/667) - Replace the time.After with the timer for efficiency. by [@​DVasselli](https://togithub.com/DVasselli) in [https://github.com/eclipse/paho.mqtt.golang/pull/671](https://togithub.com/eclipse/paho.mqtt.golang/pull/671) - fix: deprecation warnings for ioutil by [@​vruge](https://togithub.com/vruge) in [https://github.com/eclipse/paho.mqtt.golang/pull/665](https://togithub.com/eclipse/paho.mqtt.golang/pull/665) - fix: issue 675:goroutine leak when connectionUp(true) return error by [@​kiqi007](https://togithub.com/kiqi007) in [https://github.com/eclipse/paho.mqtt.golang/pull/678](https://togithub.com/eclipse/paho.mqtt.golang/pull/678) - Update dependencies by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/683](https://togithub.com/eclipse/paho.mqtt.golang/pull/683) ##### New Contributors - [@​adriansmares](https://togithub.com/adriansmares) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/646](https://togithub.com/eclipse/paho.mqtt.golang/pull/646) - [@​avmunm](https://togithub.com/avmunm) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/662](https://togithub.com/eclipse/paho.mqtt.golang/pull/662) - [@​lefinal](https://togithub.com/lefinal) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/667](https://togithub.com/eclipse/paho.mqtt.golang/pull/667) - [@​DVasselli](https://togithub.com/DVasselli) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/671](https://togithub.com/eclipse/paho.mqtt.golang/pull/671) - [@​vruge](https://togithub.com/vruge) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/665](https://togithub.com/eclipse/paho.mqtt.golang/pull/665) - [@​kiqi007](https://togithub.com/kiqi007) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/678](https://togithub.com/eclipse/paho.mqtt.golang/pull/678) **Full Changelog**: https://github.com/eclipse/paho.mqtt.golang/compare/v1.4.3...v1.5.0 ### [`v1.4.3`](https://togithub.com/eclipse/paho.mqtt.golang/releases/tag/v1.4.3) [Compare Source](https://togithub.com/eclipse/paho.mqtt.golang/compare/v1.4.2...v1.4.3) Release 1.4.3 is a relatively small release to bring in changes made in the eight months since 1.4.2. Thanks to everyone who submitted issues and contributed code (list of the main merged pull requests below): #### What's Changed - Avoid Panic when keepalive is 1 by [@​tomatod](https://togithub.com/tomatod) in [#​622](https://togithub.com/eclipse/paho.mqtt.golang/issues/622) - Allow MQTT username/password in websocket URI [@​MattBrittan](https://togithub.com/MattBrittan) in [#​624](https://togithub.com/eclipse/paho.mqtt.golang/issues/624) - Add backoff when reconnecting following immediate connection loss [@​tomatod](https://togithub.com/tomatod) in [#​625](https://togithub.com/eclipse/paho.mqtt.golang/issues/625) - Update dependencies (github.com/gorilla/websocket@v1.5.0, golang.org/x/net, golang.org/x/sync) and specify `go 1.18` in `go.mod`. **Full Changelog**: https://github.com/eclipse/paho.mqtt.golang/compare/v1.4.2...v1.4.3 ### [`v1.4.2`](https://togithub.com/eclipse/paho.mqtt.golang/releases/tag/v1.4.2) [Compare Source](https://togithub.com/eclipse/paho.mqtt.golang/compare/v1.4.1...v1.4.2) Release 1.4.2 is relatively small and is mostly focused on tidying up the way the library manages the connection status. Previously `sync/ atomic` was used to read/update the status but this led to a range of potential deadlocks, and workarounds to avoid these, which made the code difficult to follow. The new [connectionStatus](https://togithub.com/eclipse/paho.mqtt.golang/blob/master/status.go#L113) separates status handling from `client` and should simplify further development whilst resolving potential race conditions. It is my hope that users will not notice any change ([@​master](https://togithub.com/master) was updated on 10th August and the updated code has been running in production at a few sites since then without issue). A further change is that it is now possible to disable auto acknowledgment so that received messages can be manually acknowledged (or, more to the point, not acknowledged!). Thanks to everyone who submitted issues and contributed code (list of the main merged pull requests below): #### What's Changed - Tidy up use of mutex in `messageIds` by [@​MattBrittan](https://togithub.com/MattBrittan) in [#​602](https://togithub.com/eclipse/paho.mqtt.golang/issues/602) - Resolve situation where broker accepted connection but did not respond to CONNECT packet in a timely manner (should be very unusual but was reported in [#​597](https://togithub.com/eclipse/paho.mqtt.golang/issues/597)). [@​MattBrittan](https://togithub.com/MattBrittan) in [#​603](https://togithub.com/eclipse/paho.mqtt.golang/issues/603) - Resolve race condition in test by [@​MattBrittan](https://togithub.com/MattBrittan) in [#​606](https://togithub.com/eclipse/paho.mqtt.golang/issues/606) - Re-architect status handling by [@​MattBrittan](https://togithub.com/MattBrittan) in [#​607](https://togithub.com/eclipse/paho.mqtt.golang/issues/607) - Enable manual ACK by [@​shivamkm07](https://togithub.com/shivamkm07) in [#​578](https://togithub.com/eclipse/paho.mqtt.golang/issues/578) #### New Contributors - [@​shivamkm07](https://togithub.com/shivamkm07) made their first contribution in [#​578](https://togithub.com/eclipse/paho.mqtt.golang/issues/578) **Full Changelog**: https://github.com/eclipse/paho.mqtt.golang/compare/v1.4.1...v1.4.2 ### [`v1.4.1`](https://togithub.com/eclipse/paho.mqtt.golang/releases/tag/v1.4.1) [Compare Source](https://togithub.com/eclipse/paho.mqtt.golang/compare/v1.4.0...v1.4.1) The license update in v1.4.0 included changes which prevented https://pkg.go.dev from displaying the documentation. The only change in this release is to update LICENSE such that it includes the full test of the Eclipse Public License v2.0 (tested this on a fork and it appears to resolve the issue). ### [`v1.4.0`](https://togithub.com/eclipse/paho.mqtt.golang/releases/tag/v1.4.0) [Compare Source](https://togithub.com/eclipse/paho.mqtt.golang/compare/v1.3.5...v1.4.0) In the year since the release of v1.3.5 the majority of changes have been small incremental improvements/fixes. It is worth noting that the library has moved to the EPL v2.0 license ([faq](https://www.eclipse.org/legal/epl-2.0/faq.php)). A few new features have been added: - Managing the connection to the broker can become involved (e.g. setting unusual TCP/TLS options, need for a non-standard TLS library, require a specific web-socket library etc) and the library already has too many options! To address this a new option, `SetCustomOpenConectionFn`, has been added that enables users to provide a function (`func(uri *url.URL, options ClientOptions) (net.Conn, error)`) that will be called to establish a connection (replacing the inbuilt code). This should enable edge cases to be addressed without the need for further changes to this library. - When connecting/reconnecting it is possible that there will be a lot of packets queued; in the past the library sent all of these packets as rapidly as possible when the connection came up. However this could saturate some network links causing the connection to drop (a vicious circle). The new option `SetMaxResumePubInFlight` allows a limit to be imposed; the library will send out the requested number of packets and then wait for acknowledgements before sending more (only applicable at QOS1+). Thanks to everyone who submitted issues and contributed code (list of the main merged pull requests below): #### What's Changed - SetMaxResumePubInFlight option - limit inflight publish packets on resume by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/521](https://togithub.com/eclipse/paho.mqtt.golang/pull/521) - Test for PR 521 (forgot to commit) by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/522](https://togithub.com/eclipse/paho.mqtt.golang/pull/522) - Dont panic if there are files with short names in the file store folder. by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/523](https://togithub.com/eclipse/paho.mqtt.golang/pull/523) - Add license headers to all files and move from EPL v1.0 to EPL v2.0 by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/524](https://togithub.com/eclipse/paho.mqtt.golang/pull/524) / [https://github.com/eclipse/paho.mqtt.golang/pull/525](https://togithub.com/eclipse/paho.mqtt.golang/pull/525) - Add warning to Disconnect function by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/537](https://togithub.com/eclipse/paho.mqtt.golang/pull/537) - Use uri.Path instead of uri.Host for UNIX domain socket URLs by [@​webconn](https://togithub.com/webconn) in [https://github.com/eclipse/paho.mqtt.golang/pull/540](https://togithub.com/eclipse/paho.mqtt.golang/pull/540) - CodeQL & integer conversion fix by [@​jfcg](https://togithub.com/jfcg) in [https://github.com/eclipse/paho.mqtt.golang/pull/541](https://togithub.com/eclipse/paho.mqtt.golang/pull/541) - Mosquitto related changes (updated config and comments). by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/546](https://togithub.com/eclipse/paho.mqtt.golang/pull/546) - README enhancements by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/547](https://togithub.com/eclipse/paho.mqtt.golang/pull/547) / [https://github.com/eclipse/paho.mqtt.golang/pull/548](https://togithub.com/eclipse/paho.mqtt.golang/pull/548) - Improve handling of SUBSCRIBE/UNSUBSCRIBE over disconnect/reconnect. by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/557](https://togithub.com/eclipse/paho.mqtt.golang/pull/557) - log err.error() if ConnectRetry is enabled by [@​TomasVojacek](https://togithub.com/TomasVojacek) in [https://github.com/eclipse/paho.mqtt.golang/pull/558](https://togithub.com/eclipse/paho.mqtt.golang/pull/558) - Add tcp option to set keep alive value on the tcp layer by [@​mogaleaf](https://togithub.com/mogaleaf) in [https://github.com/eclipse/paho.mqtt.golang/pull/561](https://togithub.com/eclipse/paho.mqtt.golang/pull/561) - Document token.Wait behaviour during reconnect by [@​ecksun](https://togithub.com/ecksun) in [https://github.com/eclipse/paho.mqtt.golang/pull/565](https://togithub.com/eclipse/paho.mqtt.golang/pull/565) - Custom open connection for different network types by [@​GilGil1](https://togithub.com/GilGil1) in [https://github.com/eclipse/paho.mqtt.golang/pull/574](https://togithub.com/eclipse/paho.mqtt.golang/pull/574) / [https://github.com/eclipse/paho.mqtt.golang/pull/575](https://togithub.com/eclipse/paho.mqtt.golang/pull/575) - nil c.options.Dialer caused a panic. by [@​MattBrittan](https://togithub.com/MattBrittan) in [https://github.com/eclipse/paho.mqtt.golang/pull/577](https://togithub.com/eclipse/paho.mqtt.golang/pull/577) - Disconnect refactor by [@​ptsneves](https://togithub.com/ptsneves) in [https://github.com/eclipse/paho.mqtt.golang/pull/586](https://togithub.com/eclipse/paho.mqtt.golang/pull/586) - client.go Remove Disconnect()'s wait on c.commsStopped. by [@​ptsneves](https://togithub.com/ptsneves) in [https://github.com/eclipse/paho.mqtt.golang/pull/590](https://togithub.com/eclipse/paho.mqtt.golang/pull/590) #### New Contributors - [@​webconn](https://togithub.com/webconn) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/540](https://togithub.com/eclipse/paho.mqtt.golang/pull/540) - [@​jfcg](https://togithub.com/jfcg) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/541](https://togithub.com/eclipse/paho.mqtt.golang/pull/541) - [@​TomasVojacek](https://togithub.com/TomasVojacek) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/558](https://togithub.com/eclipse/paho.mqtt.golang/pull/558) - [@​mogaleaf](https://togithub.com/mogaleaf) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/561](https://togithub.com/eclipse/paho.mqtt.golang/pull/561) - [@​ecksun](https://togithub.com/ecksun) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/565](https://togithub.com/eclipse/paho.mqtt.golang/pull/565) - [@​GilGil1](https://togithub.com/GilGil1) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/574](https://togithub.com/eclipse/paho.mqtt.golang/pull/574) - [@​ptsneves](https://togithub.com/ptsneves) made their first contribution in [https://github.com/eclipse/paho.mqtt.golang/pull/586](https://togithub.com/eclipse/paho.mqtt.golang/pull/586) **Full Changelog**: https://github.com/eclipse/paho.mqtt.golang/compare/v1.3.5...v1.4.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.