colyseus / proxy

🔀⚔ Proxy and Service Discovery for Colyseus 0.10 ~ 0.14 (Not recommended on 0.15+)
https://docs.colyseus.io/scalability/
MIT License
37 stars 25 forks source link

The following code causes is No proxy available! #16

Open sumingliang opened 2 years ago

sumingliang commented 2 years ago
           const errorMessage = err.message.toLowerCase();
    if(!errorMessage.includes("socket hang up") || !errorMessage.includes("ECONNRESET")) {
        console.warn(`node ${node.processId}/${node.address} failed, unregistering`);
        unregister(node);
        cleanUpNode(node).then(() => console.log(`cleaned up ${node.processId} presence`));

        reqHandler(req, res); // try again!
    } else {
    res.end();
    }
lpsandaruwan commented 2 years ago

Hi @sumingliang Thank you for reporting the bug. However I could not reproduce this issue. Can you please help me out with reproducing this? Perhaps a sample code or something.