[Xorp-cvs] XORP cvs commit: xorp/rtrmgr

Pavlin Radoslavov pavlin@icir.org
Fri, 15 Jul 2005 05:59:36 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-07-15 05:59:36 UTC

XORP CVS repository


Modified files:
	rtrmgr        xrl_rtrmgr_interface.cc 

Log message:
	Modify the ordering for sending various info by the rtrmgr to
	its clients (i.e., xorpsh). Now the rtrmgr sends first the module
	status info, and then the configuration.
	
	Previously, the rtrmgr was sending first the configuration, and then
	the module status.
	However, this created a race condition in the xorpsh during startup.
	Xorpsh would receive first the configuration, which would trigger its
	state to become "ready" for accepting commands from the user.
	Soon after that it would receive the status about which modules are
	running, but in the mean time the xorpsh operational commands for those
	modules weren't available.
	
	If xorpsh is running in interactive mode, the very short delay during
	startup is practically unnoticeable, but it becomes a problem if
	xorpsh is running in non-interactive mode (e.g., as part of UNIX
	pipe, etc).

Revision  Changes                                Path
1.39      +28 -18;  commitid: f2eb42d74ed07ea6;  xorp/rtrmgr/xrl_rtrmgr_interface.cc