[issue7927] SSL socket is not closed properly

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Probably a duplicate of issue5238.

--
nosy: +pitrou
resolution:  -> duplicate
status: open -> closed
superseder:  -> ssl makefile never closes socket

___
Python tracker 

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



[issue7927] SSL socket is not closed properly

2010-04-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee:  -> janssen
nosy: +janssen

___
Python tracker 

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



[issue7927] SSL socket is not closed properly

2010-04-08 Thread Daniel Diniz

Daniel Diniz  added the comment:

Confirmed on trunk.

--
nosy: +ajaksu2
priority:  -> normal
stage:  -> test needed
versions: +Python 2.7

___
Python tracker 

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



[issue7927] SSL socket is not closed properly

2010-02-14 Thread Péter Szabó

New submission from Péter Szabó :

Here is how to reproduce:

import socket
import ssl
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sslsock = ssl.SSLSocket(sock)
assert sslsock._sslobj is None
sslsock.connect(('www.gmail.com', 443))
assert isinstance(sslsock._sslobj, socket._ssl.SSLType)
assert 0 == sslsock._makefile_refs
sslsock.makefile().close()
assert 1 == sslsock._makefile_refs  # Should be 0.
assert sslsock._sslobj is not None  # Should be None.

I think the problem is in SSLSocket.makefile, which initializes the _fileobject 
with close=False by default.

--
components: Library (Lib)
messages: 99339
nosy: Péter.Szabó
severity: normal
status: open
title: SSL socket is not closed properly
type: resource usage
versions: Python 2.6

___
Python tracker 

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