Skip to content

Conversation

@tylerbath
Copy link

@tylerbath tylerbath commented Jan 8, 2018

executeRequest needs to close the request before throwing an exception. Otherwise there will be no open connections to use after two exceptions are thrown. I discovered this running the BlockCommandTest.java without changing the hash used for specific block retrieval.
This comment helped me figure it out. https://stackoverflow.com/questions/33650157/httpclient-stop-executing-the-same-httpget-method-in-a-loop-after-executing-twic/33650384#33650384

executeRequest needs to close the request before throwing an exception. Otherwise there will be no open connections to use after two exceptions are thrown. 
This comment helped me figure it out. https://stackoverflow.com/questions/33650157/httpclient-stop-executing-the-same-httpget-method-in-a-loop-after-executing-twic/33650384#33650384
@tylerbath tylerbath changed the title Update QueryBuilderCommon.java Two exceptions caused hang/infinite loop in QueryBuilderCommon.java Jan 8, 2018
@kungfujoe
Copy link

It appears that we both found the same issue at a similar time. I reported the issue here #28 and created a pull request as well, which the author accepted. I resolved it slightly differently than you did, but functionally we do the same thing (#29). I'm sorry for duplicating your effort - that was not intentional, but I don't think this Pull Request is necessary anymore

@tylerbath
Copy link
Author

Thanks for the update, I will close this request.

@tylerbath tylerbath closed this Jan 20, 2018
@tylerbath tylerbath deleted the patch-1 branch January 20, 2018 00:09
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