Indy Telnet occasionally hangs...
I am using Indy to telnet to port 25 for a list of servers.
However, the TIdTelnet component sometimes hangs.
Here's what I do
for list of servers
get server name
try
connect to server in 5 secs, eg Telnet.Connect(5000);
readln(5000)
disconnect
except
end
end
Now, the part that Indy hangs is at Readln. I set ReceiveTimeout to
5000, so theoretically, if it doesn't receive anything in 5 secs, it
should return. But, sometimes, it doesn't return after a few minutes.
Can anyone help me figure out why the Telnet component is{*word*154}, or
how I can work around this?