This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients Arfrever, flox, giampaolo.rodola, janssen, pitrou, vstinner
Date 2010-04-05.18:25:38
SpamBayes Score 7.8715046e-10
Marked as misclassified No
Message-id <1270491940.54.0.0683316125037.issue8108@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it's the _sslobj.shutdow() call:

  File "test_ftplib.py", line 332, in handle_close
    self.socket = self.socket.unwrap()
  File "/usr/local/lib/python2.7/ssl.py", line 258, in unwrap
    s = self._sslobj.shutdown()
error: [Errno 0] Error

Since it's not clear to me where exactly this comes from, whether it's from the Python C binding or OpenSSL itself, I tried to put some debugging printf() calls in Modules/_ssl.c, but it seems that  after installing OpenSSL 0.9.8m I'm no longer able to compile Python 2.7 from sorces.
This is what I get when I run ./configure; make:

gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/giampaolo/svn/python-2.7/Include -I/home/giampaolo/svn/python-2.7 -c /home/giampaolo/svn/python-2.7/Modules/_ssl.c -o build/temp.linux-i686-2.7/home/giampaolo/svn/python-2.7/Modules/_ssl.o
gcc -pthread -shared build/temp.linux-i686-2.7/home/giampaolo/svn/python-2.7/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.linux-i686-2.7/_ssl.so
*** WARNING: renaming "_ssl" since importing it failed: build/lib.linux-i686-2.7/_ssl.so: undefined symbol: inflate
History
Date User Action Args
2010-04-05 18:25:40giampaolo.rodolasetrecipients: + giampaolo.rodola, janssen, pitrou, vstinner, Arfrever, flox
2010-04-05 18:25:40giampaolo.rodolasetmessageid: <1270491940.54.0.0683316125037.issue8108@psf.upfronthosting.co.za>
2010-04-05 18:25:38giampaolo.rodolalinkissue8108 messages
2010-04-05 18:25:38giampaolo.rodolacreate