From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id E5B696FF93 for ; Mon, 7 Mar 2016 21:41:12 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 07 Mar 2016 13:41:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,553,1449561600"; d="scan'208";a="61605901" Received: from linux.intel.com ([10.23.219.25]) by fmsmga004.fm.intel.com with ESMTP; 07 Mar 2016 13:41:12 -0800 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id 598426A4002; Mon, 7 Mar 2016 14:28:58 -0800 (PST) Date: Mon, 7 Mar 2016 21:21:20 +0200 From: Ed Bartosh To: Joshua G Lock Message-ID: <20160307192120.GA5834@linux.intel.com> Reply-To: ed.bartosh@linux.intel.com References: <1457079220-27980-1-git-send-email-ed.bartosh@linux.intel.com> <1457087406.3285.3.camel@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <1457087406.3285.3.camel@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: bitbake-devel@lists.openembedded.org Subject: Re: [PATCH] xmlrpc: fix bug in setting XMLRPCServer.single_use X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 21:41:16 -0000 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Mar 04, 2016 at 10:30:06AM +0000, Joshua G Lock wrote: > On Fri, 2016-03-04 at 10:13 +0200, Ed Bartosh wrote: > > XMLRPCServer.single_use attribute was always set to False. > > This caused xmlrpc server to keep running after build is done as > > BitBakeServerCommands.removeClient only shuts down server if its > > single_use attribute is set to True. > > > > Signed-off-by: Ed Bartosh > > --- > >  bitbake/lib/bb/server/xmlrpc.py | 3 ++- > >  1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/bitbake/lib/bb/server/xmlrpc.py > > b/bitbake/lib/bb/server/xmlrpc.py > > index 1ceca51..d627550 100644 > > --- a/bitbake/lib/bb/server/xmlrpc.py > > +++ b/bitbake/lib/bb/server/xmlrpc.py > > @@ -193,6 +193,8 @@ class XMLRPCServer(SimpleXMLRPCServer, > > BaseImplServer): > >          BaseImplServer.__init__(self) > >          if (interface[1] == 0):     # anonymous port, not getting > > reused > >              self.single_use = True > > +        else: > > +            self.singe_use = False > > This won't work, right? Typo. > Why do you think so? It works for me so far :) -- Regards, Ed