Re: urllib2.urlopen error "socket.error: [Errno 104] Connection reset by peer"

2015-05-12 Thread dieter
"Jia CHEN" writes: > I have the error below when trying to download the html content of a webpage. > I can open this webpage in a browser without any problem. "Connection reset by peer" means that the other side (the HTTP server in your case) has closed the connecti

urllib2.urlopen error "socket.error: [Errno 104] Connection reset by peer"

2015-05-04 Thread Jia CHEN
/httplib.py", line 409, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 365, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) socket.error: [Errno 104] Connection reset by peer >>> Best, Jia CHEN-- https://mail.python.org/mailman/listinfo/python-list

Re: http: connection reset by peer

2015-03-06 Thread Chris Angelico
On Sat, Mar 7, 2015 at 9:12 AM, Grant Edwards wrote: > On 2015-03-06, Emile van Sebille wrote: >> On 3/5/2015 12:18 PM, Chris Angelico wrote: >>> On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman wrote: >> After mucking about with it with no results, I went on to another job -- when I came

Re: http: connection reset by peer

2015-03-06 Thread Grant Edwards
On 2015-03-06, Emile van Sebille wrote: > On 3/5/2015 12:18 PM, Chris Angelico wrote: >> On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman wrote: > >>> After mucking about with it with no results, I went on to another job >>> -- when I came back to this one it was working. >> >> Huh. Well, if it recur

Re: http: connection reset by peer

2015-03-06 Thread Emile van Sebille
On 3/5/2015 12:18 PM, Chris Angelico wrote: On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman wrote: After mucking about with it with no results, I went on to another job -- when I came back to this one it was working. Huh. Well, if it recurs, see what you can find out about it... otherwise, pr

Re: http: connection reset by peer

2015-03-05 Thread Chris Angelico
On Fri, Mar 6, 2015 at 5:37 AM, Ethan Furman wrote: > On 03/04/2015 01:26 AM, Chris Angelico wrote: > >> Do you have Mozilla Firebug, and if so, can you try the file >> attachment with Firebug active? At very least, you should be able to >> see exactly what request is getting reset, and then you c

Re: http: connection reset by peer

2015-03-05 Thread Ethan Furman
On 03/04/2015 01:26 AM, Chris Angelico wrote: > Do you have Mozilla Firebug, and if so, can you try the file > attachment with Firebug active? At very least, you should be able to > see exactly what request is getting reset, and then you could try to > simulate that exact request with a simpler ha

Re: http: connection reset by peer

2015-03-04 Thread Ethan Furman
On 03/04/2015 01:26 AM, Chris Angelico wrote: > On Wed, Mar 4, 2015 at 5:33 PM, Ethan Furman wrote: >> >> I login to the roundup server -- I can search, create new issues, post new >> messages via both email and the web >> interface, and I can attach files... but only via email; if I try to attach

Re: http: connection reset by peer

2015-03-04 Thread Chris Angelico
On Wed, Mar 4, 2015 at 5:33 PM, Ethan Furman wrote: > I login to the roundup server -- I can search, create new issues, post new > messages via both email and the web > interface, and I can attach files... but only via email; if I try to attach a > file via the web interface I immediately > get

http: connection reset by peer

2015-03-03 Thread Ethan Furman
This may seem off-topic, but it's an issue for my roundup server which is written in Python, so hopefully that will buy me some slack. ;) And, yes, I did post a message to the Roundup Users mailing list first, but haven't received any replies. So, the basic problem is: I login to the roundup s

Re: Diagnosing socket "Connection reset by peer"

2013-05-22 Thread Grant Edwards
On 2013-05-22, Jorgen Grahn wrote: > On Wed, 2013-05-22, Dave Angel wrote: >> On 05/22/2013 04:46 AM, loial wrote: >>> >>> >>> Is there any additional traceing I can do(either within my >>> python code or on the network) to establish what is causing this >>> error? >> >> Try using Wiresha

Re: Diagnosing socket "Connection reset by peer"

2013-05-22 Thread Jorgen Grahn
On Wed, 2013-05-22, Matt Jones wrote: > On Wed, May 22, 2013 at 3:46 AM, loial wrote: > >> I have a sockets client that is connecting to a printer and occassionally >> getting the error "104 Connection reset by peer" >> >> I have not been able to dia

Re: Diagnosing socket "Connection reset by peer"

2013-05-22 Thread Jorgen Grahn
On Wed, 2013-05-22, Dave Angel wrote: > On 05/22/2013 04:46 AM, loial wrote: >> >> >> Is there any additional traceing I can do(either within my >> python code or on the network) to establish what is causing this >> error? > > Try using Wireshark. It can do a remarkable job of filtering,

Re: Diagnosing socket "Connection reset by peer"

2013-05-22 Thread Dave Angel
On 05/22/2013 04:46 AM, loial wrote: Is there any additional traceing I can do(either within my python code or on the network) to establish what is causing this error? Try using Wireshark. It can do a remarkable job of filtering, capturing, and analyzing packets. It can also rea

Re: Diagnosing socket "Connection reset by peer"

2013-05-22 Thread Matt Jones
mpt to reconnect. *Matt Jones* On Wed, May 22, 2013 at 3:46 AM, loial wrote: > I have a sockets client that is connecting to a printer and occassionally > getting the error "104 Connection reset by peer" > > I have not been able to diagnose what is causing this. Is there

Diagnosing socket "Connection reset by peer"

2013-05-22 Thread loial
I have a sockets client that is connecting to a printer and occassionally getting the error "104 Connection reset by peer" I have not been able to diagnose what is causing this. Is there any additional traceing I can do(either within my python code or on the network) to establis

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

2011-09-14 Thread Thomas Jollans
On 14/09/11 04:39, 守株待兔 wrote: > i want to know, my computer(client) reset it ,or the yahoo > (server) reset it ,what is the peer?? This refers to your program's peer, as in the entity it's communicating with. When you're the client, the other party (which, once the connection is establis

Connection reset by peer

2011-09-13 Thread 守株待兔
afe_read(chunk_left)) File "/usr/lib/python2.7/httplib.py", line 647, in _safe_read chunk = self.fp.read(min(amt, MAXAMOUNT)) File "/usr/lib/python2.7/socket.py", line 380, in read data = self._sock.recv(left) error: [Errno 104] Connection reset by peer i want

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

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 ge

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
thon.framework/Versions/2.5/lib/ > python2.5/httplib.py", line 385, in begin >version, status, reason = self._read_status() > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/httplib.py", line 343, in _read_status >line = self.fp.re

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

2008-06-13 Thread Chris
/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/httplib.py", line 343, in _read_status >     line = self.fp.readline() >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/socket.py", line 331, in readline >     data = recv(1) > IO

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

2008-06-13 Thread chrispoliquin
quot;, line 385, in begin version, status, reason = self._read_status() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/httplib.py", line 343, in _read_status line = self.fp.readline() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/s

Re: smtplib error('Connection reset by peer')

2006-01-08 Thread Tim Roberts
;>> server.quit() > >I should be able to send an email to the recipient, in this case >[EMAIL PROTECTED] When I try to create the server(the line 'server = >smtplib.SMTP('localhost')) I get the following error message: >... >error: (10054, 'Connection r

Re: smtplib error('Connection reset by peer')

2006-01-06 Thread LordLaraby
Do you actually run an SMTP server on your local machine and is it configured to accept mail on the localhost interface and does it allow mail forwarding such as you attempted? LL -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib error('Connection reset by peer')

2006-01-05 Thread Tim Williams (gmail)
server(the line 'server =smtplib.SMTP('localhost')) I get the following error message: [snip] error: (10054, 'Connection reset by peer')Anyone got a pointer as to what I could do? Try turning off your XP firewall . If this doesn't help,  try this from a command

Re: smtplib error('Connection reset by peer')

2006-01-04 Thread Van_Gogh
I should mention that I'm on Windows XP. -- http://mail.python.org/mailman/listinfo/python-list

smtplib error('Connection reset by peer')

2006-01-04 Thread Van_Gogh
y", line 241, in __init__ (code, msg) = self.connect(host, port) File "C:\Python24\lib\smtplib.py", line 304, in connect (code, msg) = self.getreply() File "C:\Python24\lib\smtplib.py", line 345, in getreply line = self.file.readline() File "C:\Python24\lib\soc

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Ben Sizer
Steve Holden wrote: > Do note, though, that if you aren't using some means (threading, > forking, etc) of handling the connections asynchronously then your > server will normally only queue a very limited number of connections > (usually 5 at most). The example given by the original poster seeme

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Steve Holden
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > >>Occasionally (perhaps 5% of the time) the following exception gets >>raised: >> >>(10054, 'Connection reset by peer') > > > Generally this just means the connection has closed through som

Re: Minimizing Connection reset by peer exceptions

2005-10-20 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Occasionally (perhaps 5% of the time) the following exception gets > raised: > > (10054, 'Connection reset by peer') Generally this just means the connection has closed through some unusual means, perhaps by being turned off, or a network cable

Minimizing Connection reset by peer exceptions

2005-10-19 Thread mirandacascade
, 'Connection reset by peer') Are there any changes I can make to the code above to eliminate the 10054 errors or to reduce the probability of encountering the 10054 error? Are there any settings that make the 'Connection reset by peer' condition less likely? Other posts on