jira-client
jira-client copied to clipboard
httpclient infinite read timeout
Considering the use of
DefaultHttpClient httpclient = new DefaultHttpClient();
in line 62 of JiraClient.java, it seems there is a default infinite read timeout. I've run in to this situation myself, where a thread making use of the jira-client will hang indefinitely. I can't shut this down in a nice way:
Thread.interrupt()
doesn't seem to abort the request. There seems to be only the possibility to set the timeout beforehand, when constructing the httpclient, or to do the request in a separate thread and call an abort on it (basically doing the timeout logic oneself).
Therefor my bug report: can you please construct the httpclient with a default read timeout?
And a feature request, to be able to set the read timeout via an additional JiraClient-constructor.
I am also facing this same issue where http client call is stuck and never exit. What is the solution to this issue? Please suggest if there any workaround.