wind-c / comqtt

A lightweight, high-performance go mqtt server(v3.0|v3.1.1|v5.0) supporting distributed cluster
MIT License
869 stars 50 forks source link

Use of Init to launch http server. #61

Closed perbu closed 11 months ago

perbu commented 11 months ago

In both the single and cluster main() there are web servers started in init() on port 6060.

This complicates thing when testing as there no easy way to shut the server down again. The server responds with a 404 and disabling it doesn't seem to affect the server.

Are you ok with removing this?

wind-c commented 11 months ago

This :6060 is for pprof. I think to use a configuration parameter to turn it on or off.

perbu commented 11 months ago

I'll cook something up.

perbu commented 11 months ago

Right. Didn't really find a better way to do it. I just left it.