Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Exits without error message when address in use #11693

Closed
jsvcycling opened this issue Jul 13, 2015 · 2 comments
Closed

net/http: Exits without error message when address in use #11693

jsvcycling opened this issue Jul 13, 2015 · 2 comments

Comments

@jsvcycling
Copy link

When I run a server and attach it to a port that is being used by another process, my go server immediately exits without any warning.

I'm using version 1.4.1 and it've encountered the problem on both windows/amd64 and darwin/amd64 (haven't been able to test on linux/amd64).

@bradfitz
Copy link
Contributor

Don't ignore the return value. e.g.:

    log.Fatal(http.ListenAndServe(":8080", handler))

@jsvcycling
Copy link
Author

Ah, forgot about that. Thanks.

@golang golang locked and limited conversation to collaborators Jul 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants