[issue12065] test_ssl failure when svn.python.org fails to resolve

2012-12-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3436769a7964 by Antoine Pitrou in branch '2.7':
Backport Python 3.2 fix for issue #12065, and add another test for 
SSLSocket.connect_ex().
http://hg.python.org/cpython/rev/3436769a7964

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Here is a patch.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file22023/ssl_connect_ex.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-18 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 019d8ccdf03b by Antoine Pitrou in branch '3.2':
Issue #12065: connect_ex() on an SSL socket now returns the original errno
http://hg.python.org/cpython/rev/019d8ccdf03b

New changeset 162ed9841f14 by Antoine Pitrou in branch 'default':
Issue #12065: connect_ex() on an SSL socket now returns the original errno
http://hg.python.org/cpython/rev/162ed9841f14

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-18 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-12 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

See

http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.2/builds/34/steps/test/logs/stdio

Antoine says that connect_ex should be returning an error, not None, in that 
situation.

--
components: Tests
keywords: buildbot
messages: 135853
nosy: r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: test_ssl failure when svn.python.org fails to resolve
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +pitrou
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-12 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Judging by ssl.connect_ex's source code, this can only mean that socket.connect 
raised a socket error with a None errno...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12065] test_ssl failure when svn.python.org fails to resolve

2011-05-12 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Which probably means it was a socket.timeout. When called on a non-SSL socket, 
connect_ex() returns 11 (EAGAIN) for timeout errors:

 s = socket.socket()
 s.settimeout(0.1)
 s.connect_ex((svn.python.org, 443))
11

But on SSL sockets, connect_ex() loses the errno (because it calls connect() on 
the underlying socket, not connect_ex(), and socket.timeout isn't raised with 
an errno):

 s = ssl.wrap_socket(socket.socket())
 s.settimeout(0.1)
 print(s.connect_ex((svn.python.org, 443)))
None

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com