Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2788485ybl; Thu, 29 Aug 2019 12:57:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfl2wxWVoVaz4yz/VX54DD2baKYESs62Tz3LBWLjYMU37JZVLUC3pec0oDovsZYplfoF3h X-Received: by 2002:aa7:9e42:: with SMTP id z2mr809730pfq.2.1567108654296; Thu, 29 Aug 2019 12:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567108654; cv=none; d=google.com; s=arc-20160816; b=axqN8K8s8qLri3ZB1a7PrLVs1kf3BNAXhMRA2bouzkP3XSj6j1NSA0pZDZr1layiFr 2cSyHb9nWlZa0OQwOefZFkCGz/BDrBw3Erad7xcIf4Tr6AENdPnMjft6rWe1LJdTXcxc QQY9XHJy/+1xR/B4Zax6yn7oEFmv9/1BJy0QtT3r46z7fkIIncbNWvXlsJ/7td07ynMe n77wqpwdcDTP/qNqDOQkopUSYofF+sIj+IcxbTKeuB+78TvFXykrKh8R0mKucHbHlGfb 7druW9r6za+NjAFUeCi1vfX5vlbPIKHrDj9/fQxy7pYrE7MDo4syZU0ohbY/KdMpVUcN B/Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=J7ZJJb2kwxX0pte3jJfiDvoZeKJTFKNMsdzm7vZT5WM=; b=I00HTJg9BQ/kYado7OddfqNZhnccEeTxuZ4JLtObflQF6fM/Ajztm13GKIXS2Sxkns I87xbnaxnUV5XyIltH2uDf5BBfxgdqriAdYJOSxf+a35Q96+6IlGNn9NkrKGE7pDAZnH IEii17KO/zOJMcv/LK0Rc7w4p27G00K+Xm2ks/4er73uNmY0WaxDJodd6061SUoZ71WM ehjuPcEW6xwaGIyNVI2XpYuGE2rGM2Mm0ZSqEvKLmi1DeXueEmcoLXjXE51zJW4zol8m DAPHeGOjKDQX+P7Z3T36J4gTN8DojlC9438iAnDAEJ1W9PaFvyER+Qm7UXYeEQEYWvK6 zlxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=IUXNiDfO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck12si3022627pjb.26.2019.08.29.12.57.11; Thu, 29 Aug 2019 12:57:34 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=IUXNiDfO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727045AbfH2T4Y (ORCPT + 99 others); Thu, 29 Aug 2019 15:56:24 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46643 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfH2T4Y (ORCPT ); Thu, 29 Aug 2019 15:56:24 -0400 Received: by mail-lj1-f194.google.com with SMTP id f9so4182782ljc.13 for ; Thu, 29 Aug 2019 12:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=J7ZJJb2kwxX0pte3jJfiDvoZeKJTFKNMsdzm7vZT5WM=; b=IUXNiDfOhs1BhhrgHwCLXsLYkk9pOKfngvn2MFK/7GML9ZGCbh+2j8j7AZC+siEdlx kwwlGL+Fy5psqqMcfXsEqtfMzRCW9O23HkSfNS5pxKi1o7sISK83zTc6ZgtJzAcXdL3q xDcoXhdcQHa6HQBt2q4uQyN0XPtFl7ySe7AY47NCzOICHkNzHs7zWvUhD7jKtNwqzqhu hazE1ABRhiQyk5HgCKc2xRA6cOqLdCBtcpx8ZEyttpzQzc27PEPk0EyrJD+nXlZ+vSi4 aS8XLij4cBOPXUUtUqPunKlkTtozj2RDGSVRdJGRZB+H9wpzAf/XgkJV6luwXbrOUL0k 6Giw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=J7ZJJb2kwxX0pte3jJfiDvoZeKJTFKNMsdzm7vZT5WM=; b=BuDf3PZUIw5dUNQK1q+9Rccpw+GsUCrFyI+Mtn8fzlfYid8MzIAwmU0aaTRKELvEWy RCB5nOfhXGElmdKJoV81R5cZIb0BS81hjrqv/jAUq1mmKt9Mx3E3KtGUXgPGXFA0TdmH upB7iWtRDyPn67Hy/d0tdq6tfpQ4V+tAxg6uG1H6dmND3mf7XH/iQLC0kXlZoBZ+y4Qs rro8ilG8u/a36RmXSkun40lo72B/ooCtBu2kY3bCDiFZzBbj1HCqdntGwhVK99BoL+TT sTzUjdaJ82ZMQRnnmAN2SLzkefC/uR/IfcuQZJJsQdBVkrMgAhvvqBvp1rXO4SdAPSUf 54vQ== X-Gm-Message-State: APjAAAWqttkjYU0amLKccQ8uNQEl/KQF5v7VUwsZKrDWjcdztR+Kxenc VmPeUIW/gsGn1jgYFLYqbVS9jw== X-Received: by 2002:a2e:8705:: with SMTP id m5mr6567829lji.9.1567108582217; Thu, 29 Aug 2019 12:56:22 -0700 (PDT) Received: from kynes (apn-95-41-66-58.dynamic.gprs.plus.pl. [95.41.66.58]) by smtp.gmail.com with ESMTPSA id c197sm536330lfg.46.2019.08.29.12.56.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Aug 2019 12:56:21 -0700 (PDT) Date: Thu, 29 Aug 2019 21:56:10 +0200 From: "michal.lowas-rzechonek@silvair.com" To: "Gix, Brian" Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ] mesh: Log D-Bus method call errors Message-ID: <20190829195610.a6dwgxabq3d2g3bp@kynes> Mail-Followup-To: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" References: <20190820075654.2195-1-michal.lowas-rzechonek@silvair.com> <685bc703108f5329b861f5c5f87301b44bddd8e0.camel@intel.com> <20190829095951.nzzqqhgvblhogf4e@mlowasrzechonek2133> <145b9b726c45fd37592b5a7a3504c911cd848409.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <145b9b726c45fd37592b5a7a3504c911cd848409.camel@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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? 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