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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 91971631C0 for ; Wed, 15 Jul 2020 10:15:52 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7F0752D3C2 for ; Wed, 15 Jul 2020 10:15:22 +0200 (CEST) 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 A77782D3B7 for ; Wed, 15 Jul 2020 10:15:21 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 706114309A for ; Wed, 15 Jul 2020 10:15:21 +0200 (CEST) Date: Wed, 15 Jul 2020 10:15:14 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion References: <20200714110957.31884-1-d.csapak@proxmox.com> In-Reply-To: <20200714110957.31884-1-d.csapak@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1594800868.gpoilatxdp.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.130 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [vec.rs, router.rs, websocket.rs, proxmox.com] Subject: Re: [pbs-devel] [PATCH proxmox 0/9] preparation for websocket api X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2020 08:15:52 -0000 $ cargo test [...] test src/api/const_regex.rs - const_regex (line 32) ... ok test src/tools/vec.rs - tools::vec (line 19) ... ok test src/api/router.rs - api::router::Router (line 216) ... ok test src/tools/websocket.rs - tools::websocket::FrameHeader::try_from_bytes= (line 301) ... FAILED test src/tools/websocket.rs - tools::websocket::create_frame (line 112) ...= FAILED test src/tools/websocket.rs - tools::websocket::create_frame (line 125) ...= FAILED test src/tools/websocket.rs - tools::websocket::WebSocketWriter (line 182) = ... ok test src/tools/websocket.rs - tools::websocket::create_frame (line 99) ... = FAILED test src/tools/vec/byte_vec.rs - tools::vec::byte_vec (line 4) ... ok test src/tools/vec/byte_vec.rs - tools::vec::byte_vec::ByteVecExt (line 15)= ... ok test src/tools/vec/byte_vec.rs - tools::vec::byte_vec::ByteVecExt::grow_uni= nitialized (line 51) ... ok [...] ? On July 14, 2020 1:09 pm, Dominik Csapak wrote: > this series adds the necessary bits and pieces for using a > websocket connection in the api >=20 > Dominik Csapak (9): > proxmox/tools/byte_buffer: improve ByteBuffer interface > proxmox/tools/byte_buffer: impl Default > proxmox/tools/websocket: use ready macro for WebSocketWriter > proxmox/tools/websocket: correctly return eof > proxmox/tools/websocket: use io::Error and Result explicitely > proxmox/tools/websocket: improve mask_bytes and create_frame interface > proxmox/tools/websocket: implement send_control_frame for writer > proxmox/tools/websocket: replace CallBack with a channel > proxmox/tools/websocket: add WebSocket implementation >=20 > proxmox/Cargo.toml | 3 +- > proxmox/src/tools/byte_buffer.rs | 97 ++++++---- > proxmox/src/tools/websocket.rs | 296 +++++++++++++++++++++++++------ > 3 files changed, 306 insertions(+), 90 deletions(-) >=20 > --=20 > 2.20.1 >=20 >=20 >=20 > _______________________________________________ > pbs-devel mailing list > pbs-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel >=20 >=20 >=20 =