]> git.proxmox.com Git - pve-http-server.git/commit
websocket: set $max_payload_size = 128*1024; (131072)
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Jun 2018 15:30:40 +0000 (17:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Jun 2018 08:08:59 +0000 (10:08 +0200)
commited8d2557ae46b70dd660bd9bff97a98a741688d8
tree9172fba1950c2a6ac8dc01b505edcc545474f851
parentcdb6932787f050e8fed98923e789e858c3745490
websocket: set $max_payload_size = 128*1024; (131072)

AnyEvent checks rbuf_max after calling the callback (too late), so
we can receive larger data, because AnyEvent uses MAX_READ_SIZE=131072
to fill the buffer.

So a more elegant solution is to set $max_payload_size=128*1024. At least
I am not able to receive rbuf larger than 128*1024 now. But I keep the
protection from the previous patch - just to be sure.
PVE/APIServer/AnyEvent.pm