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

Concurrency issue in Lookup #6

Closed
posicks opened this issue Mar 8, 2016 · 2 comments
Closed

Concurrency issue in Lookup #6

posicks opened this issue Mar 8, 2016 · 2 comments

Comments

@posicks
Copy link
Owner

posicks commented Mar 8, 2016

java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966)
at java.util.LinkedList$ListItr.next(LinkedList.java:888)
at net.posick.mDNS.Lookup.lookupRecords(Lookup.java:271)
at net.posick.mDNS.Lookup.lookupServices(Lookup.java:325)
at net.posick.mDNS.MulticastDNSService$Register.register(MulticastDNSService.java:364)
at net.posick.mDNS.MulticastDNSService.register(MulticastDNSService.java:867)

@posicks
Copy link
Owner Author

posicks commented Mar 8, 2016

Changed Lookup to use a ConcurrentLinkedQueue to resolve concurrency issues.

@posicks posicks closed this as completed Mar 8, 2016
@hakanai
Copy link

hakanai commented Aug 22, 2019

v2.2.0 presumably has the fix for this, but is it safe to upgrade? There is some scary text on the readme saying to use the older snapshots still.

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

No branches or pull requests

2 participants