[GRADLE-3424] HTTP requests fail due to reuse of stale connections Created: 31/Mar/16  Updated: 01/Aug/16  Resolved: 05/Apr/16

Status: Resolved
Project: Gradle
Affects Version/s: 2.11
Fix Version/s: 2.13-rc-1

Type: Bug
Reporter: Mark Vieira (Inactive) Assignee: Mark Vieira (Inactive)
Resolution: Fixed Votes: 1

Issue Links:
Related to GRADLE-3518 HTTP requests block forever because o... Resolved
Known Issue Of:


This issue was initially reported on the forums: https://discuss.gradle.org/t/org-apache-http-nohttpresponseexception-com-80-failed-to-respond-with-gradle-2-11/15542

This looks to be caused by a change in HttpClient 4.4.1 which no longer checks for stale connections on every request. This, in combination disabling retries, can cause some instability.

Comment by Mark Vieira (Inactive) [ 31/Mar/16 ]

I think the best course of action here is simply to revert back to the old behavior via PoolingHttpClientConnectionManager.setValidateAfterInactivity(0).

Comment by Mark Vieira (Inactive) [ 31/Mar/16 ]

The other option is to remove the no-retry retry handler.

Generated at Wed Jun 30 12:48:27 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.