-
Notifications
You must be signed in to change notification settings - Fork 232
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
Ice4j v2.0.0 hangs while checking AWS EC2 #141
Comments
You can disable aws harvester using org.ice4j.ice.harvest.DISABLE_AWS_HARVESTER system property. |
Yes, actually I already did that, and it works. But isn't that the system should not hangs even with the option disabled, at least it should auto exit on timeout? |
I havn't heard of such reports for jvb where this is not disabled. You can check the usage of ice4j there, I suppose it is in new thread or something. |
Does it block for more than 500ms? |
When the option is enabled, it does not return upon executed conn.getContent() or throw exception even after a long wait; although it seems to have set a 500mS timeout on connection. |
Thanks for reporting. By design it should timeout after 500ms. |
Try to set
But note that the API states that non-standard implementations might ignore the timeouts. |
The above two timer settings do not work for android aTalk. It seems that it requires java 1.8 and is not available in android OS. |
Trying to integrate using ice4j-2.0.0 release into aTalk with all the default settings, but facing problem with the following AwsCandidateHarvester#doTestEc2 in conn.getContent. The system just hangs in this execution without return. It seems that EC2_TEST_URL (http://169.254.169.254/latest/meta-data/) is not reachable.
The text was updated successfully, but these errors were encountered: