Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99C1992BF for ; Fri, 2 Mar 2012 17:00:20 +0000 (UTC) Received: (qmail 11360 invoked by uid 500); 2 Mar 2012 17:00:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 11331 invoked by uid 500); 2 Mar 2012 17:00:20 -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 11322 invoked by uid 99); 2 Mar 2012 17:00:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 17:00:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 17:00:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 441E65C87 for ; Fri, 2 Mar 2012 16:59:57 +0000 (UTC) Date: Fri, 2 Mar 2012 16:59:57 +0000 (UTC) From: "Andrei Shakirin (Created) (JIRA)" To: issues@cxf.apache.org Message-ID: <1220223275.12622.1330707597280.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-4154) AbstractConduitSelector reused cached conduit even if protocol was changed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org AbstractConduitSelector reused cached conduit even if protocol was changed -------------------------------------------------------------------------- Key: CXF-4154 URL: https://issues.apache.org/jira/browse/CXF-4154 Project: CXF Issue Type: Bug Components: Core Reporter: Andrei Shakirin Attachments: AbstractConduitSelector.patch Hi, Actually AbstractConduitSelector.getSelectedConduit() creates and caches conduit in selectedConduit variable. Cached conduit is reused by the next calls. I see the following problem: if user changed protocol in URI between calls, AbstractConduitSelector still uses cached Conduit even it cannot process new URL. In my case cached HTTP consuit tries to process UDP URL. Proposal for fix: check if protocol in URL was changed and if yes, close and reset selectedConduit. Patch is attached. Regards, Andrei. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira