Debugging "broken pipe" (in telnetlib)

Samuel knipknap at gmail.com
Tue Jul 3 08:12:22 EDT 2007


Hi,

When using telnetlib, the connection sometimes breaks with the
following error:

"error: (32, 'Broken pipe')"

where the traceback points to

self.sock.send(buffer)

in telnetlib.py. The problem is unreproducible, but happens fairly
often (approx. 5% of the time). Any idea how to debug such a problem?
How can I find out what broke the pipe?

-Samuel




More information about the Python-list mailing list