Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24380

Re: SSL handshake hanging, despite bugfix in stdlib

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; '64-bit': 0.07; 'bug.': 0.09; 'claimed': 0.09; 'pointers': 0.09; 'terry': 0.09; 'wrong,': 0.09; 'python': 0.10; 'developers,': 0.10; 'bug': 0.11; 'jan': 0.11; 'antoine': 0.16; 'appear.': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'reedy': 0.16; 'subject:SSL': 0.16; '(the': 0.17; 'wrote:': 0.17; 'dec': 0.18; 'fix': 0.18; 'script.': 0.22; 'header:In-Reply-To:1': 0.23; 'header:User-Agent:1': 0.26; 'linux': 0.26; 'url:bugs': 0.27; '(this': 0.27; 'header:X -Complaints-To:1': 0.28; 'context.': 0.29; 'fixed': 0.30; "i'm": 0.30; 'code': 0.31; 'url:python': 0.31; 'appreciated.': 0.32; 'michael': 0.33; 'weeks': 0.34; 'getting': 0.35; 'should': 0.35; 'moved': 0.35; 'to:addr:python-list': 0.35; 'problem': 0.35; 'there': 0.35; 'url:org': 0.35; 'something': 0.36; 'reported': 0.36; 'said': 0.36; 'but': 0.36; 'subject:: ': 0.37; 'pm,': 0.38; 'remote': 0.38; 'end': 0.38; 'changed': 0.39; 'to:addr:python.org': 0.39; 'hello,': 0.39; 'received:org': 0.39; 'header:Received:5': 0.39; 'where': 0.40; 'latest': 0.60; 'subject:, ': 0.61; 'first': 0.62; 'more': 0.63; 'different': 0.63; 'hours': 0.64; 'show': 0.64; 'suspect': 0.66; 'making': 0.67; 'believe': 0.68; 'behavior': 0.70; 'attention': 0.73; 'hanging': 0.84; 'indefinitely': 0.84; 'received:fios.verizon.net': 0.84; '3.3': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: SSL handshake hanging, despite bugfix in stdlib
Date Sun, 24 Jun 2012 01:12:56 -0400
References <CAALP9A==QpaYkVYB0ACk1D3wVQ-_CQFcc6U=Bz=ADy7m06=EPA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <CAALP9A==QpaYkVYB0ACk1D3wVQ-_CQFcc6U=Bz=ADy7m06=EPA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1439.1340514787.4697.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340514787 news.xs4all.nl 6910 [2001:888:2000:d::a6]:33038
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24380

Show key headers only | View raw


On 6/23/2012 1:29 PM, Michael Gundlach wrote:
> Hello,
>
> http://bugs.python.org/issue5103 fixed a bug in Python2.6 where SSL's

I believe the fix first appeared in 2.6.6.

> handshake would hang indefinitely if the remote end hangs.
>
> However, I'm getting hanging behavior in an IMAP script.  When I Ctrl-C
> it after hours of hanging, I get the same stacktrace as reported in
> http://bugs.python.org/issue1251#msg72363 , though Antoine said that
> r80452 fixed issue 5103 as well as this bug.

He claimed that it should fix 1251, but I cannot see that there was a 
dependable code for making the problem appear.

> (This behavior started only in the last couple of weeks after a longer
> period working correctly, so I suspect something changed on GMail's end
> to trigger the bug.)

Possible.

> Am I do something wrong, or is this bug still not fixed?  Any pointers
> would be appreciated.  Python 2.6.6 (r266:84292, Dec  7 2011, 20:48:22)
> on 64-bit Linux 2.6.32.
> Michael

If you want any attention from developers, you will have to show a 
problem with 2.7.3 or latest 3.2+. I do not know that there is much 
change in 2.7, but I know there is more in change in 3.3 (the 
do_handshake call is moved and has a different context.

-- 
Terry Jan Reedy


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: SSL handshake hanging, despite bugfix in stdlib Terry Reedy <tjreedy@udel.edu> - 2012-06-24 01:12 -0400

csiph-web