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

SNMPContext won't close. #14

Closed
MaximilianMitterrutzner opened this issue Nov 24, 2020 · 3 comments
Closed

SNMPContext won't close. #14

MaximilianMitterrutzner opened this issue Nov 24, 2020 · 3 comments

Comments

@MaximilianMitterrutzner

When calling SNMPContext#close() the function will never exit.
I am using Java 8 and JavaFX.

@ceharris
Copy link
Member

This was due to a change in the way Snmp4j manages the underlying sockets and timeouts. Had you run the unit tests when you tried version 2.8.0, you would have noticed that the tests hang. :-)

I just fixed this in commit 8efebde. As soon as Travis CI gets around to running my build, I'll release a new version with this fix and the later version of snmp4j.

@MaximilianMitterrutzner
Copy link
Author

MaximilianMitterrutzner commented Nov 25, 2020

Is there anything else I have to do locally except for changing the version to 2.8.4 and removing the repository with the id "oosnmp"?
Because even with version 2.8.4 it still blocks.

@ceharris
Copy link
Member

See commit 8efebde, which shows there is an additional fix needed to run with snmp4j 2.8.4.

I just released version tnm4j 1.0.10 which includes this fix along with the switch to snmp4j 2.8.4.

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