[pbs-devel] [PATCH proxmox 0/9] preparation for websocket api

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jul 15 10:15:14 CEST 2020


$ 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_uninitialized (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
> 
> 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
> 
>  proxmox/Cargo.toml               |   3 +-
>  proxmox/src/tools/byte_buffer.rs |  97 ++++++----
>  proxmox/src/tools/websocket.rs   | 296 +++++++++++++++++++++++++------
>  3 files changed, 306 insertions(+), 90 deletions(-)
> 
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 





More information about the pbs-devel mailing list