Skip to content

Redesign PiwikTracker for using AsyncHttpClient singletons #52

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

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

norbertroamsys
Copy link

This can be seen as an improvement of the fixes in #43 for release 1.6.
The former code changes expects that the API user reuses the PiwikTracker instance by making it a singleton.
This causes a high probability of a wrong usage and the using application will run again into the really bad situation of resource leaks because threads will be created on each PiwikTracker.sendRequestAsync() call.

Please see discussion #47 for more details!

Copy link
Collaborator

@tholu tholu left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request and sorry for the delay!

@tholu tholu merged commit aa329ac into matomo-org:master Jun 21, 2021
@norbertroamsys
Copy link
Author

Thanks for accepting my changes - the delay wasn't a problem at all ;-).
@tholu : Can you keep me informed when the changes are released in a new version? That would be fine!

@tholu
Copy link
Collaborator

tholu commented Jun 24, 2021

@norbertroamsys Sure, I'm currently blocked by the migration of Travis CI from .org to .com - needs to be enabled/reconfigured here again.

@tholu
Copy link
Collaborator

tholu commented Jul 5, 2021

@norbertroamsys 1.7 should be on the way to Maven Central now.

@tholu
Copy link
Collaborator

tholu commented Aug 31, 2021

@norbertroamsys Somehow v1.7 never got published to Maven Central, as I likely forgot to release from staging. I successfully published v1.7 and tagged a release: https://github.com/matomo-org/matomo-java-tracker/releases/tag/v1.7

Should appear in Maven Central tomorrow.

@norbertroamsys
Copy link
Author

Hi Thomas,
yes - the new release is visible and now used by us ;-).

Thanks!

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