Florent Viard added the comment:

Thank you for your reply.
But I just realised that in my bug issue, I completely forgot to indicate what 
is "req" and so this is maybe the root of you telling me that the best is to 
fix the client code side as the traceback could be confusing.

This is how is defined req.:
opener = urllib2.build_opener(proxy_handler)
req    = urllib2.Request(url_src)

then:
while 1:
  read_list = select([req], ...)[0]
  if read_list:
    req.read(CHUNK_SIZE)


I found this issue with python 2.7, but I don't care a lot for it to be fixed 
in 2.7. As I saw that the code looks unchanged in python 3.x, I just reported 
the issue for it to be fixed/better handled in 3.x :-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to