[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: |
|
||||||||
| Known Issue Of: | |||||||||
| Description |
|
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. |
| Comments |
| 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. |