mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 20:00:18 +00:00
do not send websocket status code to port
this is not data, but the status code, so print it in debug mode instead Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d80c5f14c1
commit
e3b29cc9da
@ -484,9 +484,9 @@ sub websocket_proxy {
|
|||||||
if ($opcode == 1 || $opcode == 2) {
|
if ($opcode == 1 || $opcode == 2) {
|
||||||
$reqstate->{proxyhdl}->push_write($payload) if $reqstate->{proxyhdl};
|
$reqstate->{proxyhdl}->push_write($payload) if $reqstate->{proxyhdl};
|
||||||
} elsif ($opcode == 8) {
|
} elsif ($opcode == 8) {
|
||||||
print "websocket received close\n" if $self->{debug};
|
my $statuscode = unpack ("n", $payload);
|
||||||
|
print "websocket received close. status code: '$statuscode'\n" if $self->{debug};
|
||||||
if ($reqstate->{proxyhdl}) {
|
if ($reqstate->{proxyhdl}) {
|
||||||
$reqstate->{proxyhdl}->push_write($payload);
|
|
||||||
$reqstate->{proxyhdl}->push_shutdown();
|
$reqstate->{proxyhdl}->push_shutdown();
|
||||||
}
|
}
|
||||||
$hdl->push_shutdown();
|
$hdl->push_shutdown();
|
||||||
|
Loading…
Reference in New Issue
Block a user