From 31d528d349584d2a7ad1987870c25311ab6eb773 Mon Sep 17 00:00:00 2001 From: thorcomp Date: Wed, 8 Jun 2022 15:46:20 +0200 Subject: [PATCH] + Avoid destroying receiving buffer on each read call. --- lib/API/Eulerian/EDW/WebSocket.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/API/Eulerian/EDW/WebSocket.pm b/lib/API/Eulerian/EDW/WebSocket.pm index d9370b8..8055596 100644 --- a/lib/API/Eulerian/EDW/WebSocket.pm +++ b/lib/API/Eulerian/EDW/WebSocket.pm @@ -187,7 +187,6 @@ sub join $read = $socket->sysread( $buf, $bufsize, $offset ); if( $read > 0 ) { $peer->read( $buf ); - undef $buf; } else { close( $socket ); undef( $socket );