clayton rollins wrote:
> Killing the program off at that point and starting a new telnet connection 
> caused the message:
> (WARNING): Reading buffer overflow from 2130706433l:398

The warning message here was very poor i.e., using the buzz word "buffer
overflow" and showing the IP address as a numerical value. It has been
replaced. The problem is that your script probably send a line longer
than the supplied buffer can hold. If there's no newline character within
the buffer, getline() will return READ_OVERFLOW. ATM, the shell can
never recover from this state. This is a bug but there's no "buffer overflow".
 
> The telnet process associated with the running script is also killed when 
> killing the script, according to ps.

That's normal. If telnet gets a SIGHUP, it terminates which means that
"echo blah|telnet host port" will usually terminate without sending anything
to "host". telnet isn't meant to be used as backend for scripts.
 
-- 
Christian

Attachment: pgpGIMBrrQxUS.pgp
Description: PGP signature

Reply via email to