STINNER Victor added the comment:

I added a timeout because test_urllibnet fails with a timeout after 15 minutes 
on the ARM buildbot and other tests of the same file also use a timeout.

I tried but failed to reproduce the timeout.

I ran the test after my change and it passes so I considered that it was ok. I 
understand your rationale for timeout, non blocking socket and read() returning 
None.

Can we modify the test to use a selector to wait until the socket is ready and 
only read available bytes, rather than reading all data?

Using a local server would also avoid blocking too long (take less than 15 min).

----------

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

Reply via email to