Re: urllib2 timeout not working - stalls for an hour or so

2016-09-02 Thread Sumeet Sandhu
On Friday, September 2, 2016 at 6:05:05 AM UTC-7, Peter Otten wrote: > Sumeet Sandhu wrote: > > > Hi, > > > > I use urllib2 to grab google.com webpages on my Mac over my Comcast home > > network. > > > > I see about 1 error for every 50 pages grabbed. Most exceptions are > > ssl.SSLError, very f

Re: urllib2 timeout not working - stalls for an hour or so

2016-09-02 Thread Peter Otten
Sumeet Sandhu wrote: > Hi, > > I use urllib2 to grab google.com webpages on my Mac over my Comcast home > network. > > I see about 1 error for every 50 pages grabbed. Most exceptions are > ssl.SSLError, very few are socket.error and urllib2.URLError. > > The problem is - after a first exception

urllib2 timeout not working - stalls for an hour or so

2016-09-02 Thread Sumeet Sandhu
Hi, I use urllib2 to grab google.com webpages on my Mac over my Comcast home network. I see about 1 error for every 50 pages grabbed. Most exceptions are ssl.SSLError, very few are socket.error and urllib2.URLError. The problem is - after a first exception, urllib2 occasionally stalls for upt