Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9472C200D21 for ; Mon, 16 Oct 2017 16:20:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 92C951609EF; Mon, 16 Oct 2017 14:20:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B12511609EC for ; Mon, 16 Oct 2017 16:20:45 +0200 (CEST) Received: (qmail 2496 invoked by uid 500); 16 Oct 2017 14:20:44 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 2484 invoked by uid 99); 16 Oct 2017 14:20:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2017 14:20:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AF436CB8EF for ; Mon, 16 Oct 2017 14:20:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=emoten-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qon7chSR3aT7 for ; Mon, 16 Oct 2017 14:20:41 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 133E55FC8B for ; Mon, 16 Oct 2017 14:20:40 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id v132so25364700oie.1 for ; Mon, 16 Oct 2017 07:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emoten-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Ba0dtmc9Q8O7zi7gKTUUn5xnNVNc6y1eRs2LKJcXa4U=; b=DaAFBzN65r22ytP3UjmlhA52MfOYY5iCyXb4D0XpFHDTKTlhX99pVjLzbVnKsPAnvr rvzPjn1IcyXRrmHvxH5PuBcqvSqhqK6iCMOuSEWNLSlVr0S9JVc5NbEmSp6zw+El8F8a qtzS0kui93TomGplwscTBpzQm9wUUpya8bFtJO0udRcjGQjiXUe/JZJ9s27ggmG5VOuE NUizu1pBpDwShocmGUnSsiZOBHc2F9a11cD2x2IsW9ezhOhrc4rIxLg0IYMCsuD10uN3 xXjBTLzhSyDTiUf9Aqizh7mEHr9UyEYzsOmaB/WcJzuySWhD/8z2JqIsWw2hmnQmijTM ns5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Ba0dtmc9Q8O7zi7gKTUUn5xnNVNc6y1eRs2LKJcXa4U=; b=GUIE6SCr17DSLu4ZCGobsczlQxV8GvlvYx36oU2DrigUNpKigFP7nAN05LNGFjRD73 BYxBeE4BUt6ps/7R2bc3MzZZiPY10WCEpIhntRYctypbffMN/znvtq6DDgdbyQ9wHidt ra6c0DRIdM/tz6U5fW6o8M/rK9RW0yIgVUwUliv6heZAEz4jvZfSde/jFv5iu3s0ceQN ktqLsQmqzVKkh5Ce7b7yLW6Lc8ifjCEdmJAeORX4qyvPEKgutNYWBy/z6bzn+cHs8yS4 6l467cT/k/eKKjrkWzkLbNVvMJ+iTbXjlHQLvjYjFMuzrYE7Ewl8vn2gxBTNF7Shjobd etvg== X-Gm-Message-State: AMCzsaXLG84hoxw7RUMeM5a3ld4X4kc9CiNqsTWfP6jHva2jxFlftIxE 7qZQQXnQ3tq1XqESHlLurt0FGeNytEmSXXPgyKC3OA== X-Google-Smtp-Source: ABhQp+QSDYa2fzxBNdLg4HYwRPq843tW4PRK4f0+dirynxM4LYp4FCjGif/RV7MNoQcfbuYGp8STcWpONW22lB6uO8k= X-Received: by 10.157.40.117 with SMTP id h50mr487651otd.398.1508163634514; Mon, 16 Oct 2017 07:20:34 -0700 (PDT) MIME-Version: 1.0 References: <1930c332-b611-6fcb-1a13-59325d10e1d6@macd.com> <9867fd0f-7a2b-ebf7-e0ff-db03f54eb414@gmail.com> <2cbc7593-a89c-c200-cd9e-ff0032e934d7@macd.com> <3ef9f5b6-50a3-2792-82a2-9cb610aa3773@gmail.com> <2a5ac02c-4aaf-6f6b-4246-d35c3965d672@macd.com> <43797407-783a-2b2e-2683-ff40813517f3@macd.com> <3dc99f03-09db-bd0a-4408-4dc00c2eb6d5@macd.com> <8d3ba112-dc9c-ee15-3cf7-7c29a3c16104@macd.com> <01385e39-fdbe-ea65-4f60-c245f7e49406@macd.com> In-Reply-To: <01385e39-fdbe-ea65-4f60-c245f7e49406@macd.com> From: Jonathan Valliere Date: Mon, 16 Oct 2017 14:20:24 +0000 Message-ID: Subject: Re: leaking NioProcessors/NioSocketConnectors hanging in call to dispose To: christoph.john@macd.com, dev@mina.apache.org Content-Type: multipart/alternative; boundary="001a114630e6b2e4bd055baab507" archived-at: Mon, 16 Oct 2017 14:20:46 -0000 --001a114630e6b2e4bd055baab507 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If you can figure out a reproducible test case then I'm sure that we can fix it. On Mon, Oct 16, 2017 at 10:01 AM Christoph John wrote: > Hi Emmanuel, > > yes, but unfortunately it did not help. > > Thanks, > Chris. > > > On 16/10/17 15:41, Emmanuel L=C3=A9charny wrote: > > Hi Christoph, > > > > > > have you tried with this patch ? : > > > > > > diff --git > > > a/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoP= rocessor.java > > > b/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoP= rocessor.java > > index 50ebd4e..575b2f4 100644 > > --- > > > a/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoP= rocessor.java > > +++ > > > b/mina-core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoP= rocessor.java > > @@ -695,8 +695,9 @@ > > for (Iterator i =3D allSessions(); > i.hasNext();) { > > IoSession session =3D i.next(); > > > > + scheduleRemove((S) session); > > + > > if (session.isActive()) { > > - scheduleRemove((S) session); > > hasKeys =3D true; > > } > > } > > > > > > Le 16/10/2017 =C3=A0 14:41, Christoph John a =C3=A9crit : > >> Hi Emmanuel, Jonathan, > >> > >> thanks for your patches. Unfortunately neither of them does correct > >> the problem I am facing. > >> I'd suggest that I'll try to reproduce this with a MINA-based test > >> first. Otherwise it is probably just guess-work. > >> > >> Thanks for your help and best regards, > >> Chris. > >> > >> > >> On 11/10/17 16:14, Jonathan Valliere wrote: > >>> Basically my proposed patch moves the check dispose conditional into = a > >>> finally loop forcing it to run even if exceptions were caught. > >>> > >>> If the SSLFilter did something weird then it would be blocked on that > >>> filter. What is happening is that the Processor is not dying as > >>> requested. > >>> That's why I think my patch ought to resolve the problem. > >>> > >>> On Wed, Oct 11, 2017 at 10:05 AM Emmanuel L=C3=A9charny < > elecharny@gmail.com> > >>> wrote: > >>> > >>>> Le 11/10/2017 =C3=A0 14:51, Christoph John a =C3=A9crit : > >>>>> Thanks, will try. Did this patch apply to 2.0.16? The line numbers = do > >>>>> not match. I have added it manually in line 1162 and removed the > >>>>> statement from line 1164. > >>>> It's for 2.0.17-SNAPSHOT, so you may have differences with 2.0.16, b= ut > >>>> minor. > >>>> > >>>> The idea here is to remove a session when it's i teh list of managed > >>>> version, even if it's not valid (that might be a corner case when te= h > >>>> SSLFilter does not properly handle an exception and close the channe= l. > >>>> Call it a workaround atm) > >>>> > >>>> -- > >>>> Emmanuel Lecharny > >>>> > >>>> Symas.com > >>>> directory.apache.org > >>>> > >>>> > > -- > Christoph John > Development & Support > Direct: +49 241 557080-28 > Mailto:Christoph.John@macd.com > > > > http://www.macd.com > > -------------------------------------------------------------------------= --------------------------- > > > -------------------------------------------------------------------------= --------------------------- > MACD GmbH > Oppenhoffallee 103 > D-52066 Aachen > Tel: +49 241 557080-0 | Fax: +49 241 557080-10 > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > > Gesch=C3=A4ftsf=C3=BChrer: George Macdonald > > -------------------------------------------------------------------------= --------------------------- > > > -------------------------------------------------------------------------= --------------------------- > > take care of the environment - print only if necessary > --001a114630e6b2e4bd055baab507--