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
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
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
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
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
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
[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
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
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
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
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
11 matches
Mail list logo