I've been made aware that the current way failed URIs are handled in the image cache may not be ideal: If a URI is only temporarily unavailable, the image identified by this URI will remain invalid until the JVM is restarted or the cache is cleared explicitely.
The reason for the failed set is that FOP accesses an image twice for a single document (FO stage and rendering stage). For a slow connection, that would slow down the formatter quite a bit. How about this? Each entry in the failure set gets a time stamp and a timeout will invalidate the entry, forcing a retry next time the URI is accessed. The timeout could be set to 0, which would effectively disable that failed set. A value > 0 would set the timeout to n seconds. And a negative value equals to infinity which would represent the current behaviour. If nobody sees a problem with that I'll implement that shortly. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
