[Ace-users] [ace-bugs] netsvcs:"Name Service"; some extension for initialization of NameServerAcceptor; Name_Handler.*[patch] and fix
Johnny Willemsen
jwillemsen at remedy.nl
Mon Dec 3 03:30:19 CST 2007
Hi,
Thanks for using the PRF form. Can you store the patches in bugzilla (see
http://deuce.doc.wustl.edu/bugzilla/index.cgi) for integration
Regards,
Johnny Willemsen
Remedy IT
Postbus 101
2650 AC Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***
> ACE VERSION: 5.6.1
>
> HOST MACHINE and OPERATING SYSTEM: Win32
>
> SYNOPSIS:
> NameServer(ACE_Name_Acceptor)cannot be properly initialized, if
> configuration parameters
> consist more then one (-p [port]) parameter.
>
> DESCRIPTION:
> Example from ACE_wrappers\netsvcs\ACE-netsvcs.html
> config string :
>
> dynamic Naming_Service Service_Object *
> ../lib/netsvcs:_make_ACE_Name_Acceptor()
> "-p 20222 -c NET_LOCAL -l /tmp -s MYDATABASE"
>
> If use this config file for starting up a server
> ACE_Name_Acceptor open port on another then port 20222.
>
> Bug: Name_Handler.cpp, line 64: this->parse_args (argc, argv);
> return value not checked.
>
>
> SAMPLE FIX/WORKAROUND:
> My patch fix it, and allow use all range config options
> (discrabled in
> ACE_wrappers\netsvcs\ACE-netsvcs.html)
> for ACE_Name_Acceptor::init.
> Description:
> Now ACE_Name_Acceptor own ACE_Naming_Context, and dont use singleton
> NAMING_CONTEXT::instance().
> ACE_Naming_Context of ACE_Name_Acceptor initialized in
> ACE_Name_Acceptor::parse_args;
> In case using: -c NET_LOCAL, hostname will set "localhost".
>
>
> Patch tested on.
>
> attaches: patches, modif sources.
>
>
>
> ____________________________________________
> Vladislav Zverev
> GTSS , St.Petersburg, Russia
>
More information about the Ace-users
mailing list