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 Richie
Recipients Richie
Date 2007-10-01.00:50:07
SpamBayes Score 0.11605599
Marked as misclassified No
Message-id <1191199809.02.0.233978380017.issue1223@psf.upfronthosting.co.za>
In-reply-to
Content
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
   return self._ssl.read(len)
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~
1109,1112c1109
<         try:
<             return self._ssl.read(len)
<         except socket.sslerror:
<             return
---
>         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.
History
Date User Action Args
2007-10-01 00:50:09Richiesetspambayes_score: 0.116056 -> 0.11605599
recipients: + Richie
2007-10-01 00:50:09Richiesetspambayes_score: 0.116056 -> 0.116056
messageid: <1191199809.02.0.233978380017.issue1223@psf.upfronthosting.co.za>
2007-10-01 00:50:08Richielinkissue1223 messages
2007-10-01 00:50:08Richiecreate