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:
Dominik Csapak 2017-11-23 15:55:55 +01:00 committed by Wolfgang Bumiller
parent d80c5f14c1
commit e3b29cc9da

View File

@ -484,9 +484,9 @@ sub websocket_proxy {
if ($opcode == 1 || $opcode == 2) {
$reqstate->{proxyhdl}->push_write($payload) if $reqstate->{proxyhdl};
} 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}) {
$reqstate->{proxyhdl}->push_write($payload);
$reqstate->{proxyhdl}->push_shutdown();
}
$hdl->push_shutdown();