[New-bugs-announce] [issue1223] httplib does not handle ssl end of file properly
report at bugs.python.org
Mon Oct 1 02:50:09 CEST 2007
New submission from Richie Ward:
I was using httplib to power my xml rpc script.
I had problems when I wanted to use SSL and I got this error:
File "/usr/lib/python2.5/httplib.py", line 1109, in recv
socket.sslerror: (8, 'EOF occurred in violation of protocol')
I figured out this was because of poor error handling in python.
May I suggest this as a fix to this bug:
$ diff /usr/lib/python2.5/httplib.py /usr/lib/python2.5/httplib.py~
< return self._ssl.read(len)
< except socket.sslerror:
> return self._ssl.read(len)
Just a note. I am by no means a python expert, just good enough to get
my work done.
I use Ubuntu gutsy.
components: Library (Lib)
title: httplib does not handle ssl end of file properly
versions: Python 2.6
Tracker <report at bugs.python.org>
More information about the New-bugs-announce