Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YlmhJ-00028I-42 for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2015 23:07:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YlmhI-0006Gt-JZ for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2015 23:07:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YlmhH-0006Gm-Ky for pgsql-bugs@postgresql.org; Fri, 24 Apr 2015 23:07:47 +0000 Received: from mail-ig0-f169.google.com ([209.85.213.169]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Ylmh8-0007nC-Nv for pgsql-bugs@postgresql.org; Fri, 24 Apr 2015 23:07:46 +0000 Received: by igblo3 with SMTP id lo3so26535116igb.1 for ; Fri, 24 Apr 2015 16:07:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=MGYKAery90RkQzMEko7oD+SkTSEk2PQnufTsdtii/wM=; b=PA8rYzJBiuR08inN3LCZBprnItJSFEGTBMKqteRGevOmiKd+9PdbdH+urzo971OANE klbAXGPVuI0l8U8OdzB62RcJ37rwLTUToMi5vLsmHs+TCX2MClwlI93ytRVHAPalrQYs FJAaV2vIc04Hphf1DdIJ9zXdML/xaIPN93dFgbq/bJkDn0236gk5ckoWRvbFrOX3p7DW TRiFDXsDNftGAEIFmB/i1hSOq4tOP+lo8GdeZYZQJMGeNj1oXsWkH1iWqJdZAQlnoMmI 4qvMcwadunPkgjl48dOBb6+6GI88183QkJE1J0tbNCniCY7pkj/aN5H0rEKdSb2evHbR 90tQ== X-Gm-Message-State: ALoCoQk6jCW5W7HDWRH/v9mr5CtOn2tQ+2LRicQJynNtU+AGov8tjIB65bU3SGwxALoZo6ra5+5c X-Received: by 10.50.221.98 with SMTP id qd2mr353579igc.37.1429916856088; Fri, 24 Apr 2015 16:07:36 -0700 (PDT) Received: from [192.168.10.110] (c-73-185-140-154.hsd1.mn.comcast.net. [73.185.140.154]) by mx.google.com with ESMTPSA id t41sm8073113ioe.5.2015.04.24.16.07.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2015 16:07:35 -0700 (PDT) Message-ID: <553ACCE7.9050000@greatbiztools.com> Date: Fri, 24 Apr 2015 18:08:23 -0500 From: "Peter J. Farrell" Organization: GreatBizTools, LLC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: Client deadlocks when connecting via ssl References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Amjith Ramanujam wrote on 10/08/2014 03:47 PM: > I'm accessing Postgresql from Python using Psycopg2. I'm making > multiple calls from threads and once every few times it causes the > script to lock up and become unresponsive. This only happens if I'm > also making HTTPS calls in addition to Postgres TCP calls with SSL. Just wanted to add that we're seeing this libpq pq_lockingcallback bug in our production web apps on Heroku using Gunicorn, New Relic and Postgres on Heroku. We've relieved some of the symptoms by implementing database connection pooling with high timeouts and switching from Gunicorn to UWsgi so we are Harakiri rogue workers that are deadlocked. Hoping this is fixed eventually... Initial Background: http://blog.maestropublishing.com/2015/01/12/gunicorn-dyno-death-spiral-on-heroku/ Discovery of Bug: http://blog.maestropublishing.com/2015/01/16/gunicorn-dyno-death-spiral-on-heroku-part-ii/ -- Peter J. Farrell Principal Technologist - GreatBizTools, LLC 651-747-1250 x101 * Learn about VSRE. I prioritize emails with VSRE in the subject! http://vsre.info/ * Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs