Skip to content

Commit

Permalink
this should fix a crash warning that has been popping up in the hub-w…
Browse files Browse the repository at this point in the history
…ebsocket logs
  • Loading branch information
williamstein committed Mar 15, 2024
1 parent a82b149 commit 0b185ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/packages/hub/proxy/handle-upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default function init(
const re = new RegExp(proxy_regexp);

async function handleProxyUpgradeRequest(req, socket, head): Promise<void> {
socket.on("error", (err) => {
// server will crash sometimes without this:
logger.debug("WARNING -- websocket socket error", err);
});
const dbg = (...args) => {
logger.silly(req.url, ...args);
};
Expand Down

0 comments on commit 0b185ab

Please sign in to comment.