]> git.proxmox.com Git - pve-xtermjs.git/commit
termproxy: rewrite read_ticket_line
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 1 Feb 2021 07:55:18 +0000 (08:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 2 Feb 2021 10:05:35 +0000 (11:05 +0100)
commit7739b7e8b6b1399d8436bb3c59f66ea300678d54
tree5cb4a10c77e3a31b0b15fb258db5df8b3811ad1a
parentc2d638280a41956994cd4eb32890b5e4ecf82a97
termproxy: rewrite read_ticket_line

since we cannot accept a std TcpStream from a mio::net::TcpListener
anymore, we cannot use set_read_timeout here

instead implement the readloop as a mio poll loop similar
to listen_and_accept, otherwise termproxy will busy loop and
consume 100% of a single core during authentication

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/main.rs