On 16 Sep 2012, at 21:56, Camillo Bruni <camillobruni@gmail.com> wrote:
I am especially interested in the last point. Has it something to do with (using) Zn ?
yes, we basically did a HEAD request and returned false on 404, however Zn does 3 or so retries, and thus makes everything slow :). I don't know what the side-effects are, but we reduce the retryCount to 0, to get low response times.
I thought that upon a valid 404 response there is no retry needed? (but I guess I miss something here :P)
The reason ZnClient keeps on retrying on 404 is because you probably had #enforceHttpSuccess true as part of #systemPolicy and only 2xx response are considered a success. But this is an interesting use case: basically 404 is a valid response here. I'll have to think about that so more. Thanks for pushing this and letting me know. -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill