[New-bugs-announce] [issue13109] telnetlib insensitive to connection loss

xy zzy report at bugs.python.org
Wed Oct 5 23:08:09 CEST 2011

New submission from xy zzy <the.stuffduff at gmail.com>:

Using python's telnetlib I can connect and communicate with a device.

While the telnet session is active I can disconnect the network cable of the device.

At this point, I would expect read_until() with a timeout to throw a socket.error, EOFError or perhaps an IOError, but what I actually get is a null string.

Because I'm reading in a loop, when the cable is reconnected the device will resume communicating, and the program will continue.

My best guess ts that read_until() or perhaps everything except open() is insensitive to the loss of a connection.

components: IO
messages: 144972
nosy: xy.zzy
priority: normal
severity: normal
status: open
title: telnetlib insensitive to connection loss
type: behavior

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list