[
https://issues.apache.org/jira/browse/CXF-7396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17679838#comment-17679838
]
Alexey edited comment on CXF-7396 at 1/23/23 3:22 PM:
------------------------------------------------------
I found that in
{{org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream}}
on {{close}} method the {{wrappedStream}} is not closed but reassigned to the
new anonymous {{OutputStream}} in {{handleHeadersTrustCaching}} by
{{setupWrappedStream}}.
It could resolve the problem.
It's in cxf-rt-transports-http-hc
was (Author: JIRAUSER287381):
I found that in
{{org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream}}
on {{close}} method the {{wrappedStream}} is not closed but reassigned to the
new anonymous {{OutputStream}} in {{handleHeadersTrustCaching}} by
{{setupWrappedStream}}.
It could resolve the problem.
It's in cxf-rt-transports-http-hc-3.5.3.jar
> CachedOutputStream doesn't delete temp files
> --------------------------------------------
>
> Key: CXF-7396
> URL: https://issues.apache.org/jira/browse/CXF-7396
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.8
> Reporter: Matthew Roth
> Assignee: Andriy Redko
> Priority: Minor
> Fix For: 3.6.0, 4.0.1, 3.5.6, 3.4.11
>
> Attachments: HTTP Request.jmx, Screenshot 2020-05-05 at 10.09.43.png,
> Screenshot 2020-05-12 at 12.42.11.png, image-2018-05-29-13-58-03-109.png,
> image-2018-05-29-14-00-16-442.png, image-2018-05-29-14-00-54-215.png
>
>
> In the CachedOutputStream the method maybeDeleteTempFile doesn't always
> delete the temp file when it should.
>
> this.streamList.remove(stream)
> Doesn't remove the stream, occasionally the stream is not in the list causing
> the check of this.streamList().isEmpty() to fail. Also occurs when
> this.streamList() contains multiple streams.
> This seems occur when too many large requests are processed in a row.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)