jira-client icon indicating copy to clipboard operation
jira-client copied to clipboard

httpclient infinite read timeout

Open jayveeAtWork opened this issue 10 years ago • 1 comments
trafficstars

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.

jayveeAtWork avatar Jul 13 '15 19:07 jayveeAtWork

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.

ShinMGit avatar Jun 10 '20 12:06 ShinMGit