rawhat / mist

gleam HTTP server. because it glistens on a web
Apache License 2.0
260 stars 11 forks source link

Log/Access OS-allocated TCP port #50

Open bonsairobo opened 1 month ago

bonsairobo commented 1 month ago

I tried calling mist.port(0) and the service logs Listening on http://localhost:0 instead of providing the actual port allocated by the OS.

bonsairobo commented 1 month ago

Similarly, the after_start callback will not provide the correct port.

rawhat commented 1 month ago

Yeah I haven't set that up yet. Shouldn't be too bad, I can look into it.

rawhat commented 1 month ago

This one was way easier after the glisten work had been done. It's also gonna require a major version release, and also has to wait for me to release the major version of glisten.

I can't guarantee any specific time, but I think I'm reaching a decent critical mass of things to do these releases. So it should be soon! I'll leave this open until it's actually released.