Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2178717pxb; Fri, 25 Mar 2022 12:30:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0i0Vi0L/OkcKe2rNodeUhG1rzvqiDfgaxIZ7dbnOvppSvprvxw+7i5wf+KgMtV6ae3ga1 X-Received: by 2002:a17:90a:d50a:b0:1c6:aade:e4b3 with SMTP id t10-20020a17090ad50a00b001c6aadee4b3mr27031097pju.69.1648236600568; Fri, 25 Mar 2022 12:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236600; cv=none; d=google.com; s=arc-20160816; b=mJvhDejkTzjSUFYt9yMgj/kKZ+Nv05rDfvKgNivLouzdM+eCAYZunCz1ZPSFUyou5T am3iPviMaagiKGADMZ5KI3K9IoLWDUMS2z/ypcJdK+ycaluIll0myk83oGXuETCK0YfO NBIQJPc8avqAkkW8LgdwdExqmUdyE82OcdJZqun5yvZKNFgkkfLP/vOxPkG+PfyiN5AR xjbW3+U2ospJxS3A9oQOeM+nRMEtRR/KcS/GIoiyebDCnuQlYdLmnFsPSRVxPzRIaBf7 B3p7J8aEfqNjJvoU3BAmGueYqCpZeYkJkxm5ExS6LLGFKjvTezVnRW0U12A+ZABJyoGU d1YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=QG9mrWxo7fD06e0KcQ784RQhSI27etnY1NuANrf7bAs=; b=LuhTGQDNcKASYIn8K7ih2u1Cvt46Z4dDEKjW29vwyGEj/sKZ+PH5C61tcwsIqYupsX ADuMqcDFQO5s5zN+cVoCaWCJCVM+RRd797EJ4fwCp1vfq5wSmnZb/7ti4dy+qfBeMMtt aGPchS5drbl2Cl9MEfcl5E1chJvMtO7dF9tCDuaQHCS3AWD9OnHpEaqS/3sFDc0GKEI/ CHFx3i/gxUhtWr3g9nm5srKC8vDRD1gnVjjA57/2QEuxzeNiWUf9Yy9VZD0MskHgZRj0 H/0WxY5hgMuBuWlJMrGKIKoFwfd41NokrHugYOuh0Wi37AMaFpOsMsaev05pky8egkJH eGXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e14-20020a63ae4e000000b003816043f132si3049222pgp.807.2022.03.25.12.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 121A92DA6A5; Fri, 25 Mar 2022 11:42:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244560AbiCYF7o (ORCPT + 99 others); Fri, 25 Mar 2022 01:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244003AbiCYF7o (ORCPT ); Fri, 25 Mar 2022 01:59:44 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA8F95FC8 for ; Thu, 24 Mar 2022 22:58:08 -0700 (PDT) Received: from [192.168.0.3] (ip5f5aef76.dynamic.kabel-deutschland.de [95.90.239.118]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id B45A961E64846; Fri, 25 Mar 2022 06:58:05 +0100 (CET) Message-ID: <9dcd9cae-ee36-c812-f725-c81a035e4456@molgen.mpg.de> Date: Fri, 25 Mar 2022 06:58:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] obexd: Fix can't receive small files sent by windows Content-Language: en-US To: Xinpeng Wang Cc: linux-bluetooth@vger.kernel.org References: <20220323052149.28674-1-wangxinpeng@uniontech.com> <8ff37c48-4e71-1c40-53bb-5bb99d7a1a88@molgen.mpg.de> <2022032321151404413716@uniontech.com> From: Paul Menzel In-Reply-To: <2022032321151404413716@uniontech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Xinpeng, Am 23.03.22 um 14:15 schrieb wangxinpeng@uniontech.com: > Thank you very much for your guidance. Thank you for the patch, and your response. Sorry for the late reply. > Modifications to the patch, I will pay attention to replace it with `--reroll-count` > in the future, thanks a lot. Awesome. > A Windows device refers to a computer with the Windows 10 system installed. > > Ways to reproduce the problem: > 1.Use the laptop with the windows 10 system installed to send small files to the computer > with the ubuntu system through bluetooth > (I found that sometimes sending fails during testing,then i installed a blueman on ubuntu, > use blueman to connect to the windows computer first); > 2.the small file's size is less than 10k. > After sending ok, it will be found that the file is in the ~/.cache/obexd/ directory, but not transferred to > the ~/Download directory. For large files, it is in the ~/Download directory after sending. > > Validation bug fix: > This problem needs to be done by bluez and the upper management program (like blueman); > the full effect cannot be seen until the upper management program is modified. > Now use dbus-monitor --session path=/org/bluez/obex/server/session1/transfer0 > (this command is the first time the file is received at startup, and the number will be incremented each time after that) >  to see whether obexd generates the correct signal(include Filename). Thank you for the detailed response. I do currently not have a Microsoft Windows system to test this, but sounds good. Personally, I would like to hive this information in the commit message, but I d not know the policy of the project. If you are up to it, you could amend the commit message, and reroll it. Thank you for your work. Kind regards, Paul