Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45724

Re: Diagnosing socket "Connection reset by peer"

References <038ecc3e-1272-46c0-84d5-556daeffbde0@googlegroups.com>
From Matt Jones <matt.walker.jones@gmail.com>
Date 2013-05-22 06:46 -0500
Subject Re: Diagnosing socket "Connection reset by peer"
Newsgroups comp.lang.python
Message-ID <mailman.1960.1369223210.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

This typically indicates that the "peer" at the other end of the tcp
connection severed the session without the typical FIN packet.  If you're
treating the printer as a "blackbox" then there really isn't anything you
can do here except catch the exception and attempt to reconnect.

*Matt Jones*


On Wed, May 22, 2013 at 3:46 AM, loial <jldunn2000@gmail.com> 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 any
> additional traceing I can do(either within my python code or on the
> network) to establish what is causing this error?
>
> Currently I am simply trapping socket.erruor
>
> Python version is 2.6
>
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Diagnosing socket "Connection reset by peer" loial <jldunn2000@gmail.com> - 2013-05-22 01:46 -0700
  Re: Diagnosing socket "Connection reset by peer" Matt Jones <matt.walker.jones@gmail.com> - 2013-05-22 06:46 -0500
    Re: Diagnosing socket "Connection reset by peer" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2013-05-22 19:54 +0000
  Re: Diagnosing socket "Connection reset by peer" Dave Angel <davea@davea.name> - 2013-05-22 08:50 -0400
    Re: Diagnosing socket "Connection reset by peer" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2013-05-22 19:44 +0000
      Re: Diagnosing socket "Connection reset by peer" Grant Edwards <invalid@invalid.invalid> - 2013-05-22 19:55 +0000

csiph-web