[1896] in Kerberos-V5-bugs
Re: Telnet waits past dropped connection for encryption
daemon@ATHENA.MIT.EDU (Sam Hartman)
Fri Apr 19 21:48:31 1996
To: "Theodore Y. Ts'o" <tytso@MIT.EDU>
Cc: Sam Hartman <hartmans@MIT.EDU>, krb5-bugs@MIT.EDU
From: Sam Hartman <hartmans@MIT.EDU>
Date: 19 Apr 1996 21:48:07 -0400
In-Reply-To: "Theodore Y. Ts'o"'s message of Tue, 16 Apr 1996 14:13:23 -0400
>>>>> "Ted" == "Theodore Y Ts'o" <tytso@MIT.EDU> writes:
Ted> The telnet client will report that the remote end has dropped
Ted> the connection under two circumstances. One, when trying to
Ted> send data, if the write return the right error code. And
Ted> two, upon receiving a SIGPIPE. These two conditions should
Ted> be true whether or not the telnet is waiting for the
Ted> encryption negotiation to finish. What platform were you
Ted> having the problem on? Could this be a problem with the
Ted> platform not sending a SIGPIPE when the connection dropped?
It was on AIX, but from my experience, you only get a SIGPIPE
when *writing* to a closed connection. (This is certainly true on
Solaris and I believe BSD-ish OSes). Greg Hudson also confirms that
to the best of his knowledge, you don't get a SIGPIPE on read.
Instead, the read returns zero.
Ted> - Ted