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

Jsvcycling opened this issue Jul 13, 2015 · 2 comments


None yet
3 participants
Copy link

commented Jul 13, 2015

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).


This comment has been minimized.

Copy link

commented Jul 13, 2015

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

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

@bradfitz bradfitz closed this Jul 13, 2015


This comment has been minimized.

Copy link

commented Jul 13, 2015

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.
You can’t perform that action at this time.