Fail to run Hello World on OpenBSD 6.5


#1

Hi, I tried your simple example on OpenBSD 6.5, but something seems wrong.
https://echo.labstack.com/cookbook/hello-world

Likely this is OpenBSD dependent, but maybe you have an idea what to look for?

$ uname -a
OpenBSD nuc.lounge.se 6.5 GENERIC.MP#3 amd64
$ go version
go version go1.12.1 openbsd/amd64
$ go run server.go                                                                                                                                  
   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.1.5
High performance, minimalist Go web framework
https://echo.labstack.com
⇨ http server started on 0.0.0.0:8080
{"time":"2019-05-26T20:59:40.666144966+02:00","level":"FATAL","prefix":"echo","file":"server.go","line":"17","messag    e":"set tcp 192.168.0.7:8080->192.168.0.11:49900: protocol not available"}
exit status 1

I am able to run a simple webserver example on OpenBSD using just http.
https://golang.org/doc/articles/wiki/#tmp_3

The same example is also running fine on OSX.

$ uname -a
Darwin Peters-Mac-mini.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64 x86_64
$ go version
go version go1.12.5 darwin/amd64

Any tips on what to look for?


#2

I think this is issue could be the same as seen on another go web framework, aero.

See: https://github.com/aerogo/aero/issues/10

OpenBSD and other does not support user defined TCP timeout …