Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 93316 invoked from network); 15 Jan 2010 19:43:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 19:43:16 -0000 Received: (qmail 5946 invoked by uid 500); 15 Jan 2010 19:43:15 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 5918 invoked by uid 500); 15 Jan 2010 19:43:15 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 5901 invoked by uid 99); 15 Jan 2010 19:43:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 19:43:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 19:43:14 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7AA04234C4AD for ; Fri, 15 Jan 2010 11:42:54 -0800 (PST) Message-ID: <318530751.272731263584574500.JavaMail.jira@brutus.apache.org> Date: Fri, 15 Jan 2010 19:42:54 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2619) Deadlock when echoing MTOM attachments back to client In-Reply-To: <1918265609.271911263583494609.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800872#action_12800872 ] Daniel Kulp commented on CXF-2619: ---------------------------------- Another option MIGHT be to detect the first write to the output stream on the server side and have that trigger a buffering of everything on the incoming side. Something for me to ponder............... > Deadlock when echoing MTOM attachments back to client > ----------------------------------------------------- > > Key: CXF-2619 > URL: https://issues.apache.org/jira/browse/CXF-2619 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.2.3, 2.2.4, 2.2.5, 2.2.6 > Environment: Windows XP > Reporter: aaron pieper > Priority: Minor > Attachments: frt.zip > > > I've written a simple "echo" web service, which receives an attachment and echoes it back. In CXF 2.2.2 and earlier, this works OK. Starting with CXF 2.2.3, however, there is a somewhat unpredictable deadlock situation which occurs with MTOM attachments, which causes the web server to deadlock, so that it never responds to the request. > This situation often occurs when the attachment is around 85 kilobytes or greater in size. However, this boundary is not 100% consistent. Sometimes I can successfully echo attachments up to 88 kilobytes in size, and sometimes smaller attachments trigger the bug. > The behavior only occurs if the same input stream is reused. Copying the input into a new input stream circumvents the error. I've verified this behavior began with CXF 2.2.3, and is still present in the latest 2.2.6-SNAPSHOT. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.