From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 7FB5B6567C for ; Tue, 3 Nov 2020 16:55:32 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7186B2E47B for ; Tue, 3 Nov 2020 16:55:32 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B21B32E46D for ; Tue, 3 Nov 2020 16:55:31 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 7EBCF46005 for ; Tue, 3 Nov 2020 16:55:31 +0100 (CET) Date: Tue, 3 Nov 2020 16:54:50 +0100 (CET) From: Dietmar Maurer To: Wolfgang Bumiller Cc: pve-devel@lists.proxmox.com Message-ID: <1681771660.719.1604418891134@webmail.proxmox.com> In-Reply-To: <20201103141556.ezlgmu36xlyfhvxy@wobu-vie.proxmox.com> References: <20201103122636.2958-1-dietmar@proxmox.com> <20201103130552.dg4t2xaleylkzjq3@wobu-vie.proxmox.com> <780988344.703.1604409922324@webmail.proxmox.com> <20201103141556.ezlgmu36xlyfhvxy@wobu-vie.proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.4-Rev12 X-Originating-Client: open-xchange-appsuite X-SPAM-LEVEL: Spam detection results: 0 AWL 0.068 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [RFC PATCH] fix #3106: correctly queue incoming connections X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2020 15:55:32 -0000 > On Tue, Nov 03, 2020 at 02:25:21PM +0100, Dietmar Maurer wrote: > > > > - let connections = proxmox_backup::tools::async_io::HyperAccept(connections); > > > > + let connections = accept_connections(listener, acceptor); > > > > + let connections = hyper::server::accept::from_stream(connections); > > > > > > If we move the `from_stream` into the function below... > > > > I have tried to do that for 2 hours, then gave up.... > > So please tell m e how to make that work! > > nvm, the required feature is still unstable, we'd need to > > -> impl Accept > > but trait bounds on associated types in impl returns is unstable... > Link: https://github.com/rust-lang/rust/issues/52662 > > :( Well, I call this a serious compiler bug ... Anyways, my workaround is a single line of code.