Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 33436 invoked from network); 4 Mar 2009 06:32:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 06:32:18 -0000 Received: (qmail 94298 invoked by uid 500); 4 Mar 2009 06:32:18 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 94284 invoked by uid 500); 4 Mar 2009 06:32:18 -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 94273 invoked by uid 99); 4 Mar 2009 06:32:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 22:32:18 -0800 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; Wed, 04 Mar 2009 06:32:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60FD6234C4AC for ; Tue, 3 Mar 2009 22:31:57 -0800 (PST) Message-ID: <1955659191.1236148317389.JavaMail.jira@brutus> Date: Tue, 3 Mar 2009 22:31:57 -0800 (PST) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2082) client using decoupled ws-addressing with async handler hang from time to time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org client using decoupled ws-addressing with async handler hang from time to time ------------------------------------------------------------------------------ Key: CXF-2082 URL: https://issues.apache.org/jira/browse/CXF-2082 Project: CXF Issue Type: Bug Reporter: Freeman Fang Assignee: Freeman Fang Fix For: 2.2, 2.0.11, 2.1.5 If we use decoupled ws-addressing and async invaction handler, client side will hang from time to time. At the same time we can see some error like "Connection reset by peer". The fix is in HTTPConduit, we should cache the InputStream of inMessage before invoke the clientImpl.onMessage, since for async mode, the onMessage is in anonther thead and executing by executor, we can't guarantee the connection still alive when onMessage really invoked. So we need do like {code} InputStream in = inMessage.getContent(InputStream.class); CachedOutputStream cos = new CachedOutputStream(); IOUtils.copy(in, cos); inMessage.setContent(InputStream.class, cos.getInputStream()); incomingObserver.onMessage(inMessage); {code} to cache the inputstream to ensure there are still there when we use it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.