typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket hang up error with multiple subdomains Ubuntu 20.04

shivam-kantival-mt opened this issue · comments

I have a proxy configured as with filename *.example
{ "target": "http://127.0.0.1:8011" }

The same successfully serves a.example.local, but not b.a.example.local. The later request timesout and following error is logged in daemon logs-
Error: socket hang up at connResetException (internal/errors.js:610:14) at Socket.socketCloseListener (_http_client.js:400:25) at Socket.emit (events.js:327:22) at TCP.<anonymous> (net.js:674:12) { code: 'ECONNRESET' }

I tried to see the diff in request object in daemon/group.js, but couldn't find anything significant. The only difference is in the host and x-forwarded-host header.

It was a code fault at the server end. It was getting stuck infinitely.