Skip to content

net/http: Listening on localhost at port 8080 on Darwin #16676

Closed
@rjammala

Description

@rjammala

This seems to be happen at port 8080 only.

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version devel +31ad583 Wed Aug 10 19:44:08 2016 +0000 darwin/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="darwin"
    GOOS="darwin"
    GOPATH="/Users/rjammala/gocode"
    GORACE=""
    GOROOT="/Users/rjammala/go"
    GOTOOLDIR="/Users/rjammala/go/pkg/tool/darwin_amd64"
    CC="clang"
    GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches -fno-common"
    CXX="clang++"
    CGO_ENABLED="1"
  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.

https://play.golang.org/p/-f6Bek3VDS

  1. What did you expect to see?
    That "curl localhost:8080" will give OK reply.
  2. What did you see instead?

$ curl http://localhost:8080/
curl: (52) Empty reply from server

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions