Re: How to raise a socket "104 connection reset by peer error"

2013-05-21 Thread Andrew Berg
On 2013.05.21 10:26, loial wrote: > For testing purposes I want my code to raise a socket "connection reset by > peer" error, so that I can test how I handle it, but I am not sure how to > raise the error. Arbitrary exceptions can be raised with the raise keyword. In Pyth

How to raise a socket "104 connection reset by peer error"

2013-05-21 Thread loial
For testing purposes I want my code to raise a socket "connection reset by peer" error, so that I can test how I handle it, but I am not sure how to raise the error. Any advice appreciated -- http://mail.python.org/mailman/listinfo/python-list

Re: connection reset by peer error

2008-10-11 Thread gigs
D'Arcy J.M. Cain wrote: On Sat, 11 Oct 2008 15:52:48 +0200 gigs <[EMAIL PROTECTED]> wrote: I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 "connection reset by peer". What exception i should use to catche this error Well, what exception do you get? Yo

Re: connection reset by peer error

2008-10-11 Thread D'Arcy J.M. Cain
On Sat, 11 Oct 2008 15:52:48 +0200 gigs <[EMAIL PROTECTED]> wrote: > I connect to web site with httplib.HTTPConnection. after some time i get this > error: 104 "connection reset by peer". What exception i should use to catche > this error Well, what exception do you get? Your traceback should t

connection reset by peer error

2008-10-11 Thread gigs
I connect to web site with httplib.HTTPConnection. after some time i get this error: 104 "connection reset by peer". What exception i should use to catche this error thx! -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib (54, 'Connection reset by peer') error

2008-06-21 Thread John Nagle
Tim Golden wrote: [EMAIL PROTECTED] wrote: Thanks for the help. The error handling worked to a certain extent but after a while the server does seem to stop responding to my requests. I have a list of about 7,000 links to pages I want to parse the HTML of (it's basically a web crawler) but aft

Re: urllib (54, 'Connection reset by peer') error

2008-06-18 Thread Tim Golden
[EMAIL PROTECTED] wrote: Thanks for the help. The error handling worked to a certain extent but after a while the server does seem to stop responding to my requests. I have a list of about 7,000 links to pages I want to parse the HTML of (it's basically a web crawler) but after a certain number

Re: urllib (54, 'Connection reset by peer') error

2008-06-18 Thread chrispoliquin
Thanks for the help. The error handling worked to a certain extent but after a while the server does seem to stop responding to my requests. I have a list of about 7,000 links to pages I want to parse the HTML of (it's basically a web crawler) but after a certain number of urlretrieve() or urlope

Re: urllib (54, 'Connection reset by peer') error

2008-06-13 Thread Jeff McNeil
It means your client received a TCP segment with the reset bit sent. The 'peer' will toss one your way if it determines that a connection is no longer valid or if it receives a bad sequence number. If I had to hazard a guess, I'd say it's probably a network device on the server side trying to stop

Re: urllib (54, 'Connection reset by peer') error

2008-06-13 Thread Chris
On Jun 13, 4:21 pm, [EMAIL PROTECTED] wrote: > Hi, > > I have a small Python script to fetch some pages from the internet. > There are a lot of pages and I am looping through them and then > downloading the page using urlretrieve() in the urllib module. > > The problem is that after 110 pages or so

urllib (54, 'Connection reset by peer') error

2008-06-13 Thread chrispoliquin
Hi, I have a small Python script to fetch some pages from the internet. There are a lot of pages and I am looping through them and then downloading the page using urlretrieve() in the urllib module. The problem is that after 110 pages or so the script sort of hangs and then I get the following tr