[1102] in Kerberos-V5-bugs
Kerberos 5-B4-pl3 bug report (telnet/sys_bsd.c)
daemon@ATHENA.MIT.EDU (Craig Leres)
Wed Feb 22 21:18:27 1995
To: krb5-bugs@MIT.EDU, dab@cray.com
Cc: hobbit@asylum.sf.ca.us, jef@ee.lbl.gov (Jef Poskanzer)
Date: Wed, 22 Feb 95 18:18:06 PST
From: Craig Leres <leres@ee.lbl.gov>
While running under Solaris 2.4 (aka SunOS 5.4) we found that telnet
client would hang when more than about 2k bytes worth of data were sent
from the remote side. One workaround is to use read() instead of
recv(). (Another would be to uninstall Solaris...)
Context diffs appended.
Craig
------
*** kerberosV.virgin/src/appl/telnet/telnet/sys_bsd.c Thu Aug 18 14:07:45 1994
--- kerberosV/src/appl/telnet/telnet/sys_bsd.c Wed Feb 22 17:53:26 1995
***************
*** 1123,1129 ****
--- 1123,1134 ----
}
settimer(didnetreceive);
#else /* !defined(SO_OOBINLINE) */
+ #ifdef notdef
+ /* XXX this loses under Solaris 2.4 */
c = recv(net, (char *)netiring.supply, canread, 0);
+ #else
+ c = read(net, (char *)netiring.supply, canread);
+ #endif
#endif /* !defined(SO_OOBINLINE) */
if (c < 0 && errno == EWOULDBLOCK) {
c = 0;