Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Use less brittle TLS settings construction #44

Closed
wants to merge 1 commit into from

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Jun 26, 2024

This change uses a record update on the default TLSSettings, to prevent
changes in available settings causing build failures.

For example, crypton-connection added a 'settingClientSupported' field
to 'TLSSettings'.

This change uses a record update on the default TLSSettings, to prevent
changes in available settings causing build failures.

For example, crypton-connection added a 'settingClientSupported' field
to 'TLSSettings'.
@@ -157,7 +158,10 @@ mqttConfig = MQTTConfig{_hostname="", _port=1883, _connID="",
_msgCB=NoCallback,
_protocol=Protocol311, _connProps=mempty,
_connectTimeout=180000000,
_tlsSettings=TLSSettingsSimple False False False,
_tlsSettings=def
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def is defined as TLSSettingsSimple False False False so I think just using def here without specifying all the fields is the right thing here.

@dustin
Copy link
Owner

dustin commented Jul 7, 2024

I've included this along with a package.yaml change and the default dfe. Thanks!

@dustin dustin closed this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants