Infura's websocket spams with pings

Hi,

We have a bug that started yesterday (May 16th) at 15:31 UTC. The CPU usage and network throughput on our servers started increasing linearly all night (and today too). We tracked down the bug to Infura’s websocket spamming pings.

Steps to reproduce:

  1. Run wscat -c wss://polygon-amoy.infura.io/ws/v3/REDACTED -w 999999 -P
  2. Wait ~1min

Expected result:

Nothing

Obtained result:

The console starts spamming in a loop:

< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
< Received ping (data: ""
1 Like

hey, this should be fixed.

Indeed, our CPU usage went down, thank you!