jsdelivr / globalping

A global network of probes to run network tests like ping, traceroute and DNS resolve

Home Page:https://www.jsdelivr.com/globalping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: ip limit during probes reconnect

alexey-yarmosh opened this issue · comments

Usage of cached fetchSockets response in probe-ip-limit.ts leads to Error: ip limit.

Scenario:

  • probe1 is connected to the api
  • some operation (e.g. /probes ednpoint) calls fetchSockets
  • fetchSockets result (including probe1) is return and cached for 1 sec
  • during that 1 sec probe1 is reconnecting (e.g. because of ping timeout)
  • probe-ip-limit.ts calls fetchSockets and gets cached result (with probe1 in a list)
  • that lead to Error: ip limit

After deploy the issue seems to be still present. Logs provided

ip limit issues is fixed. Sometimes timeout reached while waiting for fetchSockets response occurs, but it is not related to that issue. Closing this one and reopening #234 instead.