"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
/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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
/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
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
;>> 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
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
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
I should mention that I'm on Windows XP.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
, '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
38 matches
Mail list logo