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

feat: add option to pool udp connections by client instance #40

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

Sorunome
Copy link
Contributor

@Sorunome Sorunome commented Oct 20, 2021

Implements #36, Fixes #29

This adds the config option poolUdpConnectionsByClient to the config. the default is false, meaning current behaviour: if you create more client objects, then they will re-use all those udp connections, provided the remote address is the same. If you set it to true then it is namespaced by client object.

@Sorunome Sorunome force-pushed the soru/namespace branch 3 times, most recently from 54c30ab to 2be41d8 Compare October 20, 2021 12:37
@Sorunome Sorunome force-pushed the soru/namespace branch 2 times, most recently from de6aa16 to cc2dbb3 Compare October 21, 2021 08:47
@shamblett
Copy link
Owner

Yes this is OK, I think we should add a log line to the client that just prints what namespace the client object is using, it will help with fault analysis when a user submits logs. This only needs doing once, or maybe at strategic log lines like send/receive etc. as you think fit.

@Sorunome
Copy link
Contributor Author

Done! Added a log line to CoapClient.send

@shamblett shamblett merged commit c8299af into shamblett:master Oct 22, 2021
@shamblett
Copy link
Owner

Thanks, package re published at version 3.2.0

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.

Ping to two different hosts doesn't work?
2 participants