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: No error on invalid port no 556677 #16766

Closed
pedromorgan opened this issue Aug 17, 2016 · 1 comment
Closed

net/http: No error on invalid port no 556677 #16766

pedromorgan opened this issue Aug 17, 2016 · 1 comment

Comments

@pedromorgan
Copy link

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    1.6
  2. What operating system and processor architecture are you using (go env)?
    linux/386
  3. What did you do?
    A newbie created a http server to listen on port 55667, but a typo and 556677 instead

http.ListenAndServe("0.0.0.0:556677" , nil)

  1. What did you expect to see?
    An error message saying that 556677 is an invalid port no
  2. What did you see instead?
    The application just "died", no error message, no panic. App just failed silently.
@pedromorgan
Copy link
Author

OOps my bad... didnt realise message was there..

@golang golang locked and limited conversation to collaborators Aug 17, 2017
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

2 participants