What is this errno? error -89 on mips OS

I am using the client do function of http class of go language, but I keep getting errors.

errno is -89, and the OS is mips 32bit, so I am currently using version 1.8 of go language.

Other higher versions cannot be used due to an epollcreate error.

Why does error code -89 occur in the client do function?

If the same source code is compiled with different GOARCH and GOOS, it works normally.

The problem only occurs on this mips device.

Please help me wondering.

PANIC
panic: Put http://192.168.10.2:3444/conf: dial tcp 192.168.10.2 : errno -89

OS
Linux TLR-2855KS 2.6.36+ #36 Wed Jul 15 16:06:23 KST 2020 mips unknown

GO VERSION
go version go1.8.7 windows/amd64

Code
type REQBODY struct {
T1 string json:"t1"
T2 string json:"t2"
T3 string json:"t3"
T4 string json:"t4"
T5 string json:"t5"
}

func send_Request() int {

var body = REQBODY{	"a",	"b",	"c",	"d",	"e", }

client := &http.Client{}

// marshal User to json
json, err := json.Marshal(body)
if err != nil {
panic(err)
}

req, err := http.NewRequest(http.MethodPut, URL, bytes.NewBuffer(json))
if err != nil {
panic(err)
}

req.Header.Set(“Content-Type”, “application/json; charset=utf-8”)

resp, err := client.Do(req)
if err != nil {
panic(err) =>> PANIC!!
}

return 1

}

This is likely the same problem as this

My thought there was that the kernel version you are using is too old to support the features go needs.

Error 89 is missing source address in arguments I think.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.