Issue 1003323: telnetlib on Windows: read_until() freezes (original) (raw)

Created on 2004-08-04 14:45 by yturgeon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bug.py yturgeon,2004-08-04 14:45 script that reproduce the bug each time + 2 different outputs at the end of the file (with and without formating char)
Messages (4)
msg21937 - (view) Author: Yannick Turgeon (yturgeon) Date: 2004-08-04 14:45
I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function seems to freeze after a couple of command. I did a simplified script (attached) that reproduce the problem each time. In the script, when I send the command "echo bar7" to the telnet session, it freezes forever without a Timeout. I'm using 2.3.4 on Windows 2000 Server. According to a feedback for the comp.lang.python newsgroup, this problem do not occur on linux systems. Thanks Yannick yannick.turgeon@cablevision.qc.ca
msg21938 - (view) Author: Yannick Turgeon (yturgeon) Date: 2004-08-06 21:09
Logged In: YES user_id=280297 Forget this bug. In fact it's not a bug. The problem comes from the fact that Microsoft does not use a *real* telnet server. It's documented in Perl Net::Telnet doc. They are not fully respecting telnet protocol.
msg21939 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-08-07 16:29
Logged In: YES user_id=6656 OK!
msg21940 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-08-07 16:29
Logged In: YES user_id=11375 Closing as requested.
History
Date User Action Args
2022-04-11 14:56:06 admin set github: 40685
2004-08-04 14:45:41 yturgeon create