xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Image Cache: behaviour for failed URIs
Date Thu, 26 Mar 2009 17:09:31 GMT
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

If nobody sees a problem with that I'll implement that shortly.

Jeremias Maerki

To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org

View raw message