goplus / tutorial

Tutorials for GoPlus (The Go+ Language)
https://tutorial.goplus.org
Apache License 2.0
40 stars 19 forks source link

No error when port 8000 is already bound to some other process #72

Closed IAmAnubhavSaini closed 8 months ago

IAmAnubhavSaini commented 9 months ago

If port 8000 is already bound to another server, say, python -m http.server 8000, the tutorial sever on go run . will output "Serving Go+ tutorial at localhost:8000" and will not throw an error.

This is unexpected behavior and user would expect that if port 8000 is not available an error is thrown.