🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Steven M. Schultz Tue, 31 Jul 1990 20:53
telnet bug on close followed by open (part 2)
#72
Author: Steven M. Schultz
Date: Tue, 31 Jul 1990 20:53
34 lines
1318 bytes
Subject: telnet bug on close followed by open (part 2)
Index:	ucb/telnet.c 2.10BSD

Description:
	Telnet can hang when doing a close followed by a open.

Repeat-By:
	telnet> toggle options
	telnet> open foobar
	telnet> close
	telnet> open foobar

	and telnet will hang.

Fix:

	The earlier fix which changed the return value of bye() is
	still needed, the problem was that patch only fixed part
	of the problem.  The rest of the solution is to clear
	the local telnet's option list.

*** telnet.c.old	Fri Jul 27 14:25:20 1990
--- telnet.c	Tue Jul 31 13:39:39 1990
***************
*** 1984,1989 ****
--- 1984,1991 ----
  		/* reset his options */
  		for (op = hisopts; op < &hisopts[256]; op++)
  			*op = 0;
+ 		/* reset our options */
+ 		bzero(myopts, 256);
  	}
  	return 0;
  }
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads