slachiewicz opened a new pull request, #2295: URL: https://github.com/apache/maven-resolver/pull/2295
When a resume request is answered with 412 Precondition Failed, the HTTP transports retry with a plain GET. The Jetty transport left the 412 response's `InputStreamResponseListener` open on that path, while its two retry branches close it (the JDK transport closes the body and the Apache transport consumes the entity), and all three transports reported the discarded response's transport properties before the served response's. Now the Jetty listener is closed, and `transportPropertiesAvailable` fires once per transfer, for the response that serves it; in the Apache transport `execute` takes a predicate for the status the caller retries. `RecordingTransportListener` counts the calls, so the shared `testGet_ResumeLocalContentsOutdated` asserts one event for every transport; without the change it sees two for each of them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
