Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2801399ybl; Thu, 29 Aug 2019 13:07:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqya/0gJs1VVtDPHD8Mz8r/CugBMf5kPn1K5mj0cbdn5zZSoABHpBvrdHiycGScgkcVImeAK X-Received: by 2002:a17:90a:19c4:: with SMTP id 4mr11966518pjj.20.1567109270035; Thu, 29 Aug 2019 13:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567109270; cv=none; d=google.com; s=arc-20160816; b=xI2wSZwt3m1PzpXxh8FfSObTbyEdMH359OV6SAS0iMspAxLvry9WAR/htSDDCXzPB0 3mpxOBKG2cQgZDFw+Q4fWBZVG1pC/wBNNGkvWVBPCvmUprACYbVRZQwVQD4sbmI8WNVb G5ekELwKClfyt4/58G5rpixeC+9XfkGI+1/853BtZ/0MUhUJIejAbQrkvWC2vdfCawhN tsbKwZ64Zd1bP2EzlKwOAwDjWYUVqrRL1UzfooeEGeky+CGFDOkAwbw/wigILbQCE8B7 NuFqgUsezD4niuX16uDF2IYMwZs4zUWeVIlLqOX3B8TUzveyGHBU7sMJhBe9OQ2zAFDg UTRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=TSpJNiLMpd/ep5zT5IcVS3o3G35X0j3Bzkj8mAA256g=; b=NVztszirE586EO3aOE0zc8yGA/tJwOANBcaTlfp7L/TLBEe45WH84M5dzNFxgZu4u7 OFfGEcaRkohLfIUOnRjMWu/NSpQRzqYH5F7zAe62w3t/91qiUfrZEYYJuSuNbPtK89G8 KpXJ4oLnAqkuEmYVpOF4TnS5YWhaLvXhmafx5A7Kr+r+ReQPP0s47JVAKolsSbf7WCmV YMU3epBclIvl0BhfC4wI37PPbNFxKEfDf3BmNTiLDYPz5SRXAbCmzdls9c4IQh10W6yV X0gVhfioOf3+MyRIJPmJ5loFW4qok61Ivx5mRwqq+2PC9eO5rN7kRMtHayAHEgGb92eM 3pTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si2894584pls.370.2019.08.29.13.07.34; Thu, 29 Aug 2019 13:07:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbfH2UH2 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Aug 2019 16:07:28 -0400 Received: from mga18.intel.com ([134.134.136.126]:64632 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbfH2UH1 (ORCPT ); Thu, 29 Aug 2019 16:07:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 13:07:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,444,1559545200"; d="scan'208";a="197874188" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga001.fm.intel.com with ESMTP; 29 Aug 2019 13:07:26 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.221]) by ORSMSX105.amr.corp.intel.com ([169.254.2.66]) with mapi id 14.03.0439.000; Thu, 29 Aug 2019 13:07:26 -0700 From: "Gix, Brian" To: "michal.lowas-rzechonek@silvair.com" CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ] mesh: Log D-Bus method call errors Thread-Topic: [PATCH BlueZ] mesh: Log D-Bus method call errors Thread-Index: AQHVVy2bkXDzmW+5gESx2fBstT1SHacRQJeAgAEnZYCAAJELAIAAFZEA//+NzbA= Date: Thu, 29 Aug 2019 20:07:26 +0000 Message-ID: <38E88E55-4291-47AF-B502-47922E9FBA56@intel.com> References: <20190820075654.2195-1-michal.lowas-rzechonek@silvair.com> <685bc703108f5329b861f5c5f87301b44bddd8e0.camel@intel.com> <20190829095951.nzzqqhgvblhogf4e@mlowasrzechonek2133> <145b9b726c45fd37592b5a7a3504c911cd848409.camel@intel.com>,<20190829195610.a6dwgxabq3d2g3bp@kynes> In-Reply-To: <20190829195610.a6dwgxabq3d2g3bp@kynes> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Micha?, > On Aug 29, 2019, at 12:56 PM, "michal.lowas-rzechonek@silvair.com" wrote: > > Hi Brian, > >> On 08/29, Gix, Brian wrote: >> That is true, and we *expect* applications that are attached to handle >> the socket-signals (that drive d-bus) in a timely manner... But I am >> not sure we have a way to enforce it. >> >> Certainly, we can simulate a disconnection if an App ignores it's DBus >> socket signal, but again, we won't know about that for 30 seconds >> which seems like forever... And an App could potentially have a large >> enough backlog of messages negatively affecting the daemon before it >> and corrects it. > > This seems like a limitation of ELL: > 1. There doesn't seem to be an explicit API to set timeouts on method > calls, so if the application takes too long to handle method calls, > message_list hashmap in l_dbus struct would indeed grow quite large. > 2. There doesn't seem to be a way to set an upper limit of pending > messages (or maybe even message rate?) in l_dbus connection. > > Still, looking at ell/dbus.c, it seems it should be possible to manually > call l_dbus_cancel after obtaining serial number of the method call > message, using _dbus_message_get_serial from dbus-private.h (yeah, I > know). > > Anyway, I think a better approach would be to submit patches to ELL > implementing these two features, and then use these additions in meshd. > Does that sound acceptable from your POV? I?m not sure I agree with you on the need to expose and adjust DBus message timeouts, however, I think you are probably correct that the correct place to have that conversation is on the ELL reflector, which can be accessed here: https://lists.01.org/mailman/listinfo/ell I still feel though, that you are trying to solve a pre-deployment ?debugging? issue by requiring DBus responses for messages that don?t require them. > > By the way, it seems that bluetoothd suffers from the same problem with > regards to external GATT services/characteristics/descriptors. > > regards > -- > Micha? Lowas-Rzechonek > Silvair http://silvair.com > Jasnog?rska 44, 31-358 Krakow, POLAND