You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2007/07/25 07:56:31 UTC

[jira] Commented: (CXF-847) swa will generate temp file until process exit

    [ https://issues.apache.org/jira/browse/CXF-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515211 ] 

Freeman Fang commented on CXF-847:
----------------------------------

It caused by an unclosed CachedOutputStream, the oneline added code fix this issue

private void cache(DelegatingInputStream input, boolean deleteOnClose) throws IOException {
        if (loaded.contains(input)) {
            return;
        }
        loaded.add(input);
        CachedOutputStream out = new CachedOutputStream();
        IOUtils.copy(input, out);
        input.setInputStream(out.getInputStream());
+++ out.close();+++
    }

> swa will generate temp file  until process exit
> -----------------------------------------------
>
>                 Key: CXF-847
>                 URL: https://issues.apache.org/jira/browse/CXF-847
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>
> when use swa, cxf will generate attachment tmp file in /tmp (linux) until the process exit, if it's a long term run server, the generated tmp file will eat up all disk space

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.