nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

Print HTTP port number in the logs during startup. #151

Closed jollyroger closed 4 years ago

jollyroger commented 5 years ago

This provides a way to start webdis with dynamic port allocation and discover HTTP port number by simply grepping logs i.e. without need to use netstat or sockstat that are not available on some architectures.

Dynamic port allocation is a feature that can be used to run webdis ad-hoc for testing purpose.

nicolasff commented 4 years ago

I cherry-picked this commit as de224445761e9a33dff22e105b8874d89ab8ee1f since this PR had a conflict due to the move of server.c under src/.

Thanks for adding this! And sorry it took so long to integrate.