luzakiru visco...@inbox.com added the comment:
Although perhaps not optimal, the patch is consistent with the rest of the code
and fixes the reasonably severe issue. Could this patch be applied in lieu of a
better one that can come later
New submission from luzakiru visco...@inbox.com:
readline() can return ''. This is handled in most places in httplib but not
when a tunnel is used. It leads to a infinite loop that permanently blocks the
program while wasting CPU cycles.
For the patch I simply copied the fix that is used