[
https://issues.apache.org/jira/browse/CXF-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950246#comment-17950246
]
Andriy Redko commented on CXF-9131:
-----------------------------------
[~deepaktaker] the DelayedCachedOutputStreamCleaner only cleans up temp files
that are haven't been cleaned with 30 mins since the moment response has been
received (taking a fix for https://issues.apache.org/jira/browse/CXF-9118 into
account). If in your case it take more than 30 mins to process the response,
consider extending this interval or disabling the cleaner [1]. In general,
DelayedCachedOutputStreamCleaner does not at what moment the temp file is going
to be read, if ever, or is being read.
[1]
https://cxf.apache.org/docs/securing-cxf-services.html#SecuringCXFServices-Largedatastreamcaching
> DelayedCachedOutputStreamCleaner clears the temp cache files even when the
> temp is still in use
> -----------------------------------------------------------------------------------------------
>
> Key: CXF-9131
> URL: https://issues.apache.org/jira/browse/CXF-9131
> Project: CXF
> Issue Type: Bug
> Reporter: Deepak
> Priority: Major
>
> DelayedCachedOutputStreamCleaner clears the temp cache files even when the
> temp is still in use.
> this class doesn't check whether or not the temp file is still being read
> before deletion.
> there should be logic in DelayedCachedOutputStreamCleaner that deletes the
> temp file only when it is not in use.
> [cxf/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java
> at cxf-3.5.10 · apache/cxf ·
> GitHub|https://github.com/apache/cxf/blob/cxf-3.5.10/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)