Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CC4C18CE7 for ; Thu, 11 Feb 2016 21:55:04 +0000 (UTC) Received: (qmail 43860 invoked by uid 500); 11 Feb 2016 21:55:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 43796 invoked by uid 500); 11 Feb 2016 21:55:00 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 43785 invoked by uid 99); 11 Feb 2016 21:55:00 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 21:55:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3886AC0873 for ; Thu, 11 Feb 2016 21:55:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qIREvAjnnG_E for ; Thu, 11 Feb 2016 21:54:59 +0000 (UTC) Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8825931AF8 for ; Thu, 11 Feb 2016 21:54:58 +0000 (UTC) Received: by mail-vk0-f47.google.com with SMTP id c3so47520369vkb.3 for ; Thu, 11 Feb 2016 13:54:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=M+3pVEP60JAvf26Q8o/HoRJl0a8VLJILo8H5Fgu916Q=; b=Q3tZ/du32QnzCPqSzflGtMun5ljgCer07DNSH8PQMuFN0qRxvxtkvHBqxuIGUaapaO tCRCvVdxFfVJzhn3170T/uKWzbBRxL0aLGkLCqsrRcy59RGv0R3BohrqwKBcfAD/WGaE tGTrG/I3RJ15nO6AQMvNxE2dreWKuFwLwhnMqHOZG+i1zKCQ62s0lYZINZXDrNJT/V3N 8o1cB4vL1Z+KGUhHNHeZCQ6iGDvc+G7/XbTUhzfcTnNT81elqZoq8XfHL0YGKzlJe35M 4SdPuX6DcwLptmdEvfrUED5GyWmW64dCoNJKE0G9CqL01TNZ5EJUhIN6X7AD06QyKiev 9mEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=M+3pVEP60JAvf26Q8o/HoRJl0a8VLJILo8H5Fgu916Q=; b=gocTzskXA2mgiN9bRQ6aV5G/T5Ed5oI7Sqk3E1ZybpwA3+SQoQ6sgCDsnWjUo68/v9 uGCYCcgK4Qegth4cCsC1e5VXE7EkqBjNkrJuGNVj1wb9nY/JxDkf7kyoYlaUive0UyZT 7oVcMFgef/nuAqbVYt4F/BCWil8vnDSuXmVCXAtQp3+gWKT8MNYLlKaPblAxAwMQkZu6 RIeFUZtrFoWh7099avhOJX8yoEdvdyvW+TNnLCKDQMFln2u/J6VVoEGdzGnCWPNGI1la pP75wo0pUtvS82NZaEq+H3VNso4b9yiS4MnqIqAZcKVB4TlPk0GjAZCf/Az6J7G4BQdo R2Pw== X-Gm-Message-State: AG10YOQozoQPdCLX5O3d94vbMUxgOLcNHEE5qBquAnLVQpzF3KEE07l6UWJ0bKeOClPaFKIduEN6v3WWGKNnWg== MIME-Version: 1.0 X-Received: by 10.31.156.129 with SMTP id f123mr36303188vke.40.1455227697194; Thu, 11 Feb 2016 13:54:57 -0800 (PST) Received: by 10.31.78.199 with HTTP; Thu, 11 Feb 2016 13:54:57 -0800 (PST) Date: Thu, 11 Feb 2016 14:54:57 -0700 Message-ID: Subject: NIO Thread Behavior With Http Connections From: Bart Wood To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=001a1140f23cf575ae052b8599b9 --001a1140f23cf575ae052b8599b9 Content-Type: text/plain; charset=UTF-8 Will the NIO connector reuse a thread for multiple http connections in flight? For example, an nio thread begins processing a request for an http connection. The thread begins blocking on a slow database socket read. Will Tomcat let the thread be reused in flight for other http connections? If code was storing data in thread local storage I'd imagine there could be problems. Thanks, -Bart Wood --001a1140f23cf575ae052b8599b9--