Fixed timeout errors in httplib with Python 2.6+.