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 9F507200C55 for ; Thu, 13 Apr 2017 14:48:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9DE46160B98; Thu, 13 Apr 2017 12:48:07 +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 E5999160B8B for ; Thu, 13 Apr 2017 14:48:06 +0200 (CEST) Received: (qmail 31134 invoked by uid 500); 13 Apr 2017 12:48:06 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 31124 invoked by uid 99); 13 Apr 2017 12:48:05 -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; Thu, 13 Apr 2017 12:48:05 +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 9CC3DC65BF for ; Thu, 13 Apr 2017 12:48:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.302 X-Spam-Level: X-Spam-Status: No, score=-2.302 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled 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 2-urkqTrUHQv for ; Thu, 13 Apr 2017 12:48:03 +0000 (UTC) Received: from mx2.ergon.ch (mx2.ergon.ch [87.239.214.74]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 46BCB5F1C2 for ; Thu, 13 Apr 2017 12:48:03 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.37,194,1488841200"; d="scan'208";a="362427" Received: from mahler.ergon.ch ([87.239.208.18]) by mx2.ergon.ch with ESMTP; 13 Apr 2017 14:47:57 +0200 Received: from [172.18.99.158] (unknown [172.18.99.158]) by mahler.ergon.ch (Postfix) with ESMTP id 32671EAE1 for ; Thu, 13 Apr 2017 14:47:57 +0200 (MEST) Subject: Re: blocking listener thread during SSL shutdown To: dev@httpd.apache.org References: <16eafa88-43b2-2af4-04f0-759af7d89fd3@ergon.ch> <9779c1d9-b913-382a-09ee-83b65069f7b6@apache.org> From: Frank Meier Message-ID: <6fc7805d-a021-5ec1-20e2-56e96683efa0@ergon.ch> Date: Thu, 13 Apr 2017 14:47:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 13 Apr 2017 12:48:07 -0000 On 12/04/17 21:37, Eric Covener wrote: > Any chance the logs also report write timeouts that precede this? Are > there "similar" threads waiting for writability of actual response > data (e.g. ap_invoke_handler in the stack) I'm not aware of any write timeouts in the httpd logs but then, this was a productive system with a "low" log level. Unfortunately I have no longer access to them. I still have the stacks (printed with gstack) of all the HTTPD processes, there I see most of the worker threads are idle (waiting in ap_queue_pop_something ()), but some are indeed also blocked in a poll() triggered by apr_rflush() (flushing data to the client). But since they are worker threads this is just normal behaviour, I'd say. The problem here is that the listener thread is blocked, which should never happen. I think if the listener thread is calling a function that might block, it should dispatch this task to another thread instead doing it itself. Or the function start_lingering_close_nonblocking() *really* has to be nonblocking.