This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xy.zzy
Recipients xy.zzy
Date 2011-10-05.21:08:08
SpamBayes Score 0.0015647891
Marked as misclassified No
Message-id <1317848889.2.0.2461830982.issue13109@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-10-05 21:08:09xy.zzysetrecipients: + xy.zzy
2011-10-05 21:08:09xy.zzysetmessageid: <1317848889.2.0.2461830982.issue13109@psf.upfronthosting.co.za>
2011-10-05 21:08:08xy.zzylinkissue13109 messages
2011-10-05 21:08:08xy.zzycreate