typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.97k stars 426 forks source link

Socket hang up error with multiple subdomains Ubuntu 20.04 #373

Closed shivam-kantival-mt closed 3 years ago

shivam-kantival-mt commented 3 years ago

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.

shivam-kantival-mt commented 3 years ago

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