mbmd
mbmd copied to clipboard
Bump github.com/eclipse/paho.mqtt.golang from 1.3.5 to 1.4.1
Bumps github.com/eclipse/paho.mqtt.golang from 1.3.5 to 1.4.1.
Release notes
Sourced from github.com/eclipse/paho.mqtt.golang's releases.
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
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).
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
in eclipse/paho.mqtt.golang#521- Test for PR 521 (forgot to commit) by
@MattBrittan
in eclipse/paho.mqtt.golang#522- Dont panic if there are files with short names in the file store folder. by
@MattBrittan
in eclipse/paho.mqtt.golang#523- Add license headers to all files and move from EPL v1.0 to EPL v2.0 by
@MattBrittan
in eclipse/paho.mqtt.golang#524 / eclipse/paho.mqtt.golang#525- Add warning to Disconnect function by
@MattBrittan
in eclipse/paho.mqtt.golang#537- Use uri.Path instead of uri.Host for UNIX domain socket URLs by
@webconn
in eclipse/paho.mqtt.golang#540- CodeQL & integer conversion fix by
@jfcg
in eclipse/paho.mqtt.golang#541- Mosquitto related changes (updated config and comments). by
@MattBrittan
in eclipse/paho.mqtt.golang#546- README enhancements by
@MattBrittan
in eclipse/paho.mqtt.golang#547 / eclipse/paho.mqtt.golang#548- Improve handling of SUBSCRIBE/UNSUBSCRIBE over disconnect/reconnect. by
@MattBrittan
in eclipse/paho.mqtt.golang#557- log err.error() if ConnectRetry is enabled by
@TomasVojacek
in eclipse/paho.mqtt.golang#558- Add tcp option to set keep alive value on the tcp layer by
@mogaleaf
in eclipse/paho.mqtt.golang#561- Document token.Wait behaviour during reconnect by
@ecksun
in eclipse/paho.mqtt.golang#565- Custom open connection for different network types by
@GilGil1
in eclipse/paho.mqtt.golang#574 / eclipse/paho.mqtt.golang#575- nil c.options.Dialer caused a panic. by
@MattBrittan
in eclipse/paho.mqtt.golang#577- Disconnect refactor by
@ptsneves
in eclipse/paho.mqtt.golang#586- client.go Remove Disconnect()'s wait on c.commsStopped. by
@ptsneves
in eclipse/paho.mqtt.golang#590New Contributors
@webconn
made their first contribution in eclipse/paho.mqtt.golang#540@jfcg
made their first contribution in eclipse/paho.mqtt.golang#541@TomasVojacek
made their first contribution in eclipse/paho.mqtt.golang#558@mogaleaf
made their first contribution in eclipse/paho.mqtt.golang#561@ecksun
made their first contribution in eclipse/paho.mqtt.golang#565@GilGil1
made their first contribution in eclipse/paho.mqtt.golang#574@ptsneves
made their first contribution in eclipse/paho.mqtt.golang#586Full Changelog: https://github.com/eclipse/paho.mqtt.golang/compare/v1.3.5...v1.4.0
Commits
bcb58ee
Update license to meet pkg.go.dev requirements8717376
Merge pull request #590 from ptsneves/pneves-disconnect-workaround2e83582
client.go Remove Disconnect()'s wait on c.commsStopped.eaac59b
Merge pull request #586 from ptsneves/disconnect-refactorac29fdf
client: localized disconnectSent logic3ec7db3
client: refactor setConnected(disconnected) out of conditional7254d2c
client: set disconnect as defer2d3b04d
Merge pull request #577 from ChIoT-Tech/master721bf9f
If c.options.Dialer was nil this caused a panic.44f71c7
Merge pull request #575 from GilGil1/master- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)